lilei 8 mesi fa
parent
commit
7812cd943d
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  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')
 	}
 	// 点击购物车