Showing
1 changed file
with
16 additions
and
3 deletions
| 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:27:35 | 4 | + * @LastEditTime: 2023-06-07 15:37:23 |
| 5 | * @FilePath: /map-demo/src/views/index.vue | 5 | * @FilePath: /map-demo/src/views/index.vue |
| 6 | * @Description: 地图主体页面 | 6 | * @Description: 地图主体页面 |
| 7 | --> | 7 | --> |
| ... | @@ -51,7 +51,7 @@ | ... | @@ -51,7 +51,7 @@ |
| 51 | </div> | 51 | </div> |
| 52 | </div> | 52 | </div> |
| 53 | 53 | ||
| 54 | - <div v-if="!show_walk_route" @click="removeWalkRoute" style="position: fixed; bottom: 8rem; left: 48%; z-index: 999; background: rgba(86, 65, 23, 0.8); color: white; border-radius: 10px; padding: 5px 12px; font-size: 0.8rem;"> | 54 | + <div v-if="!show_walk_route" @click="removeWalkRoute" class="walk-nav-text"> |
| 55 | 关闭步行导航 | 55 | 关闭步行导航 |
| 56 | </div> | 56 | </div> |
| 57 | 57 | ||
| ... | @@ -456,7 +456,7 @@ export default { | ... | @@ -456,7 +456,7 @@ export default { |
| 456 | fillColor: '#CFE7AA' | 456 | fillColor: '#CFE7AA' |
| 457 | }); | 457 | }); |
| 458 | }, | 458 | }, |
| 459 | - isPointInRing () { // 是否在景区范围 | 459 | + isPointInRing() { // 是否在景区范围 |
| 460 | let isPointInRing = AMap.GeometryUtil.isPointInRing([this.current_lng, this.current_lat], [ | 460 | let isPointInRing = AMap.GeometryUtil.isPointInRing([this.current_lng, this.current_lat], [ |
| 461 | [120.585111, 31.316084], [120.585111, 31.316084], [120.589488, 31.313197], [120.585422, 31.313005] | 461 | [120.585111, 31.316084], [120.585111, 31.316084], [120.589488, 31.313197], [120.585422, 31.313005] |
| 462 | ]); | 462 | ]); |
| ... | @@ -1085,4 +1085,17 @@ export default { | ... | @@ -1085,4 +1085,17 @@ export default { |
| 1085 | .van-dialog__confirm:active { | 1085 | .van-dialog__confirm:active { |
| 1086 | color: #AB8F57; | 1086 | color: #AB8F57; |
| 1087 | } | 1087 | } |
| 1088 | + | ||
| 1089 | +.walk-nav-text { | ||
| 1090 | + position: fixed; | ||
| 1091 | + bottom: 6rem; | ||
| 1092 | + left: 50%; | ||
| 1093 | + transform: translate(-50%, -50%); | ||
| 1094 | + z-index: 999; | ||
| 1095 | + background: rgba(86, 65, 23, 0.8); | ||
| 1096 | + color: white; | ||
| 1097 | + border-radius: 10px; | ||
| 1098 | + padding: 5px 12px; | ||
| 1099 | + font-size: 0.8rem; | ||
| 1100 | +} | ||
| 1088 | </style> | 1101 | </style> | ... | ... |
-
Please register or login to post a comment