identity.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <template>
  2. <view class="total-page page-env-160 page-box">
  3. <Nav :title="title" :genre="1" :fixedHeight="fixedHeight">
  4. <!-- 步鄹条start -->
  5. <view class="task-tabs" :style="{top:`${$tools.topHeight()}px`}">
  6. <view class="row-justify-sb m-lr50 m-tb20">
  7. <view class="column-c" style="text-align: center;">
  8. <image class="wh-45 m-b16" :src="`/static/img/information/${step === 1?'double':'correct'}.png`"
  9. mode="aspectFill"></image>
  10. <text class="size-24"
  11. :class="step === 1?'color-0FB160 sys-weight-600':'sys-weight-400'">身份认证</text>
  12. </view>
  13. <view class="line"></view>
  14. <view class="column-c justify-center">
  15. <image class="wh-45 m-b16" :src="`/static/img/information/${stepTwo[step-1]}.png`"
  16. mode="aspectFill"></image>
  17. <text class="size-24"
  18. :class="step === 2?'color-0FB160 sys-weight-600':'sys-weight-400'">教育职业信息</text>
  19. </view>
  20. <view class="line"></view>
  21. <view class="column-c justify-center">
  22. <image class="wh-45 m-b16" :src="`/static/img/information/${stepThree[step-1]}.png`"
  23. mode="aspectFill"></image>
  24. <text class="size-24"
  25. :class="step === 3?'color-0FB160 sys-weight-600':'sys-weight-400'">社保信息</text>
  26. </view>
  27. </view>
  28. </view>
  29. <!-- 步鄹条end -->
  30. </Nav>
  31. <view class="sys-list-background-color attestation_content page-env-160"
  32. :style="[{top:`${$tools.topHeight() + fixedHeight}px`}]">
  33. <!-- 身份认证start -->
  34. <view class="m-t20 m-lr30 text-color-12" v-if="step === 1">
  35. <view class="sys-background-fff r-20 p-lr30 p-t30">
  36. <text class="size-30 sys-weight-600'">身份认证</text>
  37. <view class="size-26 m-t10 text-color-999">应监管要求,请先进行身份认证</view>
  38. <view class="sys-bg-BFD2CC row-justify-sb sys-weight-500 center r-20 p-30 m-t40">
  39. <view class="row-c flex">
  40. <image class="wh-45 m-r20" src="../../static/img/logo.png" mode=""></image>
  41. <text class="size-26">身份证认证</text>
  42. </view>
  43. <button class="attestation-button button-background button-color size-26 r-30" type="default"
  44. hover-class="is-hover" @click="onAuthentication">去认证</button>
  45. </view>
  46. <view class="p-t20">
  47. <WhInput :value="formData.name" :name="'姓名'" :placeholder="'待自动录入'"></WhInput>
  48. <WhInput :value="formData.gender" :name="'性别'" :placeholder="'待自动录入'"></WhInput>
  49. <WhInput :value="formData.id_number" :is_border="false" :name="'身份证号'" :placeholder="'待自动录入'">
  50. </WhInput>
  51. </view>
  52. </view>
  53. <view class="sys-background-fff r-20 m-t20 p-lr30 p-t30">
  54. <WhInput :name="'联系方式'"></WhInput>
  55. <WhInput :name="'常居城市'" is_select></WhInput>
  56. <WhInput :name="'详细地址'"></WhInput>
  57. <WhInput :is_border="false" :name="'婚姻状态'" is_select></WhInput>
  58. </view>
  59. </view>
  60. <!-- 身份认证end -->
  61. <!-- 教育职业背景start -->
  62. <view class="m-t20 m-lr30 text-color-12" v-if="step === 2">
  63. <view class="sys-background-fff r-20 m-t20 p-lr30 p-t30">
  64. <view class="size-30 sys-weight-600 p-b30">教育职业背景</view>
  65. <WhInput :name="'联系方式'"></WhInput>
  66. <WhInput :name="'常居城市'" is_select></WhInput>
  67. <WhInput :name="'详细地址'"></WhInput>
  68. <WhInput :is_border="false" :name="'婚姻状态'" is_select></WhInput>
  69. </view>
  70. </view>
  71. <!-- 教育职业背景end -->
  72. <!-- 社保信息start -->
  73. <view class="m-t20 m-lr30 text-color-12" v-if="step === 3 || step === 4">
  74. <view class="sys-background-fff r-20 m-t20 p-lr30 p-t30">
  75. <view class="size-30 sys-weight-600 p-b30">社保信息</view>
  76. <WhInput :name="'联系方式'"></WhInput>
  77. <WhInput :name="'常居城市'" is_select></WhInput>
  78. <WhInput :name="'详细地址'"></WhInput>
  79. <WhInput :is_border="false" :name="'婚姻状态'" is_select></WhInput>
  80. </view>
  81. </view>
  82. <!-- 社保信息end -->
  83. </view>
  84. <EnButton :text="'完成'" @onSubmit="onSubmit" v-if="step === 3 || step === 4">
  85. </EnButton>
  86. <EnButton is_both :leftText="'保存'" :rightText="'下一步'" @onLeftSubmit="onLeftSubmit" @onSubmit="onStep" v-else>
  87. </EnButton>
  88. </view>
  89. </template>
  90. <!-- correct -->
  91. <script>
  92. import TaskImgTab from "@/common/task/task_ima_tab.vue"
  93. import WhInput from "@/page_task/module/wh-input.vue"
  94. export default {
  95. components: {
  96. TaskImgTab,
  97. WhInput
  98. },
  99. data() {
  100. return {
  101. title: '',
  102. step: 1,
  103. fixedHeight: 75,
  104. stepTwo: ['two', 'double', 'correct', 'correct'],
  105. stepThree: ['three', 'three', 'double', 'correct'],
  106. value: '',
  107. formData: {
  108. name: '',
  109. sex: '',
  110. id_number: ''
  111. }
  112. }
  113. },
  114. onLoad(options) {
  115. this.title = options.title
  116. },
  117. methods: {
  118. // 身份认证
  119. onAuthentication(item) {
  120. uni.navigateTo({
  121. url: "/page_task/identity_upload/identity_upload"
  122. })
  123. },
  124. // 保存
  125. onLeftSubmit() {
  126. console.log(this.formData);
  127. console.log('保存');
  128. this.step--
  129. },
  130. // 下一步
  131. onStep() {
  132. if (this.step === 3) return
  133. this.step++
  134. },
  135. // 完成
  136. onSubmit() {
  137. this.step = 4
  138. }
  139. }
  140. }
  141. </script>
  142. <style lang="scss" scoped>
  143. .info_button {
  144. width: 130rpx;
  145. height: 60rpx;
  146. border: none;
  147. line-height: 60rpx;
  148. }
  149. .attestation_content {
  150. width: 100%;
  151. position: absolute;
  152. }
  153. .attestation-button {
  154. width: 156rpx;
  155. height: 54rpx;
  156. line-height: 54rpx;
  157. background: #FFFFFF;
  158. border: 1rpx solid #0FB160;
  159. }
  160. .line {
  161. width: 70rpx;
  162. height: 4rpx;
  163. background: #8EDBDA;
  164. margin-top: 22rpx;
  165. }
  166. button::after {
  167. border: none;
  168. }
  169. </style>