diff --git a/pages/index/index.vue b/pages/index/index.vue index 987bfee..b9e447d 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,6 +1,6 @@ @@ -326,11 +336,11 @@ }) } let u = navigator.userAgent; - if ( u.toLowerCase().indexOf('micromessenger') !== -1) { + if (u.toLowerCase().indexOf('micromessenger') !== -1) { this.isWeixin = true } // uni.removeStorageSync('isIos') - if ( u.indexOf('iPhone') > -1 && !uni.getStorageSync('isIos')) { + if (u.indexOf('iPhone') > -1 && !uni.getStorageSync('isIos')) { uni.setStorageSync('isIos', true) this.isIos = true } else { @@ -753,21 +763,24 @@ //轮播图跳转 goPage(item) { let token = uni.getStorageSync('token') - const {url,jumpType}=item + const { + url, + jumpType + } = item if (token) { if (url) { if (url.indexOf('/pages/') !== -1 || url.indexOf('/me/') !== -1) { - if(jumpType==1){ + if (jumpType == 1) { console.log(url); uni.navigateTo({ url }); - }else{ + } else { uni.navigateTo({ url: '/pages/index/webView?url=' + url }); } - + } else { //#ifndef H5 uni.navigateTo({ @@ -1041,7 +1054,7 @@ height: auto; position: relative; z-index: 3; - + .swipers-box { width: 686rpx; height: 270rpx;