hookehuyr

fix

<!--
* @Date: 2023-01-09 15:22:38
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-05-29 14:18:36
* @FilePath: /map-demo/index.html
* @Description: 文件描述
-->
<!DOCTYPE html>
<html lang='zh'>
<head>
......
......@@ -183,7 +183,7 @@ var spotInfo = [
},
{
name: '天王殿',
position: [120.587468, 31.314435],
position: [120.587639, 31.314538],
icon: 'https://cdn.ipadbiz.cn/xys/map/%E6%AE%BF%E5%A0%82@2x.png',
details: [
{
......
......@@ -30,7 +30,7 @@
<div class="van-hairline--top" style="margin: 1rem 0;">
<div @click="goToUrl()" 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"
<van-icon name="https://cdn.ipadbiz.cn/xys/map/%E8%AF%A6%E6%83%85@2x.png" size="1.5rem" color="#FFF"
style="vertical-align: bottom;" />&nbsp;
<span style="color: #AB8F57; font-size: 1.1rem;">详情</span>
</div>
......
<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-06-07 15:37:23
* @LastEditTime: 2023-06-07 15:58:14
* @FilePath: /map-demo/src/views/index.vue
* @Description: 地图主体页面
-->
......@@ -29,7 +29,7 @@
<div style="text-align: left;">
<div v-for="(item, index) in navList[navName]" :key="index" @click="positionMarker(item)"
style="margin-bottom: 1rem; font-size: 1.15rem;">
<van-icon name="fire-o" color="red" />&nbsp;&nbsp;{{ item.name }}
<van-icon name="fire-o" color="#965f13" />&nbsp;&nbsp;<span style="color: #000;">{{ item.name }}</span>
</div>
</div>
</van-popup>
......@@ -710,8 +710,8 @@ export default {
lockMapBounds() {
// var bounds = this.map.getBounds();
var myBounds = new AMap.Bounds(
[120.585138, 31.312908],
[120.588839, 31.316492]
[120.583246, 31.31645],
[120.589973, 31.311949]
);
this.map.setLimitBounds(myBounds);
......