Showing
3 changed files
with
47 additions
and
2 deletions
| ... | @@ -23,6 +23,7 @@ declare module '@vue/runtime-core' { | ... | @@ -23,6 +23,7 @@ declare module '@vue/runtime-core' { |
| 23 | VanField: typeof import('vant/es')['Field'] | 23 | VanField: typeof import('vant/es')['Field'] |
| 24 | VanIcon: typeof import('vant/es')['Icon'] | 24 | VanIcon: typeof import('vant/es')['Icon'] |
| 25 | VanImage: typeof import('vant/es')['Image'] | 25 | VanImage: typeof import('vant/es')['Image'] |
| 26 | + VanOverlay: typeof import('vant/es')['Overlay'] | ||
| 26 | VanPopover: typeof import('vant/es')['Popover'] | 27 | VanPopover: typeof import('vant/es')['Popover'] |
| 27 | VanPopup: typeof import('vant/es')['Popup'] | 28 | VanPopup: typeof import('vant/es')['Popup'] |
| 28 | VanRow: typeof import('vant/es')['Row'] | 29 | VanRow: typeof import('vant/es')['Row'] | ... | ... |
2.23 KB
| 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: 2024-01-08 12:56:40 | 4 | + * @LastEditTime: 2024-01-08 15:56:00 |
| 5 | * @FilePath: /map-demo/src/views/activity.vue | 5 | * @FilePath: /map-demo/src/views/activity.vue |
| 6 | * @Description: 内部地图主体页面 | 6 | * @Description: 内部地图主体页面 |
| 7 | --> | 7 | --> |
| ... | @@ -50,7 +50,7 @@ | ... | @@ -50,7 +50,7 @@ |
| 50 | <van-popover v-model:show="showPopover" @select="onSelect" :actions="actions" placement="right-end"> | 50 | <van-popover v-model:show="showPopover" @select="onSelect" :actions="actions" placement="right-end"> |
| 51 | <template #reference> | 51 | <template #reference> |
| 52 | <div class="item"> | 52 | <div class="item"> |
| 53 | - <van-icon name="https://cdn.ipadbiz.cn/xys/map/%E7%BA%BF%E8%B7%AF01.png" size="1.25rem" | 53 | + <van-icon name="https://cdn.ipadbiz.cn/xys/map/C5C4D820-25A0-4740-892A-6C4FFB24BF34.png" size="1.25rem" |
| 54 | style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);" /> | 54 | style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);" /> |
| 55 | </div> | 55 | </div> |
| 56 | </template> | 56 | </template> |
| ... | @@ -133,6 +133,20 @@ | ... | @@ -133,6 +133,20 @@ |
| 133 | <van-popup v-model:show="show_floor_popup" position="bottom" :overlay="true" :style="{ height: '100%', background: '#F7F8FA' }"> | 133 | <van-popup v-model:show="show_floor_popup" position="bottom" :overlay="true" :style="{ height: '100%', background: '#F7F8FA' }"> |
| 134 | <Floor @close="onClose"></Floor> | 134 | <Floor @close="onClose"></Floor> |
| 135 | </van-popup> | 135 | </van-popup> |
| 136 | + | ||
| 137 | + <van-overlay :show="notice_show" @click="onClickNotice" z-index="9999"> | ||
| 138 | + <div class="notice-wrapper"> | ||
| 139 | + <div style="position: absolute; bottom: 5.5rem; left: 10px;"> | ||
| 140 | + <div style="position: relative; text-align: center; font-size: 0.85rem; width: 2rem; height: 2rem; background-color: white; margin-bottom: 1rem; border-radius: 50%; padding: 2.5px; line-height: 2rem;"> | ||
| 141 | + <van-icon name="https://cdn.ipadbiz.cn/xys/map/C5C4D820-25A0-4740-892A-6C4FFB24BF34.png" size="1.25rem" | ||
| 142 | + style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);" /> | ||
| 143 | + </div> | ||
| 144 | + </div> | ||
| 145 | + <div class="notice-block"> | ||
| 146 | + 点击显示活动路径 | ||
| 147 | + </div> | ||
| 148 | + </div> | ||
| 149 | + </van-overlay> | ||
| 136 | </div> | 150 | </div> |
| 137 | </template> | 151 | </template> |
| 138 | 152 | ||
| ... | @@ -298,6 +312,7 @@ export default { | ... | @@ -298,6 +312,7 @@ export default { |
| 298 | current_activity_route: [], | 312 | current_activity_route: [], |
| 299 | route_activity_marker: [], | 313 | route_activity_marker: [], |
| 300 | show_activity_route: false, | 314 | show_activity_route: false, |
| 315 | + notice_show: false, | ||
| 301 | } | 316 | } |
| 302 | }, | 317 | }, |
| 303 | async mounted() { | 318 | async mounted() { |
| ... | @@ -326,6 +341,12 @@ export default { | ... | @@ -326,6 +341,12 @@ export default { |
| 326 | }); | 341 | }); |
| 327 | // 设置贴片地图 | 342 | // 设置贴片地图 |
| 328 | this.setTitleLayer(); | 343 | this.setTitleLayer(); |
| 344 | + // 导航提醒 | ||
| 345 | + if (localStorage.getItem('first_in') !== '1') { | ||
| 346 | + this.notice_show = true; | ||
| 347 | + } else { | ||
| 348 | + this.notice_show = false; | ||
| 349 | + } | ||
| 329 | }, | 350 | }, |
| 330 | watch: { | 351 | watch: { |
| 331 | // show_popup(val) { | 352 | // show_popup(val) { |
| ... | @@ -1514,7 +1535,11 @@ export default { | ... | @@ -1514,7 +1535,11 @@ export default { |
| 1514 | this.map.remove([...this.current_activity_route]); // 删除地图折线 | 1535 | this.map.remove([...this.current_activity_route]); // 删除地图折线 |
| 1515 | this.map.remove(this.route_activity_marker); // 删除起始点标记 | 1536 | this.map.remove(this.route_activity_marker); // 删除起始点标记 |
| 1516 | }, | 1537 | }, |
| 1538 | + onClickNotice () { | ||
| 1539 | + this.notice_show = false; | ||
| 1540 | + localStorage.setItem('first_in', '1'); | ||
| 1517 | } | 1541 | } |
| 1542 | + }, | ||
| 1518 | } | 1543 | } |
| 1519 | </script> | 1544 | </script> |
| 1520 | 1545 | ||
| ... | @@ -1730,4 +1755,23 @@ export default { | ... | @@ -1730,4 +1755,23 @@ export default { |
| 1730 | transform: scaleY(.5); | 1755 | transform: scaleY(.5); |
| 1731 | } | 1756 | } |
| 1732 | 1757 | ||
| 1758 | +.notice-wrapper { | ||
| 1759 | + position: relative; | ||
| 1760 | + // display: flex; | ||
| 1761 | + // align-items: center; | ||
| 1762 | + // justify-content: center; | ||
| 1763 | + height: 100%; | ||
| 1764 | +} | ||
| 1765 | + | ||
| 1766 | +.notice-block { | ||
| 1767 | + background-color: #fff; | ||
| 1768 | + position: absolute; | ||
| 1769 | + bottom: 6.5rem; | ||
| 1770 | + left: 55px; | ||
| 1771 | + color: #965f13; | ||
| 1772 | + padding: 0.3rem 0.5rem; | ||
| 1773 | + border-radius: 5px; | ||
| 1774 | + font-size: 0.9rem; | ||
| 1775 | +} | ||
| 1776 | + | ||
| 1733 | </style> | 1777 | </style> | ... | ... |
-
Please register or login to post a comment