|
@@ -766,11 +766,11 @@
|
|
|
},
|
|
|
// 显示购物车tab
|
|
|
showCatTab(){
|
|
|
- const videoIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '视频')
|
|
|
+ const videoIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '我的')
|
|
|
const catIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '购物车')
|
|
|
if(catIndex<0 && videoIndex >= 0){
|
|
|
// 替换视频为购物车
|
|
|
- this.$store.state.vuex_tabBarList.splice(videoIndex,1,{
|
|
|
+ this.$store.state.vuex_tabBarList.splice(videoIndex,0,{
|
|
|
"pagePath": "/pages/cart/index",
|
|
|
"iconPath": "/static/tab/tab_cart_normal.png",
|
|
|
"selectedIconPath": "/static/tab/tab_cart_pressed.png",
|
|
@@ -791,13 +791,14 @@
|
|
|
const catIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '购物车')
|
|
|
if(videoIndex<0 && catIndex >= 0){
|
|
|
// 替换购物车为视频
|
|
|
- this.$store.state.vuex_tabBarList.splice(catIndex,1,{
|
|
|
- "pagePath": "/pages/videos/index",
|
|
|
- "iconPath": "/static/tab/tab_video_normal.png",
|
|
|
- "selectedIconPath": "/static/tab/tab_video_pressed.png",
|
|
|
- "text": "视频",
|
|
|
- 'customIcon': false,
|
|
|
- })
|
|
|
+ // this.$store.state.vuex_tabBarList.splice(catIndex,1,{
|
|
|
+ // "pagePath": "/pages/videos/index",
|
|
|
+ // "iconPath": "/static/tab/tab_video_normal.png",
|
|
|
+ // "selectedIconPath": "/static/tab/tab_video_pressed.png",
|
|
|
+ // "text": "视频",
|
|
|
+ // 'customIcon': false,
|
|
|
+ // })
|
|
|
+ this.$store.state.vuex_tabBarList.splice(catIndex,1)
|
|
|
}
|
|
|
},
|
|
|
// 显示促销模块
|