identity.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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 is_both :leftText="'保存'" :rightText="'下一步'" @onLeftSubmit="onLeftSubmit" @onSubmit="onStep(1)" v-else>
  86. <EnButton is_both :leftText="'上一步'" :rightText="'保存'" @onLeftSubmit="onStep(0)" @onSubmit="ponLeftSubmit" 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. "birthday": "",
  110. "sex": 1,
  111. "id_number": "",
  112. "identity_one": "",
  113. "identity_two": "",
  114. "phone": "",
  115. "marriage_type": 1,
  116. "education_type": '',
  117. "education_name": '',
  118. "employ_type": 1,
  119. "firm_name": "",
  120. "firm_address": "",
  121. "resident_city": "",
  122. "resident_address": "",
  123. "mate_name": "",
  124. "mate_phone": "",
  125. "mate_id_number": "",
  126. "mate_firm": "",
  127. "m_code": "",
  128. "code": "",
  129. "m_identity_one": "",
  130. "m_identity_two": "",
  131. "firm_city": "",
  132. "social_num": "",
  133. "reserved_money": "",
  134. "marriage_img": [],
  135. "credit_img": []
  136. }
  137. }
  138. },
  139. onLoad(options) {
  140. this.title = options.title
  141. let clientInfoData=uni.getStorageSync('clientInfoData')
  142. let clientInfoKey=uni.getStorageSync('clientInfoKey')
  143. console.log(clientInfoData,clientInfoKey)
  144. },
  145. methods: {
  146. setNum(step){
  147. if(this.step!==step){
  148. this.step=step
  149. }
  150. },
  151. // 身份认证
  152. onAuthentication(item) {
  153. uni.navigateTo({
  154. url: "/page_task/identity_upload/identity_upload"
  155. })
  156. },
  157. // 保存
  158. onLeftSubmit() {
  159. console.log(this.formData);
  160. console.log('保存');
  161. this.step--
  162. },
  163. // 下一步
  164. onStep(type) {
  165. if(type===1){
  166. if (this.step === 3) return
  167. this.step++
  168. }else {
  169. if (this.step === 1) return
  170. this.step--
  171. }
  172. },
  173. // 完成
  174. onSubmit() {
  175. this.step = 4
  176. }
  177. }
  178. }
  179. </script>
  180. <style lang="scss" scoped>
  181. .info_button {
  182. width: 130rpx;
  183. height: 60rpx;
  184. border: none;
  185. line-height: 60rpx;
  186. }
  187. .attestation_content {
  188. width: 100%;
  189. position: absolute;
  190. }
  191. .attestation-button {
  192. width: 156rpx;
  193. height: 54rpx;
  194. line-height: 54rpx;
  195. background: #FFFFFF;
  196. border: 1rpx solid #0FB160;
  197. }
  198. .line {
  199. width: 70rpx;
  200. height: 4rpx;
  201. background: #8EDBDA;
  202. margin-top: 22rpx;
  203. }
  204. button::after {
  205. border: none;
  206. }
  207. </style>