Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
account
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit aa5dc6fc
authored
Apr 13, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交地址逆解析
1 parent
d2024888
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
html/merchant/map.html
html/merchant/map.html
View file @
aa5dc6f
...
@@ -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
]
}
})
}
}
})
})
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment