Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
Project
Project
Details
Activity
Releases
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
zhengke
jz_Travel
Commits
0478109e
Commit
0478109e
authored
Apr 23, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
25263139
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
mapList.vue
pages/hotel/mapList.vue
+8
-11
No files found.
pages/hotel/mapList.vue
View file @
0478109e
...
...
@@ -17,13 +17,13 @@
:longitude="center.longitude"
:latitude="center.latitude"
:include-points="includePoints"
:include-points="includePoints
.points
"
-->
<map
id=
"map"
style=
"width: 100%; height: 100%;"
:longitude=
"center.longitude"
:latitude=
"center.latitude"
:markers=
"markers"
:
include-points=
"includePoints
"
:
scale=
"scale
"
@
callouttap=
"handleCalloutClick"
>
</map>
...
...
@@ -96,12 +96,14 @@
center
:
{
longitude
:
116.397428
,
latitude
:
39.90923
},
markers
:
[],
markersObj
:{
id
:
1
,
id
:
null
,
latitude
:
39.909
,
longitude
:
116.39742
,
iconPath
:
''
,
title
:
''
,
alpha
:
0
,
width
:
30
,
height
:
30
,
callout
:{
content
:
'¥ 99999起'
,
bgColor
:
'#FF3166'
,
...
...
@@ -116,6 +118,8 @@
padding
:
5
,
display
:
'ALWAYS'
,
},
joinCluster
:
true
,
clusterId
:
10
,
},
bubble
:[
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638761641584224459.png'
,
...
...
@@ -158,10 +162,9 @@
padding
:
[
20
,
50
,
20
,
50
],
MapType
:
0
,
includePoints
:
{
padding
:
[
0
,
0
,
0
,
0
],
points
:
[],
},
points
:
[]
,
scale
:
13
,
};
},
components
:
{
...
...
@@ -195,7 +198,6 @@
uni
.
setNavigationBarTitle
({
title
:
"酒店"
,
});
},
methods
:
{
getItem
(
parameters
,
obj
)
{
...
...
@@ -305,7 +307,6 @@
this
.
HotelList
=
[];
this
.
markers
=
[]
this
.
includePoints
.
points
=
[]
this
.
points
=
[]
}
this
.
apipost
(
"dmc_post_B2BAndB2CGetDidaHotelPage"
,
this
.
searchObj
,
(
res
)
=>
{
...
...
@@ -344,10 +345,6 @@
latitude
:
pageData
[
i
].
latitude
,
longitude
:
pageData
[
i
].
longitude
,
})
this
.
points
.
push
({
latitude
:
pageData
[
i
].
latitude
,
longitude
:
pageData
[
i
].
longitude
,
})
let
obj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
markersObj
))
obj
=
{
...
obj
,
...
...
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