|
|
@@ -76,15 +76,15 @@ export default {
|
|
|
showDimPanel: false,
|
|
|
normalTabs: [
|
|
|
{ text: '首页', pagePath: '/pages/index-home/index', icon: '/static/tab-home.png', selectedIcon: '/static/tab-home-active.png' },
|
|
|
- { text: '健康', pagePath: '/pages/health/index', icon: '/static/tab-health.png', selectedIcon: '/static/tab-health-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' }
|
|
|
+ { text: '健康', pagePath: '/pages/health-main/index', icon: '/static/tab-health.png', selectedIcon: '/static/tab-health-active.png' },
|
|
|
+ { text: '成长', pagePath: '/pages/growth-main/index', icon: '/static/tab-growth.png', selectedIcon: '/static/tab-growth-active.png' },
|
|
|
+ { text: '我的', pagePath: '/pages/profile-main/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/index', icon: '/static/tab-growth.png', selectedIcon: '/static/tab-growth-active.png' },
|
|
|
+ { text: '成长档案', pagePath: '/pages/growth-main/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: [
|
|
|
@@ -122,7 +122,7 @@ export default {
|
|
|
switchTab(item, index) {
|
|
|
this.currentIndex = index
|
|
|
// TabBar 注册页用 switchTab,非 TabBar 页用 redirectTo
|
|
|
- var tabBarPages = ['/pages/index-home/index', '/pages/health/index', '/pages/growth/index', '/pages/profile/profile']
|
|
|
+ var tabBarPages = ['/pages/index-home/index', '/pages/health-main/index', '/pages/growth-main/index', '/pages/profile-main/profile']
|
|
|
if (tabBarPages.indexOf(item.pagePath) !== -1) {
|
|
|
uni.switchTab({ url: item.pagePath })
|
|
|
} else {
|
|
|
@@ -146,7 +146,7 @@ export default {
|
|
|
}
|
|
|
var url = dimMap[dim.code]
|
|
|
if (!url) return
|
|
|
- var tabBarPages = ['/pages/index-home/index', '/pages/health/index', '/pages/growth/index', '/pages/profile/profile']
|
|
|
+ var tabBarPages = ['/pages/index-home/index', '/pages/health-main/index', '/pages/growth-main/index', '/pages/profile-main/profile']
|
|
|
if (tabBarPages.indexOf(url) !== -1) {
|
|
|
uni.switchTab({ url: url })
|
|
|
} else {
|