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

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