| | |
| | | <div class="text-center"> |
| | | <el-upload |
| | | class="avatar-uploader" |
| | | :action="`${nowUrl}/api/api/uploadFile`" |
| | | :action="`${nowUrl}/wap/public/uploadimg!execute.action`" |
| | | accept=".jpg,.jpeg,.png,.gif.JPG,.JPEG,.PNG,.GIF" |
| | | :show-file-list="false" |
| | | :on-success="handelDoucumentsFront" |
| | |
| | | <div class="text-center" style="margin: 0 10px"> |
| | | <el-upload |
| | | class="avatar-uploader" |
| | | :action="`${nowUrl}/api/api/uploadFile`" |
| | | :action="`${nowUrl}/wap/public/uploadimg!execute.action`" |
| | | accept=".jpg,.jpeg,.png,.gif.JPG,.JPEG,.PNG,.GIF" |
| | | :show-file-list="false" |
| | | :on-success="handelDoucumentsBack" |
| | |
| | | <div class="text-center"> |
| | | <el-upload |
| | | class="avatar-uploader" |
| | | :action="`${nowUrl}/api/api/uploadFile`" |
| | | :action="`${nowUrl}/wap/public/uploadimg!execute.action`" |
| | | accept=".jpg,.jpeg,.png,.gif.JPG,.JPEG,.PNG,.GIF" |
| | | :show-file-list="false" |
| | | :on-success="holdIdCardSuccess" |
| | |
| | | }, |
| | | mounted() { |
| | | //获取域名 |
| | | this.nowUrl = "https://enjdhdg.site"; |
| | | this.nowUrl = "https://www.coinzne.com"; |
| | | }, |
| | | methods: { |
| | | beforeAvatarUpload(file) { |
| | |
| | | }, |
| | | //上传正面 |
| | | 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; |
| | | // const { path, httpUrl } = res.data; |
| | | // this.twoImg = httpUrl; |
| | | const path = res.data; |
| | | this.twoImg = `${this.nowUrl}/wap/public/showimg!showImg.action?imagePath=${path}`; |
| | | this.idBackImg = path; |
| | | }, |
| | | //手持身份证 |
| | | holdIdCardSuccess(res, file) { |
| | | const { path, httpUrl } = res.data; |
| | | this.threeImg = httpUrl; |
| | | // const { path, httpUrl } = res.data; |
| | | // this.threeImg = httpUrl; |
| | | const path = res.data; |
| | | this.threeImg = `${this.nowUrl}/wap/public/showimg!showImg.action?imagePath=${path}`; |
| | | this.handheldPhoto = path; |
| | | }, |
| | | onErrorUpload() { |