驾考受理查询支付宝小程序、网页
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

211 lines
4.5 KiB

6 months ago
  1. <template>
  2. <view>
  3. <!-- #ifdef H5 -->
  4. <view class="navbar">
  5. 受理凭证
  6. </view>
  7. <!-- #endif -->
  8. <view class="content" v-if="searchShow">
  9. <view class="t1">
  10. {{ info.title }}
  11. </view>
  12. <view class="t2">
  13. 科目三 道路驾驶技能考试预约凭证
  14. </view>
  15. <view class="text">
  16. <text>流水号</text> {{ info.waterId }}
  17. </view>
  18. <view class="text">
  19. <text>考生姓名</text> {{ info.name }}
  20. </view>
  21. <view class="text">
  22. <text>身份证号码</text> {{ info.idCard }}
  23. </view>
  24. <view class="text">
  25. <text>准考证号码</text> {{ info.ticketNumber }}
  26. </view>
  27. <view class="text">
  28. <text>考试车型</text> {{ info.vehicleModel }}
  29. </view>
  30. <view class="text">
  31. <text>考试日期</text> {{ info.vehicleDate }}
  32. </view>
  33. <view class="text">
  34. <text>考试场地</text> {{ info.vehicleAddress }}
  35. </view>
  36. <view class="text">
  37. <text>考试场次</text> {{ info.vehicleSession }}
  38. </view>
  39. <view class="erweim">
  40. <uv-qrcode ref="qrcode"
  41. canvas-id="qrcode"
  42. :value="`${info.name}\n@${info.idCard}@${info.ticketNumber}@${info.vehicleModel}@${info.vehicleDate}@${info.vehicleAddress}@${info.vehicleSession}
  43. ${tab}`"
  44. size="400rpx"
  45. :loading="loading"
  46. v-if="codeShow"
  47. :options="options"></uv-qrcode>
  48. </view>
  49. <view class="z">
  50. <view class="title">
  51. 注意事项:
  52. </view>
  53. <view class="text">
  54. 1凭此证在有效期内携带有效身份证参加考试以备核查;
  55. </view>
  56. <view class="text">
  57. 2考试提前半小时到场签到如未按时参加考试的判定此次考试不及格;
  58. </view>
  59. <view class="text">
  60. 3考试期间禁止携带手机或通讯设备进入考场;
  61. </view>
  62. <view class="text">
  63. 4考试期间请遵守考试纪律并服从工作人员安排如有发现违规行为的将终止本科目考试本科目考试成绩作废
  64. </view>
  65. </view>
  66. </view>
  67. <!-- <view class="info" v-else>
  68. 当前系统已关闭请联系管理员
  69. </view> -->
  70. </view>
  71. </template>
  72. <script>
  73. import uvQrcode from '@/uni_modules/uv-qrcode/components/uv-qrcode/uv-qrcode.vue';
  74. import api from '@/plugins/api.js'
  75. import { mapState } from 'vuex'
  76. export default {
  77. components : {
  78. uvQrcode,
  79. },
  80. data() {
  81. return {
  82. options: {
  83. useDynamicSize: false,
  84. errorCorrectLevel: 'Q',
  85. margin: 10,
  86. areaColor: "#fff",
  87. },
  88. value : '',
  89. loading : false,
  90. // info : {},
  91. tab : '',
  92. }
  93. },
  94. computed : {
  95. ...mapState(['info', 'codeShow', 'searchShow'])
  96. },
  97. onLoad() {
  98. // for (var i = 0; i < 100; i++) {
  99. // this.tab += i % 2 == 0 ? '\r' : '\n'
  100. // }
  101. // #ifdef H5
  102. this.getInfo()
  103. // #endif
  104. this.$store.commit('getConfList')
  105. },
  106. methods: {
  107. getInfo(){
  108. this.loading = true
  109. api('getInfo', {
  110. id : this.GetQueryString('id')
  111. }, res => {
  112. this.loading = false
  113. if(res.code == 200){
  114. this.$store.state.info = res.result
  115. }
  116. })
  117. },
  118. //获取url中参数的方法
  119. GetQueryString(name) {
  120. var url = window.location.href;
  121. try {
  122. var cs = url.split('?')[1]; //获取?之后的参数字符串
  123. var cs_arr = cs.split('&'); //参数字符串分割为数组
  124. for (var i = 0; i < cs_arr.length; i++) { //遍历数组,拿到json对象
  125. if (cs_arr[i].split('=')[0] == name) {
  126. return cs_arr[i].split('=')[1];
  127. }
  128. }
  129. return "";
  130. } catch {
  131. return "";
  132. }
  133. },
  134. left(){
  135. window.close()
  136. }
  137. }
  138. }
  139. </script>
  140. <style lang="scss" scoped>
  141. .navbar{
  142. background-color: #2e64ac;
  143. color: #fff;
  144. height: 44px;
  145. text-align: center;
  146. line-height: 44px;
  147. font-weight: 700;
  148. overflow: hidden;
  149. white-space: nowrap;
  150. text-overflow: ellipsis;
  151. position: relative;
  152. .left{
  153. position: absolute;
  154. left: 30rpx;
  155. display: flex;
  156. justify-content: center;
  157. align-items: center;
  158. font-weight: 500;
  159. }
  160. }
  161. .content{
  162. color: #000;
  163. line-height: 50rpx;
  164. padding: 15rpx;
  165. padding-bottom: 50rpx;
  166. .t1{
  167. text-align: center;
  168. padding: 10rpx 0;
  169. font-size: 34rpx;
  170. }
  171. .t2{
  172. text-align: center;
  173. padding-bottom: 30rpx;
  174. font-size: 36rpx;
  175. }
  176. .text{
  177. color: #555;
  178. padding: 0 20rpx;
  179. font-size: 30rpx;
  180. text{
  181. color: #000;
  182. }
  183. }
  184. .erweim{
  185. display: flex;
  186. justify-content: center;
  187. align-items: center;
  188. padding: 30rpx 0;
  189. }
  190. .z{
  191. .title{
  192. padding: 0 20rpx;
  193. }
  194. .text{
  195. font-size: 26rpx;
  196. color: #000;
  197. line-height: 54rpx;
  198. }
  199. }
  200. }
  201. .info{
  202. text-align: center;
  203. padding-top: 100rpx;
  204. color: #777;
  205. font-size: 28rpx;
  206. }
  207. </style>