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

126 lines
2.7 KiB

1 year ago
  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="rightCon">
  9. <view class="val">
  10. <input v-model="form.typeName" placeholder="请选择" class="input1" @click="showType=true" disabled/></input>
  11. </view>
  12. <view class="icon">
  13. <u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="row" v-if="form.type==2">
  18. <view class="lab">国籍</view>
  19. <view class="rightCon">
  20. <view class="val">
  21. <input v-model="form.classModel" placeholder="请选择" @click="showType=true" disabled/></input>
  22. </view>
  23. <view class="icon">
  24. <u-icon name="arrow-right" size="14" color="#686B73" style="margin-left: 12rpx;" ></u-icon>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="row" v-if="form.type==2||form.type==3">
  29. <view class="lab">证件号码</view>
  30. <view class="rightCon">
  31. <view class="val">
  32. <input v-model="form.a" placeholder="请输入" /></input>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <view class="card">
  38. <view class="row">
  39. <view class="lab">实名认证</view>
  40. <view class="rightCon">
  41. <view class="val">待认证</view>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="btnBg" @click="$goPage('/pages/indexEntry/enroll/uploadAvatar/uploadAvatar')">下一步</view>
  46. </view>
  47. <u-picker :show="showType" :columns="typeArr" keyName="lab" @confirm="confirmType" @cancel="showType=false"></u-picker>
  48. </view>
  49. </template>
  50. <script>
  51. export default {
  52. data() {
  53. return {
  54. form: {
  55. type: 1,
  56. typeName: ''
  57. },
  58. showType: false,
  59. typeArr: [
  60. [
  61. {lab: '居民身份证',id: 1},
  62. {lab: '外国人永久居留身份证',id: 2},
  63. {lab: '军官证',id: 3},
  64. ]
  65. ],
  66. }
  67. },
  68. methods: {
  69. confirmType(val) {
  70. let item = val.value[0]
  71. this.form.type = item.id
  72. this.form.typeName = item.lab
  73. this.showType = false
  74. }
  75. }
  76. }
  77. </script>
  78. <style>
  79. .input1::placeholder {
  80. color: red !important;
  81. }
  82. </style>
  83. <style lang="scss" scoped>
  84. .card {
  85. padding: 10rpx 46rpx 10rpx 32rpx;
  86. margin-bottom: 20rpx;
  87. .row {
  88. height: 100rpx;
  89. display: flex;
  90. align-items: center;
  91. .lab {
  92. width: 152rpx;
  93. }
  94. .rightCon {
  95. flex: 1;
  96. width: 0;
  97. display: flex;
  98. .val {
  99. flex: 1;
  100. width: 0;
  101. input {
  102. font-size: 28rpx;
  103. }
  104. }
  105. .icon {
  106. width: 30rpx;
  107. height: 30rpx;
  108. u-icon {
  109. }
  110. }
  111. }
  112. }
  113. }
  114. .btnBg {
  115. width: 396rpx;
  116. margin: 100rpx auto 0 auto;
  117. }
  118. </style>