Browse Source

bug 修复

lilei 4 years ago
parent
commit
56cef61405
2 changed files with 6 additions and 2 deletions
  1. 3 1
      pages/goods/index.vue
  2. 3 1
      pages/index/index.vue

+ 3 - 1
pages/goods/index.vue

@@ -121,7 +121,7 @@
 			clickBanner(index){
 			clickBanner(index){
 				let row = this.imageTopList[index]
 				let row = this.imageTopList[index]
 				console.log(index,row)
 				console.log(index,row)
-				if(row.jumpType !== 'NONE'){
+				if(row.jumpType !== 'NONE' && this.hasLogin){
 					// 跳外网地址
 					// 跳外网地址
 					if(row.jumpUrl.indexOf('http') == 0){
 					if(row.jumpUrl.indexOf('http') == 0){
 						
 						
@@ -132,6 +132,8 @@
 							url: row.jumpUrl
 							url: row.jumpUrl
 						})
 						})
 					}
 					}
+				}else{
+					this.toLoginPage()
 				}
 				}
 			},
 			},
 			// 获取banner
 			// 获取banner

+ 3 - 1
pages/index/index.vue

@@ -274,7 +274,7 @@
 			clickBanner(index){
 			clickBanner(index){
 				let row = this.imageTopList[index]
 				let row = this.imageTopList[index]
 				console.log(index,row)
 				console.log(index,row)
-				if(row.jumpType !== 'NONE'){
+				if(row.jumpType !== 'NONE' && this.hasLogin){
 					// 如果是大转盘
 					// 如果是大转盘
 					if(row.jumpUrl.indexOf('pagesA/luckDraw') >= 0){
 					if(row.jumpUrl.indexOf('pagesA/luckDraw') >= 0){
 						if(this.showFixedLottery){
 						if(this.showFixedLottery){
@@ -292,6 +292,8 @@
 							url: row.jumpUrl
 							url: row.jumpUrl
 						})
 						})
 					}
 					}
+				}else{
+					this.toLoginPage()
 				}
 				}
 			},
 			},
 			// 查询购物车
 			// 查询购物车