From de25112d4020ccb216fcd9e99ec8d3e145c978b3 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Mon, 22 Jul 2024 16:37:04 +0800
Subject: [PATCH] 7.22更改

---
 src/views/my/components/identityAuthenty.vue |   42 ++++++++++++++++++++++++------------------
 1 files changed, 24 insertions(+), 18 deletions(-)

diff --git a/src/views/my/components/identityAuthenty.vue b/src/views/my/components/identityAuthenty.vue
index 430e0c5..cd883c8 100644
--- a/src/views/my/components/identityAuthenty.vue
+++ b/src/views/my/components/identityAuthenty.vue
@@ -47,7 +47,7 @@
         <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">
@@ -59,7 +59,7 @@
             <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" -->
@@ -71,7 +71,7 @@
             <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="
@@ -176,7 +176,7 @@
   },
   mounted() {
     //获取域名
-    this.nowUrl = "https://enjdhdg.site";
+    this.nowUrl = "https://www.coinzne.com";
     //调用身份认证信息方法
     this.spToken = localStorage.getItem("spToken");
     if (this.spToken) {
@@ -206,21 +206,27 @@
     },
     //上传正面
     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"));
@@ -271,12 +277,12 @@
       }
       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") {
           // 出来一个弹窗,显示已经提交成功

--
Gitblit v1.9.3