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 b3925a89
authored
Mar 29, 2019
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/glsx-web/glsx-oss-merchant-data
2 parents
95533fbf
4a9ad72e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
src/views/customer/businessDetails/index.vue
src/views/customer/businessDetails/index.vue
View file @
b3925a8
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
v-if=
"i.isMap"
v-if=
"i.isMap"
class=
'amap-page-container'
class=
'amap-page-container'
>
>
<span
v-show=
"hasLocation"
class=
"error mapTips"
>
{{
i
.
value
}}
</span>
<el-amap
<el-amap
vid=
'amapDemo'
vid=
'amapDemo'
:center=
'center'
:center=
'center'
...
@@ -130,6 +131,7 @@ export default {
...
@@ -130,6 +131,7 @@ export default {
name
:
'BusinessDetails'
,
name
:
'BusinessDetails'
,
data
()
{
data
()
{
return
{
return
{
hasLocation
:
false
,
tabPosition
:
'left'
,
tabPosition
:
'left'
,
merchantId
:
''
,
merchantId
:
''
,
// loading标记
// loading标记
...
@@ -184,7 +186,7 @@ export default {
...
@@ -184,7 +186,7 @@ export default {
isImg
:
true
isImg
:
true
},
{
},
{
label
:
'POI位置点'
,
label
:
'POI位置点'
,
value
:
''
,
value
:
'
无位置信息
'
,
isMap
:
true
isMap
:
true
}
}
],
],
...
@@ -296,6 +298,7 @@ export default {
...
@@ -296,6 +298,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
hasLocation
=
false
this
.
$root
.
eventBus
.
$on
(
'params'
,
(
params
)
=>
{
this
.
$root
.
eventBus
.
$on
(
'params'
,
(
params
)
=>
{
this
.
activeName
=
'first'
this
.
activeName
=
'first'
this
.
merchantId
=
params
.
merchantId
this
.
merchantId
=
params
.
merchantId
...
@@ -352,14 +355,18 @@ export default {
...
@@ -352,14 +355,18 @@ export default {
assignBasicInfo
()
{
assignBasicInfo
()
{
for
(
var
i
in
this
.
List
)
{
for
(
var
i
in
this
.
List
)
{
if
(
this
.
List
[
i
].
isMap
)
{
if
(
this
.
List
[
i
].
isMap
)
{
if
(
this
.
merchantInfo
.
lng
&&
this
.
merchantInfo
.
lat
)
{
this
.
center
=
[
+
this
.
merchantInfo
.
lng
,
+
this
.
merchantInfo
.
lat
]
this
.
center
=
[
+
this
.
merchantInfo
.
lng
,
+
this
.
merchantInfo
.
lat
]
const
o
=
amapManager
.
getMap
()
const
o
=
amapManager
.
getMap
()
const
marker
=
new
AMap
.
Marker
({
const
marker
=
new
AMap
.
Marker
({
position
:
this
.
center
position
:
this
.
center
})
})
marker
.
setMap
(
o
)
marker
.
setMap
(
o
)
}
else
{
this
.
hasLocation
=
true
}
}
else
if
(
this
.
List
[
i
].
isImg
)
{
}
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
{
}
else
{
this
.
List
[
i
].
value
=
this
.
merchantInfo
[
this
.
List
[
i
].
name
]
this
.
List
[
i
].
value
=
this
.
merchantInfo
[
this
.
List
[
i
].
name
]
}
}
...
@@ -419,6 +426,12 @@ export default {
...
@@ -419,6 +426,12 @@ export default {
.amap-page-container
{
.amap-page-container
{
width
:
100%
;
width
:
100%
;
height
:
300px
;
height
:
300px
;
position
:
relative
;
}
.amap-page-container
.mapTips
{
position
:
absolute
;
top
:
-28px
;
left
:
85px
;
}
}
.amap-demo
{
.amap-demo
{
height
:
300px
;
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