|
|
@@ -44,7 +44,7 @@ export default {
|
|
|
return {
|
|
|
currentIndex: 0,
|
|
|
normalTabs: [
|
|
|
- { text: '行', pagePath: '/pages/home/index', icon: '/static/tab-action.png', selectedIcon: '/static/tab-action-active.png' },
|
|
|
+ { text: '行', pagePath: '/pages/index-home/index', icon: '/static/tab-action.png', selectedIcon: '/static/tab-action-active.png' },
|
|
|
{ text: '身', pagePath: '/pages/body/index', icon: '/static/tab-body.png', selectedIcon: '/static/tab-body-active.png' },
|
|
|
{ text: '智', pagePath: '/pages/wisdom/index', icon: '/static/tab-wisdom.png', selectedIcon: '/static/tab-wisdom-active.png' },
|
|
|
{ text: '心', pagePath: '/pages/mind/index', icon: '/static/tab-mind.png', selectedIcon: '/static/tab-mind-active.png' },
|
|
|
@@ -92,7 +92,7 @@ export default {
|
|
|
switchTab(item, index) {
|
|
|
this.currentIndex = index
|
|
|
// 原生TabBar页使用switchTab,非Tab页使用redirectTo(比reLaunch轻量)
|
|
|
- const nativeTabPages = ['/pages/home/index', '/pages/body/index', '/pages/wisdom/index', '/pages/mind/index', '/pages/profile/profile']
|
|
|
+ const nativeTabPages = ['/pages/index-home/index', '/pages/body/index', '/pages/wisdom/index', '/pages/mind/index', '/pages/profile/profile']
|
|
|
if (nativeTabPages.includes(item.pagePath)) {
|
|
|
uni.switchTab({ url: item.pagePath })
|
|
|
} else {
|