修复店铺商品加载错误的问题

This commit is contained in:
weipengfei 2023-10-28 17:43:43 +08:00
parent b8245eb162
commit d1050cc01d

View File

@ -867,11 +867,12 @@
const query = uni.createSelectorQuery().in(this);
query.select('#goods').boundingClientRect(data => {
if (data.bottom < 1500 && data.top < 0) {
if (this.loadend == false) {
this.getProductSpu()
} else {
this.getGoods();
}
this.getGoods();
// if (this.loadend == false) {
// this.getProductSpu()
// } else {;
// this.getGoods();
// }
}
}).exec();
//
@ -1008,6 +1009,7 @@
if (res.data.business_status == 2) {
this.isLihaiYun === 'Lihai' ? this.tabs = this.tabs4 : this.tabs = this.tabs3
this.type=7
} else {
this.tabs = this.tabs5
this.type=7