From 743532973dcf67b074061ff34a1df905b15d793c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Wed, 13 Aug 2025 11:12:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=AF=BC=E8=88=AA=E5=8C=BA=E7=9A=84=E6=98=BE=E9=9A=90?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/community/myCommunity/index.vue | 1 + packages/community/repairList/index.vue | 156 ++++++++++------------- packages/localLife/detail/index.css | 2 +- pages/index/index.vue | 18 ++- 4 files changed, 77 insertions(+), 100 deletions(-) diff --git a/packages/community/myCommunity/index.vue b/packages/community/myCommunity/index.vue index 25a2ca37..579909fb 100644 --- a/packages/community/myCommunity/index.vue +++ b/packages/community/myCommunity/index.vue @@ -80,6 +80,7 @@ export default { uni.setStorageSync('changeCommData', { id: e.community_id, name: e.name }); uni.setStorageSync('currentCommunityAddr',e.addr); uni.setStorageSync("isShowNav", e.room_owner_list[0].type) + console.log("🚀 ~ choseCommunity ~ e.room_owner_list[0].type:", e.room_owner_list[0].type) NavgateTo("1") }, }, diff --git a/packages/community/repairList/index.vue b/packages/community/repairList/index.vue index 3caf3878..cb1d51e9 100644 --- a/packages/community/repairList/index.vue +++ b/packages/community/repairList/index.vue @@ -1,110 +1,82 @@ diff --git a/packages/localLife/detail/index.css b/packages/localLife/detail/index.css index 34cf28b9..fad1985c 100644 --- a/packages/localLife/detail/index.css +++ b/packages/localLife/detail/index.css @@ -188,7 +188,7 @@ page { } .Msg_con_img image { - width: calc(33.33% - 11rpx); + width: calc(33% - 11rpx); height: 225rpx; flex-shrink: 0; } diff --git a/pages/index/index.vue b/pages/index/index.vue index a2ce07a5..464c05d9 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -249,7 +249,7 @@ export default { }, //2.注册组件 data() { return { - showNav: true, + showNav: false, isShowSearch: false, loading: false, @@ -999,11 +999,13 @@ export default { toggleDropdown() { this.showDropdown = !this.showDropdown; // 当展开下拉菜单时,页面滑动 - if (this.showDropdown) { - uni.pageScrollTo({ - scrollTop: 2500, - duration: 300 - }); + if (this.showDropdown) { + this.$nextTick(() => { + uni.pageScrollTo({ + scrollTop: 2500, + duration: 300 + }); + }) } }, @@ -1019,7 +1021,6 @@ export default { this.localHeight = meun.height; this.showSearch() this.getSearchVal() - this.showNav = uni.getStorageSync("isShowNav") != 1 }, onShow() { @@ -1049,6 +1050,9 @@ export default { } }, onShow() { + this.showNav = uni.getStorageSync("isShowNav") ? + (uni.getStorageSync("isShowNav") == 1 ? false : true) : false + console.log("🚀 ~ onLoad ~ this.showNav:", this.showNav) this.flag = false this.bottomPageNum = 1 console.log('当前页面展示的城市信息', this.currentCity)