修复bug

This commit is contained in:
weipengfei 2023-11-18 19:03:42 +08:00
parent d58a4f3705
commit fe899f95f1
2 changed files with 13 additions and 7 deletions

View File

@ -332,7 +332,7 @@
let that = this;
console.log(that.merId)
// console.log(that.merId)
if (that.loading || that.loaded) return;
that.loading = true;
if (that.where.status == 6) {

View File

@ -563,8 +563,10 @@
}
},
onPullDownRefresh() {
this.getGoods(true)
this.getGoods(true).then(()=>{
uni.stopPullDownRefresh()
})
},
onLoad() {
@ -579,7 +581,8 @@
if (this.productList.length > 0) {
setTimeout(() => {
this.getGoods(false);
}, 1000)
this.getindex();
}, 10)
}
},
@ -1149,16 +1152,19 @@
},
//
getGoods: function(isPage) {
getGoods: async function(isPage) {
let that = this;
if (that.loadend) return;
if (that.loading) return;
if (isPage === true) that.$set(that, 'productList', []);
if (isPage === true) {
that.where.page = 1;
that.$set(that, 'productList', []);
}
that.loading = true;
that.loadTitle = '';
getOrderList(that.where, this.userInfoData.service.mer_id).then(res => {
await getOrderList(that.where, this.userInfoData.service.mer_id).then(res => {
let list = res.data.list;
let productList = that.$util.SplitArray(list, that.productList);
let loadend = list.length < that.where.limit;