更改商品列表显示问题

This commit is contained in:
jia 2023-09-04 20:12:53 +08:00
parent e3872c2c4c
commit 173d2fa17d

View File

@ -242,11 +242,7 @@ export default {
page: 1, page: 1,
limit: 6 limit: 6
}, },
where1: {
page: 1,
limit: 10
},
currentItemId: 69, // 0 || 69 currentItemId: 69, // 0 || 69
keyword: '', keyword: '',
location: '', location: '',
@ -294,6 +290,7 @@ export default {
if (this.status == 'nomore') return; if (this.status == 'nomore') return;
this.status = 'loading'; this.status = 'loading';
this.where.page = ++this.where.page; this.where.page = ++this.where.page;
this.list() this.list()
}, },
mounted() { mounted() {
@ -351,7 +348,7 @@ export default {
this.cateGoods.push(...res.data.list) this.cateGoods.push(...res.data.list)
}) })
} else { } else {
getProductHot(1, 10).then(res => { getProductHot(this.where.page,this.where.limit).then(res => {
this.cateGoods.push(...res.data.list) this.cateGoods.push(...res.data.list)
}) })
} }