From fa60aeec42001145608a0bec07a53594e2aed76f Mon Sep 17 00:00:00 2001 From: GYJ <1157756119@qq.com> Date: Sat, 14 Dec 2024 17:19:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=20undefined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 45 ++++++++++++++++++++++++++++--------------- 1 file changed, 29 insertions(+), 16 deletions(-) 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;