diff --git a/pages/detail/index.js b/pages/detail/index.js index e0f8378..d3fbcc7 100644 --- a/pages/detail/index.js +++ b/pages/detail/index.js @@ -1869,13 +1869,16 @@ Page({ wx.showModal({ content: '抱歉,您需先成为伯才代理以获得使用权限。', // content: that.data.bclr, - contentColor: "#ccc", - confirmColor: "#1890ff", - confirmText: "确定", - showCancel: false, - success (res) { - - }, + confirmColor: '#1890ff', + confirmText: '成为代理', + cancelText: '知道了', + success (res) { + if (res.confirm) { + wx.navigateTo({ + url: '/pages/tobeAgency/index' + }) + } + } }); }, showFee () { diff --git a/pages/tobeAgency/index.js b/pages/tobeAgency/index.js index d5befd3..12d1527 100644 --- a/pages/tobeAgency/index.js +++ b/pages/tobeAgency/index.js @@ -50,7 +50,7 @@ Page({ /** * 生命周期函数--监听页面显示 */ - onShow () { }, + onShow () {}, /** * 地址选择 @@ -184,9 +184,7 @@ Page({ duration: 1000, success () { setTimeout(() => { - wx.switchTab({ - url: '../mine/index', - }) + wx.navigateBack() }, 1200); }, });