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 @@ - + - -