|
@@ -121,19 +121,21 @@
|
|
|
clickBanner(index){
|
|
|
let row = this.imageTopList[index]
|
|
|
console.log(index,row)
|
|
|
- if(row.jumpType !== 'NONE' && this.hasLogin){
|
|
|
- // 跳外网地址
|
|
|
- if(row.jumpUrl.indexOf('http') == 0){
|
|
|
-
|
|
|
- }
|
|
|
- // 跳小程序页面
|
|
|
- if(row.jumpUrl.indexOf('/pages') == 0){
|
|
|
- uni.navigateTo({
|
|
|
- url: row.jumpUrl
|
|
|
- })
|
|
|
+ if(row.jumpType !== 'NONE'){
|
|
|
+ if(this.hasLogin){
|
|
|
+ // 跳外网地址
|
|
|
+ if(row.jumpUrl.indexOf('http') == 0){
|
|
|
+
|
|
|
+ }
|
|
|
+ // 跳小程序页面
|
|
|
+ if(row.jumpUrl.indexOf('/pages') == 0){
|
|
|
+ uni.navigateTo({
|
|
|
+ url: row.jumpUrl
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ this.toLoginPage()
|
|
|
}
|
|
|
- }else{
|
|
|
- this.toLoginPage()
|
|
|
}
|
|
|
},
|
|
|
// 获取banner
|