lilei před 8 měsíci
rodič
revize
12efae9e4a
3 změnil soubory, kde provedl 5 přidání a 4 odebrání
  1. 2 2
      pages/index/index.vue
  2. 1 0
      pagesB/promoProduct.vue
  3. 2 2
      utils/index.js

+ 2 - 2
pages/index/index.vue

@@ -483,10 +483,10 @@
 			},
 			// 显示开通商城的页面
 			showShopPage(flag){
-				// 显示促销模块
-				this.showPromoTab()
 				// 隐藏tab 视频,显示tab购物车
 				if(this.hasLogin && this.userInfo && this.userInfo.sysUserFlag == '1'){
+					// 显示促销模块
+					this.showPromoTab()
 					this.cartCount()
 				}else{
 					this.$store.state.vuex_cartTotal = 0

+ 1 - 0
pagesB/promoProduct.vue

@@ -133,6 +133,7 @@
 					pageSize: this.pageSize,
 					productCode: this.queryWord,
 					promoSn: this.promoSn,
+					status: 1,
 					dealerSn: dealerSn
 				}).then(res => {
 					this.loading = false

+ 2 - 2
utils/index.js

@@ -137,12 +137,12 @@ export function clickTab(row,hasLogin,isNoAuth,isMax){
 	if(row.text == '促销'){
 		if(!hasLogin){
 			toLogin()
-			return true
+			return false
 		}
 		// 游客去认证
 		if(isNoAuth){
 			toAuthStore()
-			return true
+			return false
 		}
 		uni.$emit('refashProm')
 	}