From 7dba69fa004ecd5057a33c7bcd53e924eb223a9e Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Thu, 26 Sep 2024 15:30:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=80=89=E6=8B=A9=E5=B0=8F?= =?UTF-8?q?=E5=8C=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/community/communityApi.js | 4 +- pages.json | 14 ++++ pages/mall/mall.vue | 6 +- pages/mall/selectcommunity.vue | 117 +++++++++++++++++++++++++++++++++ pages/mall/viewCommunitys.vue | 105 +++++++++++++++++++++++++++++ 5 files changed, 241 insertions(+), 5 deletions(-) create mode 100644 pages/mall/selectcommunity.vue create mode 100644 pages/mall/viewCommunitys.vue diff --git a/api/community/communityApi.js b/api/community/communityApi.js index 0b659a0..d711993 100644 --- a/api/community/communityApi.js +++ b/api/community/communityApi.js @@ -57,7 +57,7 @@ export function getCommunitys(dataObj) { export function getMallCommunityId() { - let _currentCommunity = uni.getStorageSync(mapping.CURRENT_MALL_COMMUNITY_INFO) + let _currentCommunity = uni.getStorageSync("_selectCommunity") if (_currentCommunity) { return _currentCommunity.communityId; } @@ -65,7 +65,7 @@ export function getMallCommunityId() { } export function getMallCommunityName() { - let _currentCommunity = uni.getStorageSync(mapping.CURRENT_MALL_COMMUNITY_INFO) + let _currentCommunity = uni.getStorageSync("_selectCommunity") if (_currentCommunity) { return _currentCommunity.name; } diff --git a/pages.json b/pages.json index 4e70942..faba5d0 100644 --- a/pages.json +++ b/pages.json @@ -1078,6 +1078,20 @@ { "navigationBarTitleText" : "" } + }, + { + "path" : "pages/mall/selectcommunity", + "style" : + { + "navigationBarTitleText" : "" + } + }, + { + "path" : "pages/mall/viewCommunitys", + "style" : + { + "navigationBarTitleText" : "" + } } ], "tabBar": { diff --git a/pages/mall/mall.vue b/pages/mall/mall.vue index d6691df..8cfeb95 100644 --- a/pages/mall/mall.vue +++ b/pages/mall/mall.vue @@ -164,9 +164,9 @@ }, //切换小区 toSelectArea(e) { - this.vc.navigateToMall({ - url: `/pages/selectcommunity/selectcommunity` - }) + uni.navigateTo({ + url:'/pages/mall/selectcommunity' + }); } } } diff --git a/pages/mall/selectcommunity.vue b/pages/mall/selectcommunity.vue new file mode 100644 index 0000000..feaf68c --- /dev/null +++ b/pages/mall/selectcommunity.vue @@ -0,0 +1,117 @@ + + + + diff --git a/pages/mall/viewCommunitys.vue b/pages/mall/viewCommunitys.vue new file mode 100644 index 0000000..7392e3e --- /dev/null +++ b/pages/mall/viewCommunitys.vue @@ -0,0 +1,105 @@ + + + +