Browse Source

文本调整

wangxy 6 months ago
parent
commit
f605134e0a
1 changed files with 16 additions and 9 deletions
  1. 16 9
      components/custom-tabbar/custom-tabbar.vue

+ 16 - 9
components/custom-tabbar/custom-tabbar.vue

@@ -50,27 +50,34 @@
 		methods: {
 
 			switchTab(path, params = {}) {
-				
+				console.log(path)
 				/* if(path =='/pages/game/index'){
 					toast("功能暂未开放!")
 					return false
 				} */
 				
 				if (getUserIdentity() == 'Visitor') {
+					if (path === '/pages/game/index') {
+						// 游戏需要返回功能
+						uni.navigateTo({
+						  url: path
+						});
+						return ;
+					}
 					uni.redirectTo({
 						url: path + '?nianji=' + this.nianji + '&cardId=' + this.cardId + '&zhangId=' + this
 							.zhangId
 					});
 				}else{
 
-          if (path === '/pages/game/index') {
-            // 游戏需要返回功能
-            uni.navigateTo({
-              url: path
-            });
-            return ;
-          }
-
+			  if (path === '/pages/game/index') {
+				// 游戏需要返回功能
+				uni.navigateTo({
+				  url: path
+				});
+				return ;
+			  }
+		
 					uni.redirectTo({
 						url: path 
 					});