更改商品列表显示问题
This commit is contained in:
parent
e3872c2c4c
commit
173d2fa17d
@ -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)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user