Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-merchant-data
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 2b061c86
authored
Mar 29, 2019
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改位置提示
1 parent
eb55d8ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
8 deletions
src/views/customer/businessDetails/index.vue
src/views/customer/businessDetails/index.vue
View file @
2b061c8
...
...
@@ -30,6 +30,7 @@
v-if=
"i.isMap"
class=
'amap-page-container'
>
<span
v-show=
"hasLocation"
class=
"error mapTips"
>
{{
i
.
value
}}
</span>
<el-amap
vid=
'amapDemo'
:center=
'center'
...
...
@@ -130,6 +131,7 @@ export default {
name
:
'BusinessDetails'
,
data
()
{
return
{
hasLocation
:
false
,
tabPosition
:
'left'
,
merchantId
:
''
,
// loading标记
...
...
@@ -184,7 +186,7 @@ export default {
isImg
:
true
},
{
label
:
'POI位置点'
,
value
:
''
,
value
:
'
无位置信息
'
,
isMap
:
true
}
],
...
...
@@ -303,6 +305,7 @@ export default {
}
},
mounted
()
{
this
.
hasLocation
=
false
this
.
$root
.
eventBus
.
$on
(
'params'
,
(
params
)
=>
{
if
(
params
.
merchantId
!==
this
.
merchantId
)
{
this
.
activeName
=
'first'
...
...
@@ -355,14 +358,18 @@ export default {
assignBasicInfo
()
{
for
(
var
i
in
this
.
List
)
{
if
(
this
.
List
[
i
].
isMap
)
{
this
.
center
=
[
+
this
.
merchantInfo
.
lng
,
+
this
.
merchantInfo
.
lat
]
const
o
=
amapManager
.
getMap
()
const
marker
=
new
AMap
.
Marker
({
position
:
this
.
center
})
marker
.
setMap
(
o
)
if
(
this
.
merchantInfo
.
lng
&&
this
.
merchantInfo
.
lat
)
{
this
.
center
=
[
+
this
.
merchantInfo
.
lng
,
+
this
.
merchantInfo
.
lat
]
const
o
=
amapManager
.
getMap
()
const
marker
=
new
AMap
.
Marker
({
position
:
this
.
center
})
marker
.
setMap
(
o
)
}
else
{
this
.
hasLocation
=
true
}
}
else
if
(
this
.
List
[
i
].
isImg
)
{
this
.
List
[
i
].
value
=
'http://www.pptbz.com/pptpic/UploadFiles_6909/201203/2012031220134655.jpg'
this
.
List
[
i
].
value
=
this
.
merchantInfo
.
merchantPortrait
}
else
{
this
.
List
[
i
].
value
=
this
.
merchantInfo
[
this
.
List
[
i
].
name
]
}
...
...
@@ -422,6 +429,12 @@ export default {
.amap-page-container
{
width
:
100%
;
height
:
300px
;
position
:
relative
;
}
.amap-page-container
.mapTips
{
position
:
absolute
;
top
:
-28px
;
left
:
85px
;
}
.amap-demo
{
height
:
300px
;
...
...
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