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
59054319
Commit
59054319
authored
Jun 02, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改地图
parent
24f3e350
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
detail.vue
pages/hotel/detail.vue
+13
-12
No files found.
pages/hotel/detail.vue
View file @
59054319
...
...
@@ -90,7 +90,7 @@
<view>
{{
dataList
.
AddressDes
}}
</view>
</view>
</view>
<view
class=
"loc-right"
>
<view
class=
"loc-right"
@
click=
"goMap(dataList.Address,dataList.Lng,dataList.Lat)"
>
<text
style=
"margin-right: 20rpx;"
>
地图详情
</text>
<u-icon
name=
"arrow"
size=
"20"
/>
</view>
...
...
@@ -336,18 +336,19 @@
);
},
goMap
(
name
,
lon
,
lat
)
{
let
newLon
=
parseFloat
(
lon
)
let
newLat
=
parseFloat
(
lat
)
wx
.
openLocation
({
latitude
:
lat
,
longitude
:
lon
,
scale
:
18
,
name
,
address
:
"武侯区科华中路 2 号"
,
success
:
(
res
)
=>
{
// console.log(res)
},
fail
:
(
err
)
=>
{
// console.log(err)
}
latitude
:
newLat
,
longitude
:
newLon
,
scale
:
18
,
name
,
success
:(
res
)
=>
{
console
.
log
(
res
)
},
fail
:
(
err
)
=>
{
console
.
log
(
err
)
}
})
},
openPicture
()
{
...
...
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