From 9b06946a621915fe350a9f0a355c3c085e323475 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, 30 Jan 2026 17:28:44 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=AE=A4?= =?UTF-8?q?=E8=AF=81=E7=8A=B6=E6=80=81=E6=A3=80=E6=9F=A5=E5=92=8C=E9=87=8D?= =?UTF-8?q?=E6=96=B0=E6=8F=90=E4=BA=A4=E7=A1=AE=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/profile/authentication/index.js | 35 +++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/pages/profile/authentication/index.js b/pages/profile/authentication/index.js index 8d6b6c5..a036515 100644 --- a/pages/profile/authentication/index.js +++ b/pages/profile/authentication/index.js @@ -136,7 +136,7 @@ Page({ /** * 提交认证 */ - async submitAuth() { + submitAuth() { // 验证是否上传了身份证正反面或营业执照 const hasIdCard = this.data.idCardFront && this.data.idCardBack; const hasBusinessLicense = this.data.businessLicense; @@ -161,6 +161,31 @@ Page({ return; } + // 检查当前认证状态 + const currentStatus = this.data.idcardstatus; + + // 如果当前状态是已通过或已拒绝,显示确认对话框 + if (currentStatus === 1 || currentStatus === 2) { + wx.showModal({ + title: '确认重新提交', + content: '您的认证信息已审核,确定要重新提交审核吗?', + success: (res) => { + if (res.confirm) { + // 用户确认后执行提交操作 + this.doSubmitAuth(openid, userId); + } + } + }); + } else { + // 否则直接提交 + this.doSubmitAuth(openid, userId); + } + }, + + /** + * 执行认证提交操作 + */ + async doSubmitAuth(openid, userId) { wx.showLoading({ title: '正在提交认证信息...', mask: true }); try { @@ -191,7 +216,8 @@ Page({ // 准备提交数据 const submitData = { openid: openid, - userId: userId + userId: userId, + idcardstatus: 0 // 设置认证状态为待审核 }; // 只提交已上传的认证材料 @@ -218,6 +244,9 @@ Page({ console.log('认证提交结果:', result); if (result && result.success) { + // 更新本地idcardstatus为0 + this.setData({ idcardstatus: 0 }); + // 认证成功后,获取最新的用户信息,包括认证状态 API.getUserInfo(openid).then(userInfoRes => { if (userInfoRes.success && userInfoRes.data) { @@ -227,6 +256,7 @@ Page({ const updatedUserInfo = { ...userInfo, ...latestUserInfo, + idcardstatus: 0, // 确保本地存储的状态也是待审核 idcard1: idcard1Url, idcard2: idcard2Url, businesslicenseurl: businessLicenseUrl, @@ -243,6 +273,7 @@ Page({ const userInfo = wx.getStorageSync('userInfo') || {}; const updatedUserInfo = { ...userInfo, + idcardstatus: 0, // 确保本地存储的状态也是待审核 idcard1: idcard1Url, idcard2: idcard2Url, businesslicenseurl: businessLicenseUrl, From dfe1889e627cc52810e30607f00f65dda4848440 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: Sat, 31 Jan 2026 09:50:21 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=90=88=E4=BD=9C?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=B7=B3=E8=BD=AC=E5=88=B0=E7=BB=93=E7=AE=97?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/cooperation/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/cooperation/index.js b/pages/cooperation/index.js index fd02014..d10466c 100644 --- a/pages/cooperation/index.js +++ b/pages/cooperation/index.js @@ -155,7 +155,7 @@ Page({ */ navigateToSettlement: function () { console.log('navigateToSettlement函数被调用'); - wx.switchTab({ + wx.navigateTo({ url: '/pages/settlement/index', success: function() { console.log('跳转成功');