dengchaochao
2024-07-27 ce3533dad7bebb53ffc730b55e08092b19ae090c
src/views/my/components/manualReset.vue
@@ -18,7 +18,7 @@
          <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"
@@ -33,7 +33,7 @@
          <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"
@@ -48,7 +48,7 @@
          <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"
@@ -196,7 +196,7 @@
  },
  mounted() {
    //获取域名
    this.nowUrl = "https://enjdhdg.site";
    this.nowUrl = "https://www.coinzne.com";
  },
  methods: {
    beforeAvatarUpload(file) {
@@ -220,20 +220,26 @@
    },
    //上传正面
    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() {