Commit aa5dc6fc by 胡悦

提交地址逆解析

1 parent d2024888
......@@ -86,7 +86,7 @@
<script src="/js/load.js"></script>
<script type="text/javascript"
src="https://webapi.amap.com/maps?v=1.4.15&key=44cc16e43ad7ed3358df507bd0618181&plugin=AMap.Geocoder&plugin=AMap.PlaceSearch&plugin=AMap.Geolocation">
</script>
</script>
<script>
layui.use(['helper'], function () {
var form = layui.form
......@@ -126,7 +126,7 @@
}
return false
})
map.on('click', setLocation)
function init() {
......@@ -232,7 +232,7 @@
) {
pois = result.poiList.pois
// var flag = false
} else {}
} else { }
appendList()
setFitView()
}
......@@ -259,6 +259,11 @@
mapData.merchantAddress = result.regeocode.formattedAddress
modelVal('merchantAddress', mapData.merchantAddress)
placeSearch(mapData.merchantAddress)
geocoder.getLocation(mapData.merchantAddress, (status, result) => {
if (status === 'complete' && result.info === 'OK') {
mapData.geocoderAddress = result.geocodes[0]
}
})
}
})
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!