hookehuyr

fix

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