From 686c87c5386e3a467b9e2fd9c6726ce620c8a311 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: Sat, 31 Jan 2026 13:43:13 +0800 Subject: [PATCH] Update files --- custom-tab-bar/index.js | 26 ++---------------------- custom-tab-bar/index.wxml | 4 ++-- pages/evaluate2/one.js | 40 ++----------------------------------- project.private.config.json | 16 ++------------- 4 files changed, 8 insertions(+), 78 deletions(-) diff --git a/custom-tab-bar/index.js b/custom-tab-bar/index.js index e074057..e8394e6 100644 --- a/custom-tab-bar/index.js +++ b/custom-tab-bar/index.js @@ -56,31 +56,9 @@ Component({ console.log('修正后路径:', url) - // 当点击"估"字时,判断partnerstatus是否为approved + // 当点击"估"字时,直接跳转到估价页面,不再检查入驻状态 if (key === 'evaluate') { - const app = getApp() - const userInfo = app.globalData.userInfo || wx.getStorageSync('userInfo') || {} - const partnerstatus = userInfo.partnerstatus - - console.log('用户partnerstatus:', partnerstatus) - - // 如果partnerstatus不是approved,提示用户并跳转到入驻页面 - if (partnerstatus !== 'approved') { - wx.showToast({ - title: '该功能需要入驻之后才能使用', - icon: 'none', - duration: 5000 - }) - - // 5秒后自动跳转到入驻页面 - setTimeout(() => { - wx.navigateTo({ - url: '/pages/settlement/index' - }) - }, 2000) - - return - } + console.log('点击估价tab,直接跳转到估价页面') } // 更新全局数据 - 先更新全局状态,确保状态一致性 diff --git a/custom-tab-bar/index.wxml b/custom-tab-bar/index.wxml index a37f79b..1ad7876 100644 --- a/custom-tab-bar/index.wxml +++ b/custom-tab-bar/index.wxml @@ -33,13 +33,13 @@ {{badges['settlement']}} - 蛋吧 + 入驻 diff --git a/pages/evaluate2/one.js b/pages/evaluate2/one.js index 16cdbb4..bdba5bf 100644 --- a/pages/evaluate2/one.js +++ b/pages/evaluate2/one.js @@ -469,26 +469,7 @@ Page({ return; } - // 检查用户合作状态 - const userInfo = wx.getStorageSync('userInfo') || {}; - const partnerStatus = userInfo.partnerstatus || ''; - - if (partnerStatus !== 'approved') { - // 合作状态未批准,显示提示 - wx.showModal({ - title: '提示', - content: '需要入住成功才能查看', - confirmText: '立即入驻', - success: function(res) { - if (res.confirm) { - wx.navigateTo({ - url: '/pages/profile/authentication/index' - }); - } - } - }); - return; - } + // 跳过合作状态检查,直接跳转到商品列表页面 // 跳转到商品列表页面,并传递分类参数 wx.redirectTo({ @@ -733,24 +714,7 @@ Page({ }; wx.setStorageSync('userInfo', updatedUserInfo); - // 5. 检查partnerstatus值 - if (partnerStatus !== 'approved') { - // 显示入驻提示 - setTimeout(() => { - wx.showModal({ - title: '提示', - content: '需要入住成功才能查看', - confirmText: '立即入驻', - success: function(res) { - if (res.confirm) { - wx.navigateTo({ - url: '/pages/profile/authentication/index' - }); - } - } - }); - }, 2000); - } + // 跳过合作状态检查,不再显示入驻提示 } } catch (error) { wx.hideLoading(); diff --git a/project.private.config.json b/project.private.config.json index 3d49d96..073179c 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -1,6 +1,6 @@ { "libVersion": "3.10.3", - "projectname": "Mini-Program", + "projectname": "wechatapp", "setting": { "urlCheck": false, "coverView": true, @@ -19,17 +19,5 @@ "ignoreDevUnusedFiles": true, "bigPackageSizeSupport": false }, - "condition": { - "miniprogram": { - "list": [ - { - "name": "pages/test-tools/order-test", - "pathName": "pages/test-tools/order-test", - "query": "", - "scene": null, - "launchMode": "default" - } - ] - } - } + "condition": {} } \ No newline at end of file