微信小程序发布试用版本

This commit is contained in:
zhonghua1
2026-01-31 21:10:40 +08:00
parent 4ebeec45bc
commit 80d6d46182
338 changed files with 5767 additions and 6091 deletions

View File

@@ -8,14 +8,14 @@ Component({
{
key: 'reception',
text: '接待',
pagePath: 'pages/reception/reception', // 使用与 pages.json 一致的格式(不带前导斜杠)
pagePath: 'pages-subpackage/reception/reception', // 使用与 pages.json 一致的格式(不带前导斜杠)
iconPath: '/static/tabbar/reception.png',
selectedIconPath: '/static/tabbar/reception_active.png',
},
{
key: 'customer',
text: '客户',
pagePath: 'pages/customer/customer',
pagePath: 'pages-subpackage/customer/customer',
iconPath: '/static/tabbar/customer.png',
selectedIconPath: '/static/tabbar/customer_active.png',
},
@@ -36,7 +36,7 @@ Component({
{
key: 'meeting_summary',
text: '总结和统计',
pagePath: 'pages/meeting_summary/meeting_summary',
pagePath: 'pages-subpackage/meeting_summary/meeting_summary',
iconPath: '/static/tabbar/insight.png',
selectedIconPath: '/static/tabbar/insight_active.png',
},
@@ -268,11 +268,11 @@ Component({
// 重要:使用字符串字面量重新构建路径,确保是全新的字符串
// 根据 key 直接构建路径,避免使用 item.pagePath 可能存在的引用问题
const pathMap = {
'reception': 'pages/reception/reception',
'customer': 'pages/customer/customer',
'reception': 'pages-subpackage/reception/reception',
'customer': 'pages-subpackage/customer/customer',
'team': 'pages/team/team',
'ucenter': 'pages/ucenter/ucenter',
'meeting_summary': 'pages/meeting_summary/meeting_summary',
'meeting_summary': 'pages-subpackage/meeting_summary/meeting_summary',
'furniture_reception': 'pages/furniture_reception/furniture_reception',
'common_begin_reception': 'pages/furniture_reception/common_begin_reception',
'furniture_customer': 'pages/furniture_customer/furniture_customer',
@@ -458,7 +458,7 @@ Component({
console.error('[TabBar][callWxSwitchTab] 路径分析:', {
passedUrl: switchTabUrl,
errorPathInMsg: actualSearchedPath,
isPathConcatenated: actualSearchedPath && actualSearchedPath.includes('pages/reception/pages/'),
isPathConcatenated: actualSearchedPath && (actualSearchedPath.includes('pages/reception/pages/') || actualSearchedPath.includes('pages-subpackage/reception/pages/')),
expectedPath: switchTabUrl,
actualSearchedPath: actualSearchedPath,
pathDifference: actualSearchedPath ? actualSearchedPath.replace(switchTabUrl, '') : null,
@@ -466,7 +466,7 @@ Component({
});
// 检查是否是路径拼接问题
if (actualSearchedPath && actualSearchedPath.includes('pages/reception/pages/')) {
if (actualSearchedPath && (actualSearchedPath.includes('pages/reception/pages/') || actualSearchedPath.includes('pages-subpackage/reception/pages/'))) {
console.error('[TabBar][callWxSwitchTab] 确认是路径拼接问题!');
console.error('[TabBar][callWxSwitchTab] 当前页面路径被错误地拼接到了目标路径前面');
console.error('[TabBar][callWxSwitchTab] 这可能是因为微信小程序在处理自定义 tabBar 的 switchTab 时的 bug');