学员端小程序
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.

167 lines
3.9 KiB

  1. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title="学员信息"></topNavbar>
  4. <view class="pad">
  5. <view class="card">
  6. <view class="row">
  7. <view class="lab">姓名</view>
  8. <view class="value">李轻云</view>
  9. </view>
  10. <view class="row">
  11. <view class="lab">证件号</view>
  12. <view class="value">4310271992365685</view>
  13. </view>
  14. <view class="row">
  15. <view class="lab">证件类型</view>
  16. <view class="value">身份证</view>
  17. </view>
  18. </view>
  19. <view class="card">
  20. <view class="row">
  21. <view class="lab">手机号</view>
  22. <view class="rightCon">
  23. <view class="val">
  24. <input v-model="form.classModel" placeholder="请输入手机号" /></input>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="row">
  29. <view class="lab">驾校名称</view>
  30. <view class="rightCon">
  31. <view class="val">
  32. <input v-model="form.classModel" placeholder="请输入手机号" /></input>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="row">
  37. <view class="lab">学驾车型</view>
  38. <view class="rightCon">
  39. <view class="val" @click="showType=true">
  40. <input v-model="form.classModel" placeholder="请选择" disabled=""/></input>
  41. </view>
  42. <view class="icon" @click="showType=true">
  43. <u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;"></u-icon>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="btnBg" @click="goNext">确认</view>
  49. </view>
  50. <u-picker :show="showType" :columns="typeArr" @confirm="confirmType"
  51. @cancel="showType=false"></u-picker>
  52. </view>
  53. </template>
  54. <script>
  55. import {
  56. getpersonface,
  57. GetDetectInfoEnhanced,
  58. getCardType
  59. } from '@/config/api.js'
  60. export default {
  61. data() {
  62. return {
  63. form: {
  64. value: 1,
  65. typeName: '身份证'
  66. },
  67. showType: false,
  68. typeArr: [
  69. ['C1','C2','C3','A2','B2','A1','A3','B1','D','E','F','C4','C5','C6']
  70. ],
  71. }
  72. // 报名进度(0:待报名,1:已选驾校,2:已实名制,3:已填写报名信息,4:已签署合同,5:待支付,6:已支付)
  73. },
  74. onLoad(options) {
  75. },
  76. methods: {
  77. confirmType(val) {
  78. let item = val.value[0]
  79. // this.form.value = item.value
  80. // this.form.typeName = item.label
  81. this.showType = false
  82. },
  83. goNext() {
  84. // return this.$goPage('/pages/indexEntry/enroll/registInfo/registInfo')
  85. if (!this.form.value) return this.$u.toast('请选择证件类型')
  86. // 去签约
  87. if (this.vuex_userInfo.applyStep == 3) {
  88. return this.$goPage('/pages/indexEntry/enroll/signContract/signContract')
  89. }
  90. // 去填表
  91. if (this.vuex_userInfo.applyStep == 2) {
  92. if (this.title == '学员信息') {
  93. // 非平台学员
  94. return his.$goPage('/pages/indexEntry/enroll/registInfo/registInfo')
  95. }
  96. return this.$goPage('/pages/indexEntry/enroll/registInfo/registInfo')
  97. }
  98. // 去支付
  99. if (this.vuex_userInfo.applyStep == 4 || this.vuex_userInfo.applyStep == 5) {
  100. return this.$goPage('/pages/indexEntry/enroll/payment/payment')
  101. }
  102. if (!this.vuex_userInfo.applyStep || this.vuex_userInfo.applyStep < 2) {
  103. // return this.$goPage('/pages/indexEntry/enroll/realName/realName')
  104. this.getpersonfaceFn()
  105. }
  106. // this.$goPage('/pages/indexEntry/enroll/signContract/signContract')
  107. // this.$goPage('/pages/indexEntry/enroll/uploadAvatar/uploadAvatar')
  108. }
  109. }
  110. }
  111. </script>
  112. <style>
  113. .input1::placeholder {
  114. color: red !important;
  115. }
  116. </style>
  117. <style lang="scss" scoped>
  118. .card {
  119. padding: 10rpx 46rpx 10rpx 32rpx;
  120. margin-bottom: 20rpx;
  121. .row {
  122. height: 100rpx;
  123. display: flex;
  124. align-items: center;
  125. .lab {
  126. width: 152rpx;
  127. }
  128. .rightCon {
  129. flex: 1;
  130. width: 0;
  131. display: flex;
  132. .val {
  133. flex: 1;
  134. width: 0;
  135. input {
  136. font-size: 28rpx;
  137. }
  138. }
  139. .icon {
  140. width: 30rpx;
  141. height: 30rpx;
  142. u-icon {}
  143. }
  144. }
  145. }
  146. }
  147. .btnBg {
  148. width: 396rpx;
  149. margin: 100rpx auto 0 auto;
  150. }
  151. </style>