From e923216db493864660a9d2cd5a80bd269080386d Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Wed, 12 Nov 2025 19:40:33 +0800 Subject: [PATCH] =?UTF-8?q?test15(KYC=E9=A1=B5):=20=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E8=8E=B7=E5=8F=96=E5=92=8C=E5=8F=91=E9=80=81?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/uploadFiles.js | 2 +- src/views/Wallet/CashOut/KYC.vue | 14 +++----------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/utils/uploadFiles.js b/src/utils/uploadFiles.js index feb7b8e..13a7338 100644 --- a/src/utils/uploadFiles.js +++ b/src/utils/uploadFiles.js @@ -43,7 +43,7 @@ export function uploadImgFile(renderFun) { // 等待Flutter注入完成 const waitForFlutterInterface = () => { let attempts = 0 - const maxAttempts = 100 // 最多等待5秒 + const maxAttempts = 6000 // 最多等待60秒 const checkInterface = () => { attempts++ diff --git a/src/views/Wallet/CashOut/KYC.vue b/src/views/Wallet/CashOut/KYC.vue index 7af7013..b91c8de 100644 --- a/src/views/Wallet/CashOut/KYC.vue +++ b/src/views/Wallet/CashOut/KYC.vue @@ -246,7 +246,6 @@ const callNativeImagePicker = async () => { // 最多3张图片 if (previewUrls.value.length >= 3) { - showWarning(t('max_images_warning')) throw new Error('Maximum number of images reached') } @@ -267,16 +266,9 @@ const callNativeImagePicker = async () => { const file = result.data console.log('接收到原生图片数据:', file) - // // 生成预览图(需要根据实际数据格式调整) - // if (typeof file === 'string' && (file.startsWith('http') || file.startsWith('data:'))) { - // // 如果是URL或base64数据 - // previewUrls.value.push(file) - // tempFiles.value.push(file) // 保存原始数据用于上传 - // } else { - // // 如果是文件对象或其他格式,需要相应处理 - // previewUrls.value.push(file) - // tempFiles.value.push(file) - // } + // 生成预览图 + previewUrls.value.push(file.path) + tempFiles.value.push(file.path) showSuccess(t('image_selected_success')) resolve()