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

279 lines
5.7 KiB

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