lilei 8 hónapja
szülő
commit
7812cd943d
1 módosított fájl, 9 hozzáadás és 0 törlés
  1. 9 0
      utils/index.js

+ 9 - 0
utils/index.js

@@ -135,6 +135,15 @@ export function openCamera(hasLogin,sysUserFlag,maxNums){
 export function clickTab(row,hasLogin,isNoAuth,isMax){
 	// 点击促销刷新列表
 	if(row.text == '促销'){
+		if(!hasLogin){
+			toLogin()
+			return true
+		}
+		// 游客去认证
+		if(isNoAuth){
+			toAuthStore()
+			return true
+		}
 		uni.$emit('refashProm')
 	}
 	// 点击购物车