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
2023-06-30 16:23:20 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b32505c738cb5e820de37435850f117bb9906b74
b32505c7
1 parent
0ea263c0
fix 细节调整
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
src/common/map_data.js
src/components/InfoWindow.vue
src/common/map_data.js
View file @
b32505c
...
...
@@ -52,7 +52,7 @@ var spotInfo = [
window_type
:
'normal'
,
path
:
[
[
120.587829
,
31.313185
],
[
120.587681
,
31.313343
]
[
120.587681
,
31.313343
],
],
},
{
...
...
@@ -118,7 +118,7 @@ var spotInfo = [
name
:
'弥勒菩萨'
,
note
:
'走过钟鼓楼,映入眼帘的是黄墙黛瓦、气势恢宏的天王殿。它坐北朝南,为重檐歇山建筑,顶势平坦,飞檐翘角,显得庄重肃穆,拱形山檐下高悬由赵朴老题写的“天王殿”匾额。'
,
url
:
'https://mp.weixin.qq.com/s/LJh_8B7JQtTxz8Chq1EJSQ'
,
audio
:
'https://
file.365daoyou.cn/mimi-001_1505799708494-k3xkyzv8
'
,
audio
:
'https://
cdn.ipadbiz.cn/xys/audio/%E5%A4%A7%E9%9B%84%E5%AE%9D%E6%AE%BF.mp3
'
,
},
{
name
:
'韦陀菩萨'
,
...
...
src/components/InfoWindow.vue
View file @
b32505c
...
...
@@ -98,19 +98,20 @@ export default {
this.changeAudio(this.audio);
this.changeAudioStatus('pause');
// 加载录音
this.audio.src = this.info?.details[this.isActive]['audio'];
let play_status = this.audio.play() // 播放
if (play_status) {
play_status.then(() => {
// 音频的播放需要耗时
this.is_play = false;
this.audio.pause();
this.play_time = this.getAudioTime(this.audio.duration)
}).catch((e) => {
// 失败
console.log('Operation is too fast, audio play fails')
})
}
this.play_time = '01:49'
// this.audio.src = this.info?.details[this.isActive]['audio'];
// let play_status = this.audio.play() // 播放
// if (play_status) {
// play_status.then(() => {
// // 音频的播放需要耗时
// this.is_play = false;
// this.audio.pause();
// this.play_time = this.getAudioTime(this.audio.duration)
// }).catch((e) => {
// // 失败
// console.log('Operation is too fast, audio play fails')
// })
// }
}
}
},
...
...
Please
register
or
login
to post a comment