identity.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <template>
  2. <view class="total-page page-env-160 page-box task-bg">
  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;" @click="setNum(1)">
  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" @click="setNum(2)">
  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" @click="setNum(3)">
  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/task/sf_icon.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"></EnButton> -->
  85. <EnButton v-if="step === 3 || step === 4" is_both :leftText="'上一步'" :rightText="'保存'" @onLeftSubmit="onStep(0)" @onSubmit="onSubmit" />
  86. <EnButton v-else is_both :leftText="'保存'" :rightText="'下一步'" @onLeftSubmit="onLeftSubmit" @onSubmit="onStep(1)" > </EnButton>
  87. </view>
  88. </template>
  89. <!-- correct -->
  90. <script>
  91. import TaskImgTab from "@/common/task/task_ima_tab.vue"
  92. import WhInput from "@/page_task/module/wh-input.vue"
  93. export default {
  94. components: {
  95. TaskImgTab,
  96. WhInput
  97. },
  98. data() {
  99. return {
  100. title: '',
  101. step: 1,
  102. fixedHeight: 75,
  103. stepTwo: ['two', 'double', 'correct', 'correct'],
  104. stepThree: ['three', 'three', 'double', 'correct'],
  105. value: '',
  106. formData: {
  107. "name": "",
  108. "birthday": "",
  109. "sex": 1,
  110. "id_number": "",
  111. "identity_one": "",
  112. "identity_two": "",
  113. "phone": "",
  114. "marriage_type": 1,
  115. "education_type": '',
  116. "education_name": '',
  117. "employ_type": 1,
  118. "firm_name": "",
  119. "firm_address": "",
  120. "resident_city": "",
  121. "resident_address": "",
  122. "mate_name": "",
  123. "mate_phone": "",
  124. "mate_id_number": "",
  125. "mate_firm": "",
  126. "m_code": "",
  127. "code": "",
  128. "m_identity_one": "",
  129. "m_identity_two": "",
  130. "firm_city": "",
  131. "social_num": "",
  132. "reserved_money": "",
  133. "marriage_img": [],
  134. "credit_img": []
  135. }
  136. }
  137. },
  138. onLoad(options) {
  139. this.title = options.title
  140. let clientInfoData=uni.getStorageSync('clientInfoData')
  141. let clientInfoKey=uni.getStorageSync('clientInfoKey')
  142. console.log(clientInfoData,clientInfoKey)
  143. },
  144. methods: {
  145. setNum(step){
  146. if(this.step!==step){
  147. this.step=step
  148. }
  149. },
  150. // 身份认证
  151. onAuthentication(item) {
  152. uni.navigateTo({
  153. url: "/page_task/identity_upload/identity_upload"
  154. })
  155. },
  156. // 保存
  157. onLeftSubmit() {
  158. console.log(this.formData);
  159. console.log('保存');
  160. this.step--
  161. },
  162. // 下一步
  163. onStep(type) {
  164. if(type===1){
  165. if (this.step === 3) return
  166. this.step++
  167. }else {
  168. if (this.step === 1) return
  169. this.step--
  170. }
  171. },
  172. // 完成
  173. onSubmit() {
  174. this.step = 4
  175. }
  176. }
  177. }
  178. </script>
  179. <style lang="scss" scoped>
  180. .info_button {
  181. width: 130rpx;
  182. height: 60rpx;
  183. border: none;
  184. line-height: 60rpx;
  185. }
  186. .attestation_content {
  187. width: 100%;
  188. position: absolute;
  189. }
  190. .attestation-button {
  191. width: 156rpx;
  192. height: 54rpx;
  193. line-height: 54rpx;
  194. background: #FFFFFF;
  195. border: 1rpx solid #0FB160;
  196. }
  197. .line {
  198. width: 70rpx;
  199. height: 4rpx;
  200. background: #8EDBDA;
  201. margin-top: 22rpx;
  202. }
  203. button::after {
  204. border: none;
  205. }
  206. </style>