|
@@ -102,7 +102,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <u-tabbar :list="vuex_tabBarList" :before-switch="beforeSwitch" :mid-button="true"></u-tabbar>
|
|
|
|
|
|
+ <u-tabbar :list="vuex_tabBarList" :before-switch="beforeSwitch"></u-tabbar>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -252,7 +252,8 @@
|
|
methods: {
|
|
methods: {
|
|
// 扫描vin
|
|
// 扫描vin
|
|
beforeSwitch(index){
|
|
beforeSwitch(index){
|
|
- if(index==2){
|
|
|
|
|
|
+ const row = this.$store.state.vuex_tabBarList[index]
|
|
|
|
+ if(row.text == '扫描VIN'){
|
|
this.openCamera()
|
|
this.openCamera()
|
|
}else{
|
|
}else{
|
|
return true
|
|
return true
|
|
@@ -399,7 +400,6 @@
|
|
// 查询是否支持数字货架
|
|
// 查询是否支持数字货架
|
|
getStoreShelf(){
|
|
getStoreShelf(){
|
|
findStoreShelf().then(res => {
|
|
findStoreShelf().then(res => {
|
|
- console.log(res)
|
|
|
|
this.$store.state.vuex_storeShelf = res.data;
|
|
this.$store.state.vuex_storeShelf = res.data;
|
|
if(res.data){
|
|
if(res.data){
|
|
// 获取价格权限配置
|
|
// 获取价格权限配置
|
|
@@ -410,6 +410,14 @@
|
|
this.shelfGetTotalWaitQty()
|
|
this.shelfGetTotalWaitQty()
|
|
// 获取轮播数据
|
|
// 获取轮播数据
|
|
this.getCarousel()
|
|
this.getCarousel()
|
|
|
|
+ // 显示促销模块
|
|
|
|
+ this.$store.state.vuex_tabBarList.splice(1,0,{
|
|
|
|
+ "pagePath": "/pages/promo/index",
|
|
|
|
+ "iconPath": "/static/tab/tab_promo_normal.png",
|
|
|
|
+ "selectedIconPath": "/static/tab/tab_promo_pressed.png",
|
|
|
|
+ "text": "促销",
|
|
|
|
+ 'customIcon': false,
|
|
|
|
+ })
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|