From 28b145553da2090b82b1f61cabd78d82e51928bd 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: Tue, 2 Dec 2025 14:36:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9D=83=E9=99=90=E4=B8=8D?= =?UTF-8?q?=E8=B6=B3=E6=8F=90=E7=A4=BA=E6=A1=86=EF=BC=8C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=AB=8B=E5=8D=B3=E5=85=A5=E9=A9=BB=E5=92=8C=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/seller/index.js | 47 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 38 insertions(+), 9 deletions(-) diff --git a/pages/seller/index.js b/pages/seller/index.js index 785d0dc..b2e8add 100644 --- a/pages/seller/index.js +++ b/pages/seller/index.js @@ -1467,8 +1467,17 @@ Page({ wx.showModal({ title: '权限不足', content: '您的合作伙伴身份尚未通过审核,请等待审核通过后再发布商品', - showCancel: false, - confirmText: '确定' + showCancel: true, + cancelText: '取消', + confirmText: '立即入驻', + success: (res) => { + if (res.confirm) { + // 跳转到入驻页面 + wx.navigateTo({ + url: '/pages/settlement/index' + }) + } + } }) return } @@ -1671,13 +1680,23 @@ Page({ const userInfo = response.data; if (userInfo.partnerstatus !== 'approved') { wx.hideLoading(); - wx.showToast({ - title: '权限不足,无法保存商品', - icon: 'none', - duration: 3000 + wx.showModal({ + title: '权限不足', + content: '您的合作伙伴身份尚未通过审核,无法保存商品', + showCancel: true, + cancelText: '取消', + confirmText: '立即入驻', + success: (res) => { + if (res.confirm) { + // 跳转到入驻页面 + wx.navigateTo({ + url: '/pages/settlement/index' + }) + } + this.setData({ showEditModal: false }); + this.enablePageScroll(); + } }); - this.setData({ showEditModal: false }); - this.enablePageScroll(); return Promise.reject('partnerstatus not approved'); } return Promise.resolve(); @@ -2219,7 +2238,17 @@ Page({ wx.showModal({ title: '权限不足', content: '您的合作状态尚未通过审核,暂时无法进行商品上架操作', - showCancel: false + showCancel: true, + cancelText: '取消', + confirmText: '立即入驻', + success: (res) => { + if (res.confirm) { + // 跳转到入驻页面 + wx.navigateTo({ + url: '/pages/settlement/index' + }) + } + } }); return; }