-
-
群策巷社区
+
+ {{ item.girdName }}
@@ -71,16 +71,44 @@
data () {
return {
isShowStreet: false,
- isShowVillage: false
+ streetInfo: {},
+ isShowVillage: false,
+ topGrid: [],
+ secondaryGrid: [],
+ tertiaryGrid: []
}
},
onLoad () {
-
+ this.getInfo()
},
methods: {
+ getStatistics (girdId) {
+ this.$loading()
+ this.$http.post(`/api/appgirdinfo/girdInfoCountById?girdId=${girdId}`).then(res => {
+ if (res.code === 0) {
+ this.isShowStreet = true
+ this.streetInfo = res.data
+ }
+ })
+ },
+ getInfo () {
+ this.$http.post(`/api/appgirdinfo/listAllByTop`).then(res => {
+ if (res.code === 0) {
+ this.topGrid = res.data
+
+ if (res.data.girdList.length) {
+ this.secondaryGrid = res.data.girdList
+
+ res.data.girdList.forEach(e => {
+ this.tertiaryGrid.push(...e.girdList)
+ })
+ }
+ }
+ })
+ }
}
}
diff --git a/src/project/xicheng/AppMerchantMap/AppMerchantMap.vue b/src/project/xicheng/AppMerchantMap/AppMerchantMap.vue
index b1097473..66603e89 100644
--- a/src/project/xicheng/AppMerchantMap/AppMerchantMap.vue
+++ b/src/project/xicheng/AppMerchantMap/AppMerchantMap.vue
@@ -71,9 +71,6 @@
let {lib: TMap, map} = this
if (map) {
if (this.markers.length) {
- console.log(this.MarkerCluster)
- // this.MarkerCluster.destroy()
- // this.MarkerCluster = null
this.markers.forEach(v => {
v.setMap(null)
})
@@ -134,6 +131,7 @@
enableDefaultStyle: false, // 关闭默认样式
geometries: points.map(e => ({
position: new TMap.LatLng(e.lat, e.lng),
+ id: e.id,
content: `${e.name}`,
properties: {...e}
})) || [],
@@ -164,11 +162,12 @@
cls.push(clusterBubble)
} else {
//点标记样式
- let {content} = item.geometries?.[0] || {},
+ let {content, id} = item.geometries?.[0] || {},
overlay = new ClusterBubble({map, position: item.center, content})
overlay.on('click', () => {
- this.buildPopup = true
- this.building = item.geometries?.[0]?.properties || {}
+ uni.navigateTo({
+ url: `../AppMerchantManage/detail?id=${id}`
+ })
})
this.markers.push(overlay)
}