diff --git a/packages/community/index/index.vue b/packages/community/index/index.vue index 534f6dbd..a24e039f 100644 --- a/packages/community/index/index.vue +++ b/packages/community/index/index.vue @@ -203,6 +203,7 @@ export default { console.log("🚀 ~ onLoad ~ res.rows:", res.rows) if (!uni.getStorageSync("changeCommData")) { uni.setStorageSync("changeCommData", { name: res.rows[0].name, id: res.rows[0].community_id }) + uni.setStorageSync("isShowNav", res.rows[0].room_owner_list[0].type) } this.communityList = res.rows; }); diff --git a/packages/community/myCommunity/index.vue b/packages/community/myCommunity/index.vue index a7c4e259..25a2ca37 100644 --- a/packages/community/myCommunity/index.vue +++ b/packages/community/myCommunity/index.vue @@ -79,6 +79,7 @@ export default { this.currentCommunity = e uni.setStorageSync('changeCommData', { id: e.community_id, name: e.name }); uni.setStorageSync('currentCommunityAddr',e.addr); + uni.setStorageSync("isShowNav", e.room_owner_list[0].type) NavgateTo("1") }, }, diff --git a/pages/index/index.vue b/pages/index/index.vue index c548bfc5..9ae1cda5 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1001,6 +1001,8 @@ export default { this.localHeight = meun.height; this.showSearch() this.getSearchVal() + this.showNav = uni.getStorageSync("isShowNav") == 1 + }, onShow() {