特易招,招聘小程序
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.

243 lines
4.9 KiB

7 months ago
7 months ago
7 months ago
7 months ago
5 months ago
7 months ago
5 months ago
7 months ago
5 months ago
7 months ago
7 months ago
7 months ago
7 months ago
5 months ago
7 months ago
5 months ago
7 months ago
5 months ago
7 months ago
5 months ago
7 months ago
7 months ago
7 months ago
  1. <template>
  2. <!-- 实名认证 -->
  3. <view class="page">
  4. <navbar title="实名认证"
  5. leftClick
  6. @leftClick="$utils.navigateBack"/>
  7. <view class="info-tips">
  8. 完成实名认证<text>您将获得实名认证平台特权</text>
  9. </view>
  10. <view class="form">
  11. <view class="form-item">
  12. <view class="label">
  13. 姓名
  14. </view>
  15. <input type="text" class="form-input"
  16. placeholder="请输入姓名"
  17. v-model="form.name"/>
  18. </view>
  19. <view class="form-item">
  20. <view class="label">
  21. 身份证号码
  22. </view>
  23. <input type="text" class="form-input"
  24. placeholder="请输入身份证号码"
  25. v-model="form.cerNo"/>
  26. </view>
  27. <view class="form-item">
  28. <view class="label">
  29. 联系方式
  30. </view>
  31. <input type="text" class="form-input"
  32. placeholder="请输入联系方式"
  33. v-model="form.phone"/>
  34. </view>
  35. <view class="form-item">
  36. <view class="title">
  37. 请上传身份证人像面照片选填
  38. </view>
  39. <view class="tips">
  40. 信息仅用身份核实上传后可增加曝光机会
  41. </view>
  42. </view>
  43. <view class="form-item">
  44. <uv-upload
  45. :fileList="fileList"
  46. :maxCount="1"
  47. width="690rpx"
  48. height="280rpx"
  49. multiple
  50. @afterRead="afterRead"
  51. @delete="deleteImage">
  52. <view class="upload">
  53. <image src="../static/auth/cart.png"
  54. mode="aspectFit"
  55. style="width: 390rpx;height: 280rpx;" />
  56. <view class="btn-add">
  57. 点击上传
  58. </view>
  59. </view>
  60. </uv-upload>
  61. </view>
  62. <view class="form-item">
  63. <view class="tips"
  64. style="text-align: center;padding: 20rpx 0;">
  65. (确保文字清晰可辨避免遮挡不全反光)
  66. </view>
  67. </view>
  68. </view>
  69. <view class="uni-color-btn" @click="sumbit">
  70. 认证
  71. </view>
  72. <view class="config">
  73. <uv-checkbox-group
  74. v-model="checkboxValue"
  75. shape="circle">
  76. <view class="content">
  77. <view
  78. style="display: flex;">
  79. <uv-checkbox
  80. size="40rpx"
  81. icon-size="30rpx"
  82. activeColor="#3796F8"
  83. :name="1"
  84. ></uv-checkbox>
  85. 阅读并同意我们的<text @click="$refs.configPopup.open('getPrivacyPolicy')">服务协议与隐私条款</text>
  86. </view>
  87. <view class="">
  88. 以及<text @click="$refs.configPopup.open('getUserAgreement')">个人信息保护指引</text>
  89. </view>
  90. </view>
  91. </uv-checkbox-group>
  92. </view>
  93. <configPopup ref="configPopup"/>
  94. </view>
  95. </template>
  96. <script>
  97. export default {
  98. data() {
  99. return {
  100. checkboxValue : [],
  101. form : {},
  102. fileList: [],
  103. }
  104. },
  105. onShow() {
  106. this.getAuthenticationPerson();
  107. },
  108. methods: {
  109. //获取个人实名信息
  110. getAuthenticationPerson(){
  111. this.$api('getAuthenticationPerson',{}, res =>{
  112. if(res.code == 200){
  113. this.form = res.result;
  114. this.fileList = res.result.image ? res.result.image.split(',').map(url => {url}) : []
  115. }
  116. })
  117. },
  118. deleteImage(e){
  119. this.fileList.splice(e.index, 1)
  120. },
  121. afterRead(e){
  122. let self = this
  123. e.file.forEach(file => {
  124. self.$Oss.ossUpload(file.url).then(url => {
  125. self.fileList.push({
  126. url
  127. })
  128. })
  129. })
  130. },
  131. //提交实名认证信息 :lzx
  132. sumbit(){
  133. this.form.image = this.fileList.map((item) => item.url).join(",")
  134. if(this.$utils.verificationAll(this.form,{
  135. name:'请输入姓名',
  136. cerNo:'请输入身份证号码',
  137. phone:'请输入电话号码',
  138. image:'身份证照片不能为空',
  139. })) {
  140. return
  141. }
  142. this.$api('addAuthenticationPerson',this.form, res =>{
  143. if(res.code == 200){
  144. uni.showToast({
  145. title:'提交成功!等待审核',
  146. icon: 'none'
  147. })
  148. setTimeout(uni.navigateBack,1000,-1)
  149. }
  150. })
  151. }
  152. }
  153. }
  154. </script>
  155. <style scoped lang="scss">
  156. .page{
  157. background-color: #fff;
  158. min-height: 100vh;
  159. .info-tips{
  160. width: 100%;
  161. padding: 30rpx 0;
  162. background-color: #f3f3f3;
  163. text-align: center;
  164. text{
  165. color: $uni-color;
  166. }
  167. }
  168. .form {
  169. padding: 30rpx;
  170. .form-item{
  171. .label{
  172. padding: 20rpx 0;
  173. }
  174. .form-input{
  175. border: 1px solid $uni-color;
  176. background: rgba($uni-color, 0.1);
  177. padding: 10rpx 20rpx;
  178. font-size: 28rpx;
  179. }
  180. .title{
  181. font-weight: 900;
  182. margin-top: 50rpx;
  183. padding: 10rpx 0;
  184. }
  185. .tips{
  186. font-size: 26rpx;
  187. color: #777;
  188. padding-bottom: 20rpx;
  189. }
  190. }
  191. .upload{
  192. display: flex;
  193. justify-content: center;
  194. align-items: center;
  195. width: 690rpx;
  196. background-color: #f3f3f3;
  197. border-radius: 10rpx;
  198. .btn-add{
  199. margin: auto;
  200. padding: 10rpx 20rpx;
  201. background-color: $uni-color;
  202. color: #fff;
  203. border-radius: 10rpx;
  204. }
  205. }
  206. }
  207. .config{
  208. font-size: 26rpx;
  209. line-height: 40rpx;
  210. width: 100%;
  211. display: flex;
  212. justify-content: center;
  213. .content{
  214. width: 100%;
  215. display: flex;
  216. flex-direction: column;
  217. align-items: center;
  218. }
  219. text{
  220. color: $uni-color;
  221. }
  222. }
  223. }
  224. </style>