@@ -15,8 +15,8 @@ export function getMarkerInfo(id) {
return get(mapAPI.markerInfoApi + '?id=' + id)
}
-export function getMapMarkers() {
- return get(mapAPI.markers)
+export function getMapMarkers(type) {
+ return get(mapAPI.markers + "?type=" + type)
export function sendClickedLocation(loc) {
@@ -128,7 +128,8 @@ export default {
that.choosedLocation = { province, city, district, addr: street + street_number, lng, lat }
})
- getMapMarkers().then(res => {
+ const type = 2
+ getMapMarkers(type).then(res => {
if (res.code === 0) {
this.markers = res.data
} else {