Browse Source

首页banner跳转问题修复

master
vee 3 years ago
parent
commit
f3fbd29918
  1. 7
      pages/home/index.vue

7
pages/home/index.vue

@ -270,10 +270,10 @@
bannerClick(i) { bannerClick(i) {
// #ifdef APP-PLUS // #ifdef APP-PLUS
plus.runtime.openURL(this.bannerList[i].adUrl) plus.runtime.openURL(this.bannerList[i])
// #endif // #endif
// #ifdef H5 // #ifdef H5
var href = this.bannerList[i].adUrl var href = this.bannerList[i]
window.open(href, '_blank'); window.open(href, '_blank');
// #endif // #endif
@ -418,9 +418,10 @@
api.indexBanner({ api.indexBanner({
'mark': 'APP_INDEX' 'mark': 'APP_INDEX'
}).then(res => { }).then(res => {
this.bannerList = res // this.bannerList = res
for (var i = 0; i < res.length; i++) { for (var i = 0; i < res.length; i++) {
this.swiperList.push(this.baseURL + res[i].adImgPath) this.swiperList.push(this.baseURL + res[i].adImgPath)
this.bannerList.push(res[i].adUrl)
} }
this.videoList = res this.videoList = res
// banner // banner

Loading…
Cancel
Save