From f1dc8f5a7f3a661ce19513a9ad47fe18e3e883ff Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Mon, 12 Aug 2024 11:47:14 +0800
Subject: [PATCH] 1
---
src/views/my/components/manualReset.vue | 28 +++++++++++++++++-----------
1 files changed, 17 insertions(+), 11 deletions(-)
diff --git a/src/views/my/components/manualReset.vue b/src/views/my/components/manualReset.vue
index 5a8ea1a..115017f 100644
--- a/src/views/my/components/manualReset.vue
+++ b/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://https://uni.eypmj.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() {
--
Gitblit v1.9.3