lilei 8 tháng trước cách đây
mục cha
commit
7812cd943d
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  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')
 	}
 	// 点击购物车