certificateDetail.vue 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <template>
  2. <view>
  3. <Headers></Headers>
  4. <view class="project">
  5. <view style="width: 1200px;margin: auto;">证书查询系统</view>
  6. </view>
  7. <view class="project-content ddflex">
  8. <!-- 成绩区域 -->
  9. <view class="test-box">
  10. <view class="test-title">{{info.cateName}}证书查询结果</view>
  11. <!-- 表格 -->
  12. <view class="ddflex border table" style="">
  13. <!-- 左边 -->
  14. <view>
  15. <view class="height56 ddflex-jc width140 bg-color border-bottom">姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名</view>
  16. <view class="height56 ddflex-jc width140 bg-color border-bottom">性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别</view>
  17. <view class="height56 ddflex-jc width140 bg-color border-bottom">身份证号</view>
  18. <view class="height56 ddflex-jc width140 bg-color border-bottom">培训工种</view>
  19. <view class="height56 ddflex-jc width140 bg-color border-bottom">培训学校</view>
  20. <view class="height56 ddflex-jc width140 bg-color border-bottom">办学编号</view>
  21. <view class="height56 ddflex-jc width140 bg-color border-bottom">证书编号</view>
  22. <view class="height56 ddflex-jc width140 bg-color border-bottom">培训结论</view>
  23. <view class="height56 ddflex-jc width140 bg-color">发证日期</view>
  24. </view>
  25. <!-- 右边 -->
  26. <view class="fflex">
  27. <view class="dflex" style="align-items: stretch;">
  28. <view>
  29. <view class="height56 ddflex padding-left border border-right-none border-top-none">{{info.userName?info.userName:'*'}}</view>
  30. <view>
  31. <view class="ddflex">
  32. <view class="height56 ddflex padding-left width200 border border-bottom-none border-right-none border-top-none">{{info.sex==1?'男':info.sex==2?'女':'*'}}</view>
  33. <view class="height56 ddflex-jc width140 bg-color border border-bottom-none border-right-none border-top-none">出生日期</view>
  34. <view class="height56 ddflex-jc width140 border border-bottom-none border-right-none border-top-none">{{info.birthday?info.birthday:'*'}}</view>
  35. </view>
  36. <view class="ddflex">
  37. <view class="height56 ddflex-jc width200 border border-bottom-none border-right-none">{{info.idNumber?info.idNumber:'*'}}</view>
  38. <view class="height56 ddflex-jc width140 bg-color border border-bottom-none border-right-none">培训时间</view>
  39. <view class="height56 ddflex-jc width140 border border-bottom-none border-right-none">{{info.trainingDate?info.trainingDate:'*'}}</view>
  40. </view>
  41. <view class="ddflex">
  42. <view class="height56 ddflex padding-left width200 border border-right-none">{{info.cateName?info.cateName:'*'}}</view>
  43. <view class="height56 ddflex-jc width140 bg-color border border-right-none">培训等级</view>
  44. <view class="height56 ddflex padding-left width140 border border-right-none">{{info.trainingLevel?info.trainingLevel:'*'}}</view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="border fflex border-right-none border-top-none" style="box-sizing: border-box;padding: 20px;">
  49. <image style="width: 100%;" :src="info.avatar" mode="widthFix"></image>
  50. </view>
  51. </view>
  52. <view class="height56 border ddflex border-top-none border-right-none padding-left">
  53. 湖南现代职业培训学校
  54. </view>
  55. <view class="height56 border ddflex border-top-none border-right-none padding-left">
  56. {{info.schoolNo?info.schoolNo:'*'}}
  57. </view>
  58. <view class="height56 border ddflex border-top-none border-right-none padding-left">
  59. {{info.certificateNo?info.certificateNo:'*'}}
  60. </view>
  61. <view class="height56 border ddflex border-top-none border-right-none padding-left">
  62. {{info.conclusion==0?'培训中':info.conclusion==1?'成绩不合格':info.conclusion==2?'成绩合格':'*'}}
  63. </view>
  64. <view class="height56 border ddflex border-top-none border-right-none padding-left border-bottom-none">
  65. {{info.issueDate?info.issueDate:'*'}}
  66. </view>
  67. </view>
  68. </view>
  69. <!-- 声明 -->
  70. <view style="margin-top: 34px;">
  71. <view style="font-size: 16px;font-weight: bold;">声明:</view>
  72. <view style="font-size: 14px;line-height: 30px">
  73. 1、未经证书信息权属人同意,不得将本材料用于违背权属人意愿之用途。证书信息内容标注“*”号,表示该项内容不详。证书信息如有修改,请以网站在线查询内容为准。<br>
  74. 2、本材料是打印的证书查询结果凭证,仅供查询人使用,不具有再验证功能。
  75. </view>
  76. </view>
  77. </view>
  78. <!-- 答题卡区域 -->
  79. <view class="test-info ddflex">
  80. <view class="note-box">
  81. <view class="note-title ddflex">
  82. <image class="note-title-icon" src="/static/images/wzgg.png"></image>
  83. <view>网站提醒</view>
  84. </view>
  85. <view>
  86. <view class="note-item ddflex" v-for="item,index in wztxList" :key="index" @click="jumpUrl('/pages/contentDetail/contentDetail?id='+item.id)">
  87. <view class="note-item-content">{{item.title}}</view>
  88. </view>
  89. </view>
  90. </view>
  91. <!-- 学习资料 -->
  92. <view class="note-box">
  93. <view class="note-title ddflex">
  94. <image class="note-title-icon" src="/static/images/xxzl.png"></image>
  95. <view>学习资料</view>
  96. </view>
  97. <view>
  98. <view class="note-item ddflex" v-for="item,index in xxzlList" :key="index" @click="jumpUrl('/pages/contentDetail/contentDetail?id='+item.id)">
  99. <view class="note-item-content">{{item.title}}</view>
  100. </view>
  101. </view>
  102. </view>
  103. <!-- 常见问题 -->
  104. <view class="note-box">
  105. <view class="note-title ddflex">
  106. <image class="note-title-icon" src="/static/images/cjwt.png"></image>
  107. <view>常见问题</view>
  108. </view>
  109. <view>
  110. <view class="note-item ddflex" v-for="item,index in cjwtList" :key="index" @click="jumpUrl('/pages/contentDetail/contentDetail?id='+item.id)">
  111. <view class="note-item-content">{{item.title}}</view>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. <Foot></Foot>
  118. </view>
  119. </template>
  120. <script>
  121. const app = getApp();
  122. const req = require('../../utils/request.js');
  123. const utils = require('../../utils/util.js');
  124. const api = require('../../utils/api.js')
  125. export default {
  126. data() {
  127. return {
  128. options:{},
  129. info:{},
  130. wztxList:[],
  131. xxzlList:[],
  132. cjwtList:[],
  133. }
  134. },
  135. onReady() {},
  136. onLoad() {
  137. if(!req.getStorage('options')){
  138. uni.reLaunch({
  139. url:'/pages/certificateQuery/certificateQuery'
  140. })
  141. return false
  142. }
  143. this.options = req.getStorage('options')
  144. this.getDetail()
  145. this.getTextwztxInfo()
  146. this.getTextxxzlInfo()
  147. this.getTextcjwtInfo()
  148. },
  149. onUnload() {
  150. req.removeStorage('options')
  151. },
  152. methods: {
  153. jumpUrl(url){
  154. uni.navigateTo({
  155. url:url
  156. })
  157. },
  158. getDetail(){
  159. req.getRequest('/api/v3/exam/user/manager/certificate',this.options,res=>{
  160. this.info = res
  161. })
  162. },
  163. // 网站提醒
  164. getTextwztxInfo(){
  165. let form={
  166. code:req.public.wztxCode,
  167. page:1,
  168. limit:5
  169. }
  170. req.getRequest('/api/content/list',form,res=>{
  171. this.wztxList = res
  172. })
  173. },
  174. // 学习资料
  175. getTextxxzlInfo(){
  176. let form={
  177. code:req.public.xxzlCode,
  178. page:1,
  179. limit:5
  180. }
  181. req.getRequest('/api/content/list',form,res=>{
  182. this.xxzlList = res
  183. })
  184. },
  185. // 常见问题
  186. getTextcjwtInfo(){
  187. let form={
  188. code:req.public.cjwtCode,
  189. page:1,
  190. limit:5
  191. }
  192. req.getRequest('/api/content/list',form,res=>{
  193. this.cjwtList = res
  194. })
  195. },
  196. }
  197. }
  198. </script>
  199. <style>
  200. @import url('./certificateDetail.css');
  201. </style>