| | |
| | | <div class="image_upload"> |
| | | <!-- 正面 --> |
| | | <div class="text-center"> |
| | | <el-upload class="avatar-uploader" :action="`${nowUrl}/api/api/uploadFile`" |
| | | <el-upload class="avatar-uploader" :action="`${nowUrl}/wap/public/uploadimg!execute.action`" |
| | | accept=".jpg,.jpeg,.png,.gif.JPG,.JPEG,.PNG,.GIF" :show-file-list="false" |
| | | :on-success="handelDoucumentsFront" :on-error="onErrorUpload" :before-upload="beforeAvatarUpload" |
| | | :disabled="identifyStatus == 1"> |
| | |
| | | <p>{{ $t("message.user.zhengjianzhengmian") }}</p> |
| | | </div> |
| | | <div class="text-center" style="margin: 0 10px"> |
| | | <el-upload class="avatar-uploader" :action="`${nowUrl}/api/api/uploadFile`" |
| | | <el-upload class="avatar-uploader" :action="`${nowUrl}/wap/public/uploadimg!execute.action`" |
| | | accept=".jpg,.jpeg,.png,.gif.JPG,.JPEG,.PNG,.GIF" :show-file-list="false" :on-success="handelDoucumentsBack" |
| | | :on-error="onErrorUpload" :before-upload="beforeAvatarUpload" :disabled="identifyStatus == 1"> |
| | | <!-- v-if="idBackImg || identifyStatus == 2 || identifyStatus == 3" --> |
| | |
| | | <p>{{ $t("message.user.zhengjianfanmian") }}</p> |
| | | </div> |
| | | <div class="text-center"> |
| | | <el-upload class="avatar-uploader" :action="`${nowUrl}/api/api/uploadFile`" |
| | | <el-upload class="avatar-uploader" :action="`${nowUrl}/wap/public/uploadimg!execute.action`" |
| | | accept=".jpg,.jpeg,.png,.gif.JPG,.JPEG,.PNG,.GIF" :show-file-list="false" :on-success="holdIdCardSuccess" |
| | | :on-error="onErrorUpload" :before-upload="beforeAvatarUpload" :disabled="identifyStatus == 1"> |
| | | <!-- v-if=" |
| | |
| | | }, |
| | | mounted() { |
| | | //获取域名 |
| | | this.nowUrl = "https://enjdhdg.site"; |
| | | this.nowUrl = "https://www.coinzne.com"; |
| | | //调用身份认证信息方法 |
| | | this.spToken = localStorage.getItem("spToken"); |
| | | if (this.spToken) { |
| | |
| | | }, |
| | | //上传正面 |
| | | handelDoucumentsFront(res, file) { |
| | | const { path, httpUrl } = res.data; |
| | | this.oneImg = httpUrl; |
| | | this.idFrontImg = path; |
| | | // const { path, httpUrl } = res.data; |
| | | // this.oneImg = httpUrl; |
| | | const data = res.data; |
| | | this.oneImg = `${this.nowUrl}/wap/public/showimg!showImg.action?imagePath=${data}`; |
| | | this.idFrontImg = data; |
| | | }, |
| | | //上传背面 |
| | | handelDoucumentsBack(res, file) { |
| | | const { path, httpUrl } = res.data; |
| | | this.twoImg = httpUrl; |
| | | this.idBackImg = path; |
| | | // const { path, httpUrl } = res.data; |
| | | // this.twoImg = httpUrl; |
| | | const data = res.data; |
| | | this.twoImg = `${this.nowUrl}/wap/public/showimg!showImg.action?imagePath=${data}`; |
| | | this.idBackImg = data; |
| | | }, |
| | | //手持身份证 |
| | | holdIdCardSuccess(res, file) { |
| | | const { path, httpUrl } = res.data; |
| | | this.threeImg = httpUrl; |
| | | this.handheldPhoto = path; |
| | | // const { path, httpUrl } = res.data; |
| | | // this.threeImg = httpUrl; |
| | | const data = res.data; |
| | | this.threeImg = `${this.nowUrl}/wap/public/showimg!showImg.action?imagePath=${data}`; |
| | | this.handheldPhoto = data; |
| | | }, |
| | | onErrorUpload() { |
| | | ElMessage.warning(this.$t("message.user.shangchuan3")); |
| | |
| | | } |
| | | Axios.apply({ |
| | | nationality: this.nationality, |
| | | idNumber: this.idNumber, |
| | | idName: "id/passpost", |
| | | idnumber: this.idNumber, |
| | | idname: "id/passpost", |
| | | name: this.name, |
| | | idFrontImg: this.idFrontImg, |
| | | idBackImg: this.idBackImg, |
| | | handheldPhoto: this.handheldPhoto, |
| | | idimg_1: this.idFrontImg, |
| | | idimg_2: this.idBackImg, |
| | | idimg_3: this.handheldPhoto, |
| | | }).then((res) => { |
| | | if (res.code == "0") { |
| | | // 出来一个弹窗,显示已经提交成功 |