diff --git a/pages/index/salesOrderList/salesOrderList.vue b/pages/index/salesOrderList/salesOrderList.vue index 54b31ac..f6693c6 100644 --- a/pages/index/salesOrderList/salesOrderList.vue +++ b/pages/index/salesOrderList/salesOrderList.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(); }, diff --git a/pages/welcome/welcome.vue b/pages/welcome/welcome.vue index b7faca9..bfad874 100644 --- a/pages/welcome/welcome.vue +++ b/pages/welcome/welcome.vue @@ -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;