From c674c9b9e591e777646e41ff921d61f05d52660a Mon Sep 17 00:00:00 2001 From: corala <18339694416@163.com> Date: Fri, 9 Sep 2022 15:10:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E6=A5=BC=E7=9B=98=EF=BC=8C?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=88=97=E8=A1=A8=E4=B8=8D=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/consumer/index.vue | 9 +++-- pages/mine/selectBuilding.vue | 67 +++++++++++++++++----------------- 2 files changed, 40 insertions(+), 36 deletions(-) diff --git a/pages/index/consumer/index.vue b/pages/index/consumer/index.vue index dc2b764..22aa590 100644 --- a/pages/index/consumer/index.vue +++ b/pages/index/consumer/index.vue @@ -394,7 +394,6 @@ onLoad(options) { this.LOADING = true this.userInfo = uni.getStorageSync("weapp_session_userInfo_data") - this.buildingID = uni.getStorageSync('buildingID').id; let newmenulist = uni.getStorageSync('weapp_session_Menu_data'); this.permissions.commonly1 = newmenulist.khgl_ck; this.permissions.commonly2 = newmenulist.khgl_gj; @@ -419,14 +418,18 @@ }, onShow() { - if (this.isnorefresh != 'refresh') { + this.buildingID = uni.getStorageSync('buildingID').id; + this.updatebuildingID = uni.getStorageSync('updatebuildingID') + if (this.isnorefresh != 'refresh'||this.updatebuildingID=='updatebuildingID') { + this.nextPage = 1; this.recordList = [] + this.getMyCustom() this.getFreeList() this.getfindKeywordsList() this.getFromSource(); this.isRefresh = false; - this.getMyCustom() this.isnorefresh = 'refresh'; + uni.setStorageSync('updatebuildingID', ''); } this.updateInit() }, diff --git a/pages/mine/selectBuilding.vue b/pages/mine/selectBuilding.vue index 9083f89..53bf827 100644 --- a/pages/mine/selectBuilding.vue +++ b/pages/mine/selectBuilding.vue @@ -1,26 +1,26 @@ - + - -