From ccf6d1b0162d231b05ce5e346cc61f558cd1a080 Mon Sep 17 00:00:00 2001
From: sunzhuangzhuang <961120009@qq.com>
Date: Sat, 30 Aug 2025 15:09:43 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E6=96=87=E4=BB=B6=E4=B8=8A?=
=?UTF-8?q?=E4=BC=A0=E4=BB=A5=E5=8F=8A=E7=99=BB=E5=BD=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/EditDetailsPage.vue | 6 +-
src/views/Login.vue | 10 +--
src/views/Matching.vue | 162 +++++++++++++++++++++++++++++++---
3 files changed, 161 insertions(+), 17 deletions(-)
diff --git a/src/views/EditDetailsPage.vue b/src/views/EditDetailsPage.vue
index 498233c..f8b17d3 100644
--- a/src/views/EditDetailsPage.vue
+++ b/src/views/EditDetailsPage.vue
@@ -346,7 +346,7 @@ const handleQrUploadSuccess = (response, type) => {
unionpay: 'unionpayQr'
}
- form[fieldMap[type]] = response.url
+ form[fieldMap[type]] = response.data.url
ElMessage.success('收款码上传成功')
} else {
ElMessage.error(response.message || '上传失败')
@@ -403,8 +403,10 @@ const beforeDocumentUpload = (file) => {
* @param {string} type - 证件类型 (businessLicense/idCardFront/idCardBack)
*/
const handleDocumentUploadSuccess = (response, type) => {
+ console.log(response, 'response');
+
if (response.success) {
- form[type] = response.url
+ form[type] = response.data.url
const typeNames = {
businessLicense: '营业执照',
idCardFront: '身份证正面',
diff --git a/src/views/Login.vue b/src/views/Login.vue
index a61e16f..7003c9e 100644
--- a/src/views/Login.vue
+++ b/src/views/Login.vue
@@ -156,11 +156,11 @@ const handleLogin = async () => {
if (!valid) return
// 验证验证码
- const captchaValid = await captchaRef.value.verifyCaptcha(loginForm.captcha)
- if (!captchaValid) {
- loginForm.captcha = ''
- return
- }
+ // const captchaValid = await captchaRef.value.verifyCaptcha(loginForm.captcha)
+ // if (!captchaValid) {
+ // loginForm.captcha = ''
+ // return
+ // }
// 获取验证码信息
const captchaInfo = captchaRef.value.getCaptchaInfo()
diff --git a/src/views/Matching.vue b/src/views/Matching.vue
index 87f6371..df27f18 100644
--- a/src/views/Matching.vue
+++ b/src/views/Matching.vue
@@ -330,10 +330,19 @@
:before-upload="beforeUpload"
:on-success="handleUploadSuccess"
:on-error="handleUploadError"
+ :on-progress="handleUploadProgress"
:show-file-list="false"
+ :disabled="transferDialog.uploading"
accept="image/*"
>
-