bigscreen voice 播放地址bug
This commit is contained in:
parent
011790c6fc
commit
6f22533bd2
|
@ -794,7 +794,8 @@ export default {
|
||||||
that.showTime();
|
that.showTime();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
let host = window.location.host;
|
let host = window.location.host;
|
||||||
let jsUrl = host.indexOf('localhost')>-1?'http://222.222.144.147:6013/jsmap/jsmap.js':host+'/jsmap/jsmap.js';
|
// let jsUrl = host.indexOf('localhost')>-1?'http://222.222.144.147:6013/jsmap/jsmap.js':host+'/jsmap/jsmap.js';
|
||||||
|
let jsUrl = '/jsmap/jsmap.js';
|
||||||
that.loadScript('mapId',jsUrl, () => {
|
that.loadScript('mapId',jsUrl, () => {
|
||||||
window.map = new jsmap.JSMap({
|
window.map = new jsmap.JSMap({
|
||||||
mapType: jsmap.JSMapType.MAP_3D,
|
mapType: jsmap.JSMapType.MAP_3D,
|
||||||
|
@ -1168,14 +1169,14 @@ export default {
|
||||||
if(item.id==that.audioList.id){
|
if(item.id==that.audioList.id){
|
||||||
}else{
|
}else{
|
||||||
that.audioList = item;
|
that.audioList = item;
|
||||||
that.audioSrc=item.voice_f;
|
that.audioSrc=item.voice;
|
||||||
if(item.location){
|
if(item.location){
|
||||||
window.map.flyToPosition(new jsmap.JSPoint(item.location.longitude, item.location.latitude), { range: 200,duration: 1000 });
|
window.map.flyToPosition(new jsmap.JSPoint(item.location.longitude, item.location.latitude), { range: 200,duration: 1000 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
that.audioList = item;
|
that.audioList = item;
|
||||||
that.audioSrc = item.voice_f;
|
that.audioSrc = item.voice;
|
||||||
that.music.play();//播放
|
that.music.play();//播放
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2276,7 +2277,6 @@ export default {
|
||||||
},
|
},
|
||||||
speakerPlay(){
|
speakerPlay(){
|
||||||
this.speakerPlayStatus = true;
|
this.speakerPlayStatus = true;
|
||||||
// this.music.src = this.warningData.list[0].voice_f;
|
|
||||||
this.music.play();//播放
|
this.music.play();//播放
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue