diff --git a/pages/admin/orderList/index.vue b/pages/admin/orderList/index.vue index e28c771..d5c5b8f 100644 --- a/pages/admin/orderList/index.vue +++ b/pages/admin/orderList/index.vue @@ -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) { diff --git a/pages/index/index.vue b/pages/index/index.vue index e442a4a..a0d89cd 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -563,8 +563,10 @@ } }, onPullDownRefresh() { - this.getGoods(true) - uni.stopPullDownRefresh() + + 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;