Browse Source

bug 修复

lilei 4 years ago
parent
commit
d15dce0794
1 changed files with 10 additions and 3 deletions
  1. 10 3
      pages/goods/index.vue

+ 10 - 3
pages/goods/index.vue

@@ -60,9 +60,16 @@
 				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'){
-					uni.navigateTo({
-						url: row.jumpUrl
-					})
+					// 跳外网地址
+					if(row.jumpUrl.indexOf('http') == 0){
+						
+					}
+					// 跳小程序页面
+					if(row.jumpUrl.indexOf('/pages') == 0){
+						uni.navigateTo({
+							url: row.jumpUrl
+						})
+					}
 				}
 				}
 			},
 			},
 			// 获取banner
 			// 获取banner