Commit aa5dc6fc by 胡悦

提交地址逆解析

1 parent d2024888
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<script src="/js/load.js"></script> <script src="/js/load.js"></script>
<script type="text/javascript" <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"> src="https://webapi.amap.com/maps?v=1.4.15&key=44cc16e43ad7ed3358df507bd0618181&plugin=AMap.Geocoder&plugin=AMap.PlaceSearch&plugin=AMap.Geolocation">
</script> </script>
<script> <script>
layui.use(['helper'], function () { layui.use(['helper'], function () {
var form = layui.form var form = layui.form
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
} }
return false return false
}) })
map.on('click', setLocation) map.on('click', setLocation)
function init() { function init() {
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
) { ) {
pois = result.poiList.pois pois = result.poiList.pois
// var flag = false // var flag = false
} else {} } else { }
appendList() appendList()
setFitView() setFitView()
} }
...@@ -259,6 +259,11 @@ ...@@ -259,6 +259,11 @@
mapData.merchantAddress = result.regeocode.formattedAddress mapData.merchantAddress = result.regeocode.formattedAddress
modelVal('merchantAddress', mapData.merchantAddress) modelVal('merchantAddress', mapData.merchantAddress)
placeSearch(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!