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; }