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
2024-03-21 17:46:07 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9486540c0e7613324cea93b1228400b0ae46dfb0
9486540c
1 parent
13ef6559
fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
src/views/tools.vue
src/views/tools.vue
View file @
9486540
<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-03-21 17:
37:22
* @LastEditTime: 2024-03-21 17:
45:05
* @FilePath: /map-demo/src/views/tools.vue
* @Description: 公众地图主体页面
-->
...
...
@@ -11,7 +11,8 @@
<div style="position: fixed; display: flex;background-color: #FFF; align-items: center; padding: 0.5rem 1rem;">
<van-field v-model="filter_lng" label="经度" placeholder="请输入经度" />
<van-field v-model="filter_lat" label="纬度" placeholder="请输入纬度" />
<van-button @click="handleQuery" type="primary" block size="small" style="width: 10rem;">查询</van-button>
<van-button @click="queryLngLat" type="primary" block size="small" style="width: 10rem;">坐标查询</van-button>
<van-button @click="handleQuery" type="primary" block size="small" style="width: 10rem; margin-left: 1rem;">快速定位</van-button>
</div>
<!-- <div class="nav-bar-wrapper">
<div class="hideScrollBar nav-bar-content">
...
...
@@ -1171,6 +1172,9 @@ export default {
handleQuery () {
this.map.setZoomAndCenter(this.zoom, [this.filter_lng, this.filter_lat]);
},
queryLngLat () {
window.open('https://lbs.amap.com/tools/picker')
}
}
}
</script>
...
...
Please
register
or
login
to post a comment