|
|
@@ -24,25 +24,25 @@ export default {
|
|
|
return {
|
|
|
tabList: [
|
|
|
{
|
|
|
- "pagePath": "pages/home/index",
|
|
|
+ "pagePath": "/pages/home/index",
|
|
|
"iconPath": "../static/images/common/home-no.png",
|
|
|
"selectedIconPath": "../static/images/common/home-is.png",
|
|
|
"text": "首页"
|
|
|
},
|
|
|
{
|
|
|
- "pagePath": "pages/home/category",
|
|
|
+ "pagePath": "/pages/home/category",
|
|
|
"iconPath": "../static/images/common/category-no.png",
|
|
|
"selectedIconPath": "../static/images/common/category-is.png",
|
|
|
"text": "分类"
|
|
|
},
|
|
|
{
|
|
|
- "pagePath": "pages/home/shop",
|
|
|
+ "pagePath": "/pages/home/shop",
|
|
|
"iconPath": "../static/images/common/shop-no.png",
|
|
|
"selectedIconPath": "../static/images/common/shop-is.png",
|
|
|
"text": "门店"
|
|
|
},
|
|
|
{
|
|
|
- "pagePath": "pages/home/user",
|
|
|
+ "pagePath": "/pages/home/user",
|
|
|
"iconPath": "../static/images/common/user-no.png",
|
|
|
"selectedIconPath": "../static/images/common/user-is.png",
|
|
|
"text": "我的"
|
|
|
@@ -61,9 +61,9 @@ export default {
|
|
|
switchTab (index, item) {
|
|
|
console.log('/' + item.pagePath)
|
|
|
console.log(index)
|
|
|
- this.currentTabIndex = index
|
|
|
+ // this.currentTabIndex = index
|
|
|
uni.switchTab({
|
|
|
- url: '/' + item.pagePath
|
|
|
+ url: item.pagePath
|
|
|
})
|
|
|
this.$emit('click', index)
|
|
|
}
|