Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
map-demo
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2023-06-07 10:50:48 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
76d5aa90c3c0fbdac6f6c881a5fb8bf1c390a4b3
76d5aa90
1 parent
f614f38c
调整导航功能
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
src/components/InfoWindow.vue
src/views/index.vue
src/components/InfoWindow.vue
View file @
76d5aa9
...
...
@@ -28,13 +28,13 @@
</div>
</div>
<div class="van-hairline--top" style="margin: 1rem 0;">
<div @click="goTo()" style="width: 50%; float: left; text-align: center; margin-top: 1rem;"
<div @click="goTo
Url
()" style="width: 50%; float: left; text-align: center; margin-top: 1rem;"
class="van-hairline--right">
<van-icon name="https://cdn.ipadbiz.cn/xys/map/%E5%89%8D%E5%BE%80@2x.png" size="1.5rem" color="#FFF"
style="vertical-align: bottom;" />
<span style="color: #AB8F57; font-size: 1.1rem;">详情</span>
</div>
<div style="width: 50%; float: left; text-align: center; margin-top: 1rem;">
<div
@click="goToLocation()"
style="width: 50%; float: left; text-align: center; margin-top: 1rem;">
<van-icon name="https://cdn.ipadbiz.cn/xys/map/%E5%89%8D%E5%BE%80@2x.png" size="1.5rem" color="#FFF"
style="vertical-align: bottom;" />
<span style="color: #AB8F57; font-size: 1.1rem;">前往</span>
...
...
@@ -200,7 +200,7 @@ export default {
this.audio.pause();
this.is_play = false;
},
goTo(url) {
goTo
Url
(url) {
location.href = this.info.details[this.isActive].url;
},
handleTitle (index) {
...
...
@@ -226,6 +226,9 @@ export default {
}, 1000);
}, 100);
}
},
goToLocation () {
this.$emit('onLocation', this.info.position)
}
}
}
...
...
src/views/index.vue
View file @
76d5aa9
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment