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

305 lines
6.2 KiB

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