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 @@
+
+
+ 选择小区
+
+
+ 市/区
+ {{areaName}}
+
+
+
+
+ 小区名称
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+