Browse Source

修改新增活动地图选点的问题

feature/syp_points
liuchuang 5 years ago
parent
commit
223fa5e12c
  1. 4
      src/views/modules/heart/map-select.vue

4
src/views/modules/heart/map-select.vue

@ -80,6 +80,7 @@ export default {
this.dataForm.latitude = position.lat this.dataForm.latitude = position.lat
this.dataForm.longitude = position.lng this.dataForm.longitude = position.lng
this.dataForm.city = position.city this.dataForm.city = position.city
this.getAddress(position.lat, position.lng)
this.setMap() this.setMap()
}, },
showErr () { showErr () {
@ -122,6 +123,9 @@ export default {
position: myLatlng, position: myLatlng,
map: map map: map
}) })
qq.maps.event.addListener(marker, 'click', function (event) {
that.addressCheckHandle()
})
markerList.push(marker) markerList.push(marker)
// //
qq.maps.event.addListener(map, 'click', function (event) { qq.maps.event.addListener(map, 'click', function (event) {

Loading…
Cancel
Save