hookehuyr

fix 细节调整

......@@ -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: '韦陀菩萨​',
......
......@@ -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')
// })
// }
}
}
},
......