tianyi 3 weeks ago
parent
commit
cfe29e2656
  1. 7
      pages/index/index.vue

7
pages/index/index.vue

@ -1060,14 +1060,10 @@
that.mallAds = res.result.mallAds
for(let i=0;i<that.mallAds.length;i++){
if(that.mallAds[i].position == 'home_top'){
//
if (that.mallAds[i].adImage.indexOf(',') !== -1) {
// {pic: url}
that.adList = that.mallAds[i].adImage
.split(',')
.filter(item => item.trim() !== '') //
.map(url => ({
that.adList = that.mallAds[i].adImage.split(',').filter(item => item.trim() !== '').map(url => ({
pic: url.trim()
}));
} else {
@ -1107,6 +1103,7 @@
}).catch((res) => {});
},
goAdPage(item) {
console.log('hahahahah',item)
uni.navigateTo({
url: item.linkUrl + item.linkParams
})

Loading…
Cancel
Save