From 17328afdace01fe83a17355bfb2b4604ee5116de 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, 30 Dec 2025 15:34:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=88=E4=BD=9C=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=AB=8B=E5=8D=B3=E5=90=88=E4=BD=9C=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/cooperation/index.js | 15 +++++++++++++-- pages/cooperation/index.wxss | 11 ++++++++--- 2 files changed, 21 insertions(+), 5 deletions(-) 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 {