|
@@ -424,6 +424,7 @@
|
|
|
},
|
|
|
// 显示促销模块
|
|
|
showPromoTab(){
|
|
|
+ // 添加促销模块
|
|
|
this.$store.state.vuex_tabBarList.splice(1,0,{
|
|
|
"pagePath": "/pages/promo/index",
|
|
|
"iconPath": "/static/tab/tab_promo_normal.png",
|
|
@@ -432,15 +433,20 @@
|
|
|
'customIcon': false,
|
|
|
})
|
|
|
// 居中透出显示扫描按钮
|
|
|
- this.$store.state.vuex_tabBarList[2].iconPath = "/static/tab/tab_scan_mid.png"
|
|
|
- this.$store.state.vuex_tabBarList[2].midButton = true
|
|
|
+ const scanTab = this.$store.state.vuex_tabBarList.find(item => item.text == '扫描VIN')
|
|
|
+ if(scanTab){
|
|
|
+ scanTab.iconPath = "/static/tab/tab_scan_mid.png"
|
|
|
+ scanTab.midButton = true
|
|
|
+ }
|
|
|
},
|
|
|
// 隐藏促销模块
|
|
|
hidePromoTab(){
|
|
|
+ // 删除促销模块
|
|
|
const promoIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '促销')
|
|
|
if(promoIndex > -1){
|
|
|
this.$store.state.vuex_tabBarList.splice(promoIndex,1)
|
|
|
}
|
|
|
+ // 扫描按钮不局中
|
|
|
const scanTab = this.$store.state.vuex_tabBarList.find(item => item.text == '扫描VIN')
|
|
|
if(scanTab){
|
|
|
scanTab.iconPath = "/static/tab/tab_scan_normal.png"
|