Commit 0478109e authored by youjie's avatar youjie

no message

parent 25263139
...@@ -17,13 +17,13 @@ ...@@ -17,13 +17,13 @@
:longitude="center.longitude" :longitude="center.longitude"
:latitude="center.latitude" :latitude="center.latitude"
:include-points="includePoints" :include-points="includePoints.points"
--> -->
<map id="map" style="width: 100%; height: 100%;" <map id="map" style="width: 100%; height: 100%;"
:longitude="center.longitude" :longitude="center.longitude"
:latitude="center.latitude" :latitude="center.latitude"
:markers="markers" :markers="markers"
:include-points="includePoints" :scale="scale"
@callouttap="handleCalloutClick" @callouttap="handleCalloutClick"
> >
</map> </map>
...@@ -96,12 +96,14 @@ ...@@ -96,12 +96,14 @@
center: { longitude: 116.397428, latitude: 39.90923 }, center: { longitude: 116.397428, latitude: 39.90923 },
markers: [], markers: [],
markersObj:{ markersObj:{
id: 1, id: null,
latitude: 39.909, latitude: 39.909,
longitude: 116.39742, longitude: 116.39742,
iconPath: '', iconPath: '',
title: '', title: '',
alpha: 0, alpha: 0,
width: 30,
height: 30,
callout:{ callout:{
content:'¥ 99999起', content:'¥ 99999起',
bgColor: '#FF3166', bgColor: '#FF3166',
...@@ -116,6 +118,8 @@ ...@@ -116,6 +118,8 @@
padding: 5, padding: 5,
display: 'ALWAYS', display: 'ALWAYS',
}, },
joinCluster: true,
clusterId: 10,
}, },
bubble:[ bubble:[
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638761641584224459.png', 'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638761641584224459.png',
...@@ -158,10 +162,9 @@ ...@@ -158,10 +162,9 @@
padding: [20, 50, 20, 50], padding: [20, 50, 20, 50],
MapType: 0, MapType: 0,
includePoints: { includePoints: {
padding: [0, 0, 0, 0],
points: [], points: [],
}, },
points: [], scale: 13,
}; };
}, },
components: { components: {
...@@ -195,7 +198,6 @@ ...@@ -195,7 +198,6 @@
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: "酒店", title: "酒店",
}); });
}, },
methods: { methods: {
getItem(parameters,obj) { getItem(parameters,obj) {
...@@ -305,7 +307,6 @@ ...@@ -305,7 +307,6 @@
this.HotelList = []; this.HotelList = [];
this.markers = [] this.markers = []
this.includePoints.points = [] this.includePoints.points = []
this.points = []
} }
this.apipost( "dmc_post_B2BAndB2CGetDidaHotelPage", this.searchObj, this.apipost( "dmc_post_B2BAndB2CGetDidaHotelPage", this.searchObj,
(res) => { (res) => {
...@@ -344,10 +345,6 @@ ...@@ -344,10 +345,6 @@
latitude: pageData[i].latitude, latitude: pageData[i].latitude,
longitude: pageData[i].longitude, longitude: pageData[i].longitude,
}) })
this.points.push({
latitude: pageData[i].latitude,
longitude: pageData[i].longitude,
})
let obj = JSON.parse(JSON.stringify(this.markersObj)) let obj = JSON.parse(JSON.stringify(this.markersObj))
obj = { obj = {
...obj, ...obj,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment