From f3fbd299182fc1fcb0dedd6c92c79e039d110682 Mon Sep 17 00:00:00 2001 From: vee <897831508@qq.com> Date: Wed, 14 Sep 2022 14:34:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5banner=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/index.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/home/index.vue b/pages/home/index.vue index c4b46da..0137857 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -270,10 +270,10 @@ bannerClick(i) { // #ifdef APP-PLUS - plus.runtime.openURL(this.bannerList[i].adUrl) + plus.runtime.openURL(this.bannerList[i]) // #endif // #ifdef H5 - var href = this.bannerList[i].adUrl + var href = this.bannerList[i] window.open(href, '_blank'); // #endif @@ -418,9 +418,10 @@ api.indexBanner({ 'mark': 'APP_INDEX' }).then(res => { - this.bannerList = res + // this.bannerList = res for (var i = 0; i < res.length; i++) { this.swiperList.push(this.baseURL + res[i].adImgPath) + this.bannerList.push(res[i].adUrl) } this.videoList = res // banner图按照接口返回的顺序 但是底部视频倒序放