lilei 10 月之前
父節點
當前提交
349819bd60
共有 2 個文件被更改,包括 9 次插入3 次删除
  1. 8 2
      pages/index/index.vue
  2. 1 1
      pagesB/coupon.vue

+ 8 - 2
pages/index/index.vue

@@ -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"

+ 1 - 1
pagesB/coupon.vue

@@ -58,7 +58,7 @@
 			return {
 				theme:'',
 				status: 'loading',
-				noDataText: '暂无数据',
+				noDataText: '暂无优惠券',
 				tabList: [
 					  {
 						  dispName: '未使用',