diff --git a/pages/cooperation/index.js b/pages/cooperation/index.js index c0c9338..27dd536 100644 --- a/pages/cooperation/index.js +++ b/pages/cooperation/index.js @@ -104,8 +104,19 @@ Page({ * 跳转到立即合作页面 */ navigateToSettlement: function () { - wx.navigateTo({ - url: '/pages/settlement/index' + console.log('navigateToSettlement函数被调用'); + wx.switchTab({ + url: '/pages/settlement/index', + success: function() { + console.log('跳转成功'); + }, + fail: function(error) { + console.error('跳转失败:', error); + wx.showToast({ + title: '跳转失败,请稍后重试', + icon: 'none' + }); + } }); } }); \ No newline at end of file diff --git a/pages/cooperation/index.wxss b/pages/cooperation/index.wxss index a711b8a..b1bc135 100644 --- a/pages/cooperation/index.wxss +++ b/pages/cooperation/index.wxss @@ -157,9 +157,14 @@ line-height: 80rpx; margin: 0; box-shadow: 0 4rpx 12rpx rgba(255, 107, 129, 0.3); - display: flex; - align-items: center; - justify-content: center; + border: none; + padding: 0; + display: block; + text-align: center; +} + +.cooperate-btn::after { + border: none; } .cooperate-btn:active {