diff --git a/custom-tab-bar/index.js b/custom-tab-bar/index.js index f806017..0e7a139 100644 --- a/custom-tab-bar/index.js +++ b/custom-tab-bar/index.js @@ -176,29 +176,6 @@ Component({ }) }, - // 跳转到鸡蛋估价页面 - goToEvaluatePage() { - console.log('点击鸡蛋估价按钮,跳转到估价页面'); - wx.switchTab({ - url: '/pages/evaluate/index', - success: (res) => { - console.log('跳转到估价页面成功:', res); - }, - fail: (err) => { - console.error('跳转到估价页面失败,尝试使用reLaunch:', err); - wx.reLaunch({ - url: '/pages/evaluate/index', - success: (res) => { - console.log('reLaunch到估价页面成功:', res); - }, - fail: (err) => { - console.error('reLaunch到估价页面也失败:', err); - } - }); - } - }); - }, - // 从全局数据同步状态的方法 - 增强版 diff --git a/custom-tab-bar/index.wxml b/custom-tab-bar/index.wxml index 9c67bf5..1ad7876 100644 --- a/custom-tab-bar/index.wxml +++ b/custom-tab-bar/index.wxml @@ -51,7 +51,7 @@ {{badges['profile']}} - + 我的 \ No newline at end of file diff --git a/pages/evaluate/index.js b/pages/evaluate/index.js index 247dcc0..88b9b10 100644 --- a/pages/evaluate/index.js +++ b/pages/evaluate/index.js @@ -30,7 +30,8 @@ Page({ ], // 品种选项 breedOptions: [ - '黄蛋(红蛋)' + '黄蛋(红蛋)', + '粉蛋' ] },