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-09-12 10:06:06 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
150bb75fe6ea411a0da102b31fa76d3e131cdaf4
150bb75f
1 parent
4e7a76f9
fix 修复细节
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
components.d.ts
src/components/InfoPopup.vue
src/views/index.vue
components.d.ts
View file @
150bb75
...
...
@@ -10,7 +10,6 @@ export {}
declare
module
'@vue/runtime-core'
{
export
interface
GlobalComponents
{
AudioBackground
:
typeof
import
(
'./src/components/audioBackground.vue'
)[
'default'
]
copy
:
typeof
import
(
'./src/components/InfoWindowWarn copy.vue'
)[
'default'
]
Floor
:
typeof
import
(
'./src/components/Floor/index.vue'
)[
'default'
]
InfoPopup
:
typeof
import
(
'./src/components/InfoPopup.vue'
)[
'default'
]
InfoPopupLite
:
typeof
import
(
'./src/components/InfoPopupLite.vue'
)[
'default'
]
...
...
src/components/InfoPopup.vue
View file @
150bb75
...
...
@@ -54,7 +54,7 @@
</div>
</div>
<div v-for="(item, index) in info?.details" :key="index">
<div v-if="isActive === index" :class=" [item.audio ? 'info-text-audio' : 'info-text'
, 'van-multi-ellipsis--l3'
] ">{{ item.note }}</div>
<div v-if="isActive === index" :class=" [item.audio ? 'info-text-audio' : 'info-text'] ">{{ item.note }}</div>
<div v-if="isActive === index && item.audio" class="info-control">
<div v-if="!is_play" @click="play()" class="control-play">
<van-icon name="https://cdn.ipadbiz.cn/xys/map/%E6%92%AD%E6%94%BE%E6%9A%82%E5%81%9C@2x.png" size="3rem"
...
...
src/views/index.vue
View file @
150bb75
<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-09-1
1 18:17:44
* @LastEditTime: 2024-09-1
2 10:05:39
* @FilePath: /map-demo/src/views/index.vue
* @Description: 公众地图主体页面
-->
...
...
@@ -477,6 +477,7 @@ export default {
}
})
textMarker.setMap(this.map); //将文本标记设置到地图上
this.markerSum.push(textMarker);
} else { // 默认方向
// 创建一个 LabelMarker 实例
var labelMarker = new AMap.LabelMarker({
...
...
Please
register
or
login
to post a comment