|
@ -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图按照接口返回的顺序 但是底部视频倒序放 |
|
|