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

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

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

Loading…
Cancel
Save