From 2845af7e901dc28c1494d6b323d7bc1d9c49ece4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E9=A3=9E=E6=B4=8B?= <15778543+xufeiyang6017@user.noreply.gitee.com> Date: Fri, 26 Dec 2025 15:04:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=A5=E9=A9=BB=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E6=8F=90=E4=BA=A4=E6=97=B6=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/settlement/index.js | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/pages/settlement/index.js b/pages/settlement/index.js index 0ba5962..76d0c1b 100644 --- a/pages/settlement/index.js +++ b/pages/settlement/index.js @@ -552,9 +552,9 @@ Page({ console.log('用户未登录,显示授权弹窗'); // 保存当前表单数据 this.saveSettlementProgress(); - // 显示登录弹窗 + // 显示一键登录弹窗 this.setData({ - showAuthModal: true + showOneKeyLoginModal: true }); return; // 取消提交申请 } @@ -812,10 +812,23 @@ Page({ // 清除进度数据,因为已经提交了 this.clearSettlementProgress(); } else { - wx.showToast({ - title: result.message || '提交失败', - icon: 'none' - }); + if (result.code === 400 && result.message.includes('已有待审核的入驻申请')) { + wx.showToast({ + title: result.message, + icon: 'none', + duration: 2000 + }); + setTimeout(() => { + wx.reLaunch({ + url: '/pages/index/index' + }); + }, 2000); + } else { + wx.showToast({ + title: result.message || '提交失败', + icon: 'none' + }); + } } } catch (error) { console.error('提交入驻申请失败:', error);