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

145 lines
3.2 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title="学员报名"></topNavbar>
  4. <view class="pad">
  5. <view class="card">{{link}}
  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="goNext">下一步</view>
  46. </view>
  47. <u-picker :show="showType" :columns="typeArr" keyName="lab" @confirm="confirmType" @cancel="showType=false"></u-picker>
  48. <!-- <web-view :src="link"></web-view> -->
  49. </view>
  50. </template>
  51. <script>
  52. import { getpersonface } from '@/config/api.js'
  53. export default {
  54. data() {
  55. return {
  56. form: {
  57. type: 1,
  58. typeName: ''
  59. },
  60. showType: false,
  61. typeArr: [
  62. [
  63. {lab: '居民身份证',id: 1},
  64. {lab: '外国人永久居留身份证',id: 2},
  65. {lab: '军官证',id: 3},
  66. ]
  67. ],
  68. link: ''
  69. }
  70. },
  71. onLoad() {
  72. this.getpersonfaceFn()
  73. },
  74. methods: {
  75. confirmType(val) {
  76. let item = val.value[0]
  77. this.form.type = item.id
  78. this.form.typeName = item.lab
  79. this.showType = false
  80. },
  81. async getpersonfaceFn() {
  82. const {data: res} = await getpersonface({ ruleId: 1})
  83. let obj = JSON.parse(res)
  84. // this.link = obj.Url
  85. // #ifdef H5
  86. window.open(this.link)
  87. // #endif
  88. console.log(obj)
  89. },
  90. goNext() {
  91. // this.$goPage('/pages/indexEntry/enroll/uploadAvatar/uploadAvatar')
  92. }
  93. }
  94. }
  95. </script>
  96. <style>
  97. .input1::placeholder {
  98. color: red !important;
  99. }
  100. </style>
  101. <style lang="scss" scoped>
  102. .card {
  103. padding: 10rpx 46rpx 10rpx 32rpx;
  104. margin-bottom: 20rpx;
  105. .row {
  106. height: 100rpx;
  107. display: flex;
  108. align-items: center;
  109. .lab {
  110. width: 152rpx;
  111. }
  112. .rightCon {
  113. flex: 1;
  114. width: 0;
  115. display: flex;
  116. .val {
  117. flex: 1;
  118. width: 0;
  119. input {
  120. font-size: 28rpx;
  121. }
  122. }
  123. .icon {
  124. width: 30rpx;
  125. height: 30rpx;
  126. u-icon {
  127. }
  128. }
  129. }
  130. }
  131. }
  132. .btnBg {
  133. width: 396rpx;
  134. margin: 100rpx auto 0 auto;
  135. }
  136. </style>