修改首页功能导航区的显示逻辑

This commit is contained in:
赵毅 2025-08-12 17:15:58 +08:00
parent 59c5178af9
commit f44adc7721
3 changed files with 4 additions and 0 deletions

View File

@ -203,6 +203,7 @@ export default {
console.log("🚀 ~ onLoad ~ res.rows:", res.rows) console.log("🚀 ~ onLoad ~ res.rows:", res.rows)
if (!uni.getStorageSync("changeCommData")) { if (!uni.getStorageSync("changeCommData")) {
uni.setStorageSync("changeCommData", { name: res.rows[0].name, id: res.rows[0].community_id }) 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; this.communityList = res.rows;
}); });

View File

@ -79,6 +79,7 @@ export default {
this.currentCommunity = e this.currentCommunity = e
uni.setStorageSync('changeCommData', { id: e.community_id, name: e.name }); uni.setStorageSync('changeCommData', { id: e.community_id, name: e.name });
uni.setStorageSync('currentCommunityAddr',e.addr); uni.setStorageSync('currentCommunityAddr',e.addr);
uni.setStorageSync("isShowNav", e.room_owner_list[0].type)
NavgateTo("1") NavgateTo("1")
}, },
}, },

View File

@ -1001,6 +1001,8 @@ export default {
this.localHeight = meun.height; this.localHeight = meun.height;
this.showSearch() this.showSearch()
this.getSearchVal() this.getSearchVal()
this.showNav = uni.getStorageSync("isShowNav") == 1
}, },
onShow() { onShow() {