修复弹窗广告bug

This commit is contained in:
赵毅 2025-07-09 11:52:46 +08:00
parent 4d85ad9606
commit 19d0568909

View File

@ -277,12 +277,16 @@
page_num: 1, page_num: 1,
page_size: 50 page_size: 50
}) })
if (res4.rows.length != 0) {
this.largePopList = res4.rows.map(item => { this.largePopList = res4.rows.map(item => {
return { return {
...item, ...item,
ad_picture: picUrl + item.ad_picture ad_picture: picUrl + item.ad_picture
}; };
}); });
} else {
this.ads1Show = false
}
const res5 = await request(apiArr.advPage, "POST", { const res5 = await request(apiArr.advPage, "POST", {
community_id: Number(uni.getStorageSync('changeCommData').id), community_id: Number(uni.getStorageSync('changeCommData').id),
@ -290,12 +294,16 @@
page_num: 1, page_num: 1,
page_size: 50 page_size: 50
}) })
if (res5.rows.length != 0) {
this.popList = res5.rows.map(item => { this.popList = res5.rows.map(item => {
return { return {
...item, ...item,
ad_picture: picUrl + item.ad_picture ad_picture: picUrl + item.ad_picture
}; };
}); });
} else {
this.ads2Show = false
}
}, },
headerServerClick(e) { headerServerClick(e) {