From 950b91f5958721f2408d269aa7d63f753d062c77 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: Wed, 3 Dec 2025 15:56:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=87=8D=E6=96=B0=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E5=A4=87=E6=A1=88=E5=8A=9F=E8=83=BD=EF=BC=8C=E5=B0=86?= =?UTF-8?q?partnerstatus=E8=AE=BE=E7=BD=AE=E4=B8=BANull?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/settlement/index.js | 11 ++++++----- server-example/server-mysql.js | 6 ++++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/pages/settlement/index.js b/pages/settlement/index.js index d7da390..1811290 100644 --- a/pages/settlement/index.js +++ b/pages/settlement/index.js @@ -1083,16 +1083,17 @@ Page({ if (result && result.success) { // 更新本地状态 - wx.setStorageSync('settlementStatus', 'underreview'); + wx.setStorageSync('settlementStatus', ''); - // 确保页面显示审核状态页面 + // 让用户重新走一遍入驻流程,但保留初始填写的数据 this.setData({ - currentStep: 3, // 确保显示审核状态页面 - partnerstatus: 'underreview' // 使用数据库字段名 (原auditStatus) + currentStep: 0, // 重置为第一步,让用户重新填写 + partnerstatus: null, // 将合作商状态设置为Null + showGuidePage: true // 显示引导页面 }); wx.showToast({ - title: '重新提交成功', + title: '重新提交成功,请重新填写并提交申请', icon: 'success' }); } else { diff --git a/server-example/server-mysql.js b/server-example/server-mysql.js index e9897bc..5b2c5ea 100644 --- a/server-example/server-mysql.js +++ b/server-example/server-mysql.js @@ -5625,6 +5625,12 @@ app.post('/api/settlement/resubmit/:applicationId', async (req, res) => { reviewedAt: null }); + // 将用户的partnerstatus设置为Null + await user.update({ + partnerstatus: null, + reasonforfailure: null + }); + res.json({ success: true, code: 200,