修复:设备订单的分页查询时导致上滑列表时数据丢失。

huipay-h5
游梦婷 1 year ago
parent 28760a4ca7
commit 765511b4d4
  1. 8
      pages/index/salesOrderList/salesOrderList.vue
  2. 5
      pages/welcome/welcome.vue

@ -85,14 +85,17 @@
},
onReachBottom() { //
if (!this.isLoadMore) { //
this.isLoadMore = true
// this.isLoadMore = true
this.pageNum += 1
this.serviceList = [];
// this.serviceList = [];
this.getOrderList();
}
},
onShow() {
this.serviceList = [];
this.goodtyid = 2;
this.pageNum = 1;
this.isLoadMore = false;
this.getOrderList();
},
methods: {
@ -101,6 +104,7 @@
this.goodtyid = item.id;
this.pageNum = 1;
this.serviceList = [];
this.isLoadMore = false;
this.getOrderList();
},

@ -39,6 +39,11 @@
this.getAccessToken();//openID
} else {
uni.setStorageSync("accountId","");
uni.setStorageSync("urlKey","");
uni.setStorageSync("urlCode","");
if(locationPathArr[1]){
let accountId = locationPathArr[1].split("&")[0];
app.globalData.accountId=accountId;

Loading…
Cancel
Save