diff --git a/pages/index/index.vue b/pages/index/index.vue index 402b319..c4c9aaa 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1060,16 +1060,12 @@ that.mallAds = res.result.mallAds for(let i=0;i item.trim() !== '') // 过滤掉空项 - .map(url => ({ - pic: url.trim() - })); + that.adList = that.mallAds[i].adImage.split(',').filter(item => item.trim() !== '').map(url => ({ + pic: url.trim() + })); } else { // 没有逗号:整个字符串作为一个对象 that.adList = [{ @@ -1107,6 +1103,7 @@ }).catch((res) => {}); }, goAdPage(item) { + console.log('hahahahah',item) uni.navigateTo({ url: item.linkUrl + item.linkParams })