certificateQuery.vue 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <template>
  2. <view style="position: relative;">
  3. <Headers></Headers>
  4. <image class="top-bg" src="/static/images/certificate_top_bg.png" mode="widthFix"></image>
  5. <view class="content-box ddflex">
  6. <view>
  7. <view class="ddflex re-item">
  8. <view class="re-label">姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名</view>
  9. <view class="re-li dflex">
  10. <input v-model="name" placeholder="姓名" maxlength="-1" placeholder-class="placeholder" class="re-ipt flex" />
  11. </view>
  12. </view>
  13. <view class="ddflex re-item">
  14. <view class="re-label">证书编号</view>
  15. <view class="re-li dflex">
  16. <input v-model="certificateNo" placeholder="证书编号" maxlength="-1" placeholder-class="placeholder" class="re-ipt flex" />
  17. </view>
  18. </view>
  19. <view class="ddflex re-item">
  20. <view class="re-label">身份证号</view>
  21. <view class="re-li dflex">
  22. <input v-model="idNumber" placeholder="身份证号" maxlength="-1" placeholder-class="placeholder" class="re-ipt flex" />
  23. </view>
  24. </view>
  25. <view class="note ddflex">
  26. <image src="/static/images/note.png"></image>
  27. <text>任意输入以上两项内容即可查询</text>
  28. </view>
  29. <view class="query-btn" @click="query">
  30. 立即查询
  31. </view>
  32. </view>
  33. </view>
  34. <view class="ddflex" style="z-index: 1;position: relative;justify-content: center;text-align: center;margin-bottom: 60px;padding: 30px;">
  35. <view>
  36. <view>
  37. 第三方证书查询平台
  38. </view>
  39. <view class="ddflex" style="justify-content: center;margin-top: 18px">
  40. <view class="link-btn" v-for="item in 6">国家职业资格证书查询</view>
  41. </view>
  42. </view>
  43. </view>
  44. <image class="bottom_bg" src="/static/images/certificate_bottom_bg.png" mode="widthFix"></image>
  45. <Foot></Foot>
  46. </view>
  47. </template>
  48. <script>
  49. const app = getApp();
  50. const req = require('../../utils/request.js');
  51. const utils = require('../../utils/util.js');
  52. const api = require('../../utils/api.js')
  53. export default {
  54. data() {
  55. return {
  56. name:'',
  57. idNumber:'',
  58. certificateNo:''
  59. }
  60. },
  61. methods: {
  62. query(){
  63. let ql = [this.name,this.idNumber,this.certificateNo]
  64. if(ql.filter(item=>{return item}).length<2) return req.msg('请填写两项内容查询')
  65. req.getRequest('/api/v3/exam/user/manager/certificate',{name:this.name,idNumber:this.idNumber,certificateNo:this.certificateNo},res=>{
  66. req.setStorage('options',{name:this.name,idNumber:this.idNumber,certificateNo:this.certificateNo})
  67. uni.navigateTo({
  68. url:'/pages/certificateDetail/certificateDetail'
  69. })
  70. })
  71. }
  72. }
  73. }
  74. </script>
  75. <style>
  76. @import url('./certificateQuery.css');
  77. </style>