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

306 lines
6.1 KiB

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