certificateDetail.vue 7.9 KB

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