修改首页功能导航区的显示逻辑
This commit is contained in:
parent
59c5178af9
commit
f44adc7721
@ -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;
|
||||
});
|
||||
|
||||
@ -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")
|
||||
},
|
||||
},
|
||||
|
||||
@ -1001,6 +1001,8 @@ export default {
|
||||
this.localHeight = meun.height;
|
||||
this.showSearch()
|
||||
this.getSearchVal()
|
||||
this.showNav = uni.getStorageSync("isShowNav") == 1
|
||||
|
||||
},
|
||||
|
||||
onShow() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user