驾考受理查询支付宝小程序、网页
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.

190 lines
4.1 KiB

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