|
|
@@ -70,15 +70,15 @@ export default {
|
|
|
showDimOverlay: false,
|
|
|
mainTabs: [
|
|
|
{ text: '首页', pagePath: '/pages/index-home/index', icon: '/static/tab-action.png', selectedIcon: '/static/tab-action-active.png' },
|
|
|
- { text: '健康', pagePath: '/pages/health-pkg/index', icon: '/static/tab-body.png', selectedIcon: '/static/tab-body-active.png' },
|
|
|
- { text: '成长', pagePath: '/pages/growth-pkg/index', icon: '/static/tab-growth.png', selectedIcon: '/static/tab-growth-active.png' },
|
|
|
- { text: '我的', pagePath: '/pages/profile-pkg/profile', icon: '/static/tab-profile.png', selectedIcon: '/static/tab-profile-active.png' }
|
|
|
+ { text: '健康', pagePath: '/pages/health/index', icon: '/static/tab-body.png', selectedIcon: '/static/tab-body-active.png' },
|
|
|
+ { text: '成长', pagePath: '/pages/growth/index', icon: '/static/tab-growth.png', selectedIcon: '/static/tab-growth-active.png' },
|
|
|
+ { text: '我的', pagePath: '/pages/profile/profile', icon: '/static/tab-profile.png', selectedIcon: '/static/tab-profile-active.png' }
|
|
|
],
|
|
|
teacherTabs: [
|
|
|
{ text: '首页', pagePath: '/pages/teacher/index', icon: '/static/tab-action.png', selectedIcon: '/static/tab-action-active.png' },
|
|
|
{ text: '家庭', pagePath: '/pages/teacher/families', icon: '/static/tab-family.png', selectedIcon: '/static/tab-family-active.png' },
|
|
|
{ text: '团队', pagePath: '/pages/teacher/team', icon: '/static/tab-team.png', selectedIcon: '/static/tab-team-active.png' },
|
|
|
- { text: '成长档案', pagePath: '/pages/growth-pkg/index', icon: '/static/tab-growth.png', selectedIcon: '/static/tab-growth-active.png' },
|
|
|
+ { text: '成长档案', pagePath: '/pages/growth/index', icon: '/static/tab-growth.png', selectedIcon: '/static/tab-growth-active.png' },
|
|
|
{ text: '我的', pagePath: '/pages/teacher/teacher-profile', icon: '/static/tab-profile.png', selectedIcon: '/static/tab-profile-active.png' }
|
|
|
],
|
|
|
dimensions: [
|
|
|
@@ -130,7 +130,7 @@ export default {
|
|
|
switchTab(item, index) {
|
|
|
this.currentIndex = index
|
|
|
// 只有 TabBar 注册页才能用 switchTab
|
|
|
- const nativeTabPages = ['/pages/index-home/index', '/pages/health-pkg/index', '/pages/growth-pkg/index', '/pages/profile-pkg/profile']
|
|
|
+ const nativeTabPages = ['/pages/index-home/index', '/pages/health/index', '/pages/growth/index', '/pages/profile/profile']
|
|
|
if (nativeTabPages.includes(item.pagePath)) {
|
|
|
uni.switchTab({ url: item.pagePath })
|
|
|
} else {
|