Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
shuchengMiniPro
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cfld-frontend
shuchengMiniPro
Commits
50248eba
Commit
50248eba
authored
Dec 20, 2023
by
shilei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地图打点方案
parent
e2fe0da5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
park-card.vue
src/components/media/park-card.vue
+2
-2
index.vue
src/pages/entryPark/index.vue
+12
-6
No files found.
src/components/media/park-card.vue
View file @
50248eba
...
...
@@ -12,11 +12,11 @@
<div
class=
"f24 flex right-footer"
>
<div
class=
"nowrap"
style=
"width: 200rpx"
>
<span
class=
"c80"
>
产业园级别:
</span>
<span>
{{
parkInfo
.
levelName
||
"--"
}}
</span>
<span>
{{
detail
.
levelName
||
"--"
}}
</span>
</div>
<div
class=
"nowrap"
style=
"margin-left: 10rpx"
>
<span
class=
"c80"
>
占地面积:
</span
>
{{
parkInfo
.
coverArea
?
parkInfo
.
coverArea
+
"亩"
:
"--"
}}
>
{{
detail
.
coverArea
?
detail
.
coverArea
+
"亩"
:
"--"
}}
</div>
</div>
</view>
...
...
src/pages/entryPark/index.vue
View file @
50248eba
...
...
@@ -95,8 +95,8 @@
>
</u-empty>
</view>
<div
v-
else
class=
"content z-100
"
>
<map
id=
"mapId"
@
markertap=
"handleMarkerClick"
@
callouttap=
"handleMarkerClick"
:scale=
'1
0
'
style=
"width: 100%;height: calc(100vh - 246rpx)"
latitude=
"31.464086"
longitude=
"116.944909"
class=
"map"
:markers=
"markers"
>
<div
v-
show=
"mode === 'map'"
class=
"content z-100"
style=
"padding-top: 246rpx;
"
>
<map
id=
"mapId"
@
markertap=
"handleMarkerClick"
@
callouttap=
"handleMarkerClick"
:scale=
'1
1
'
style=
"width: 100%;height: calc(100vh - 246rpx)"
latitude=
"31.464086"
longitude=
"116.944909"
class=
"map"
:markers=
"markers"
>
</map>
<div
v-if=
"activeInfo.id"
:key=
"activeInfo.id"
@
click=
"toDetail(activeInfo)"
style=
"position: fixed;padding: 0 30rpx;bottom: 30rpx;width: 100vw;z-index: 999;box-sizing: border-box;"
>
<park-card-vue
:key=
"activeInfo.id"
:key-words=
"keyWords"
:detail=
"activeInfo"
v-if=
"activeBar == 0"
></park-card-vue>
...
...
@@ -371,16 +371,22 @@ export default {
},
markers
()
{
let
temp
=
[];
this
.
dataList
.
forEach
(
item
=>
{
this
.
dataList
.
forEach
(
(
item
,
index
)
=>
{
temp
.
push
({
id
:
item
.
id
,
latitude
:
item
.
latitude
,
longitude
:
item
.
longitude
,
latitude
:
item
.
latitude
+
index
*
0.00001
*
Math
.
random
(
100
),
longitude
:
item
.
longitude
+
index
*
0.00001
*
Math
.
random
(
100
),
joinCluster
:
this
.
activeBar
!=
2
,
width
:
27
,
height
:
33
,
iconPath
:
'https://cfld-obs-pro01.obs.cn-north-4.myhuaweicloud.com/img/system/single1.png'
,
callout
:
{
content
:
item
.
name
,
padding
:
5
,
display
:
'ALWAYS'
,
textAlign
:
'center'
textAlign
:
'center'
,
color
:
'#ffffff'
,
bgColor
:
'#4374EF'
}
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment