地图资源按需加载
This commit is contained in:
parent
ccb7b2adaa
commit
6ae0aca099
|
@ -206,20 +206,6 @@ export default {
|
||||||
that.channelCode = row.channelCode;
|
that.channelCode = row.channelCode;
|
||||||
that.channelName = row.channelName;
|
that.channelName = row.channelName;
|
||||||
that.limitedVisible = true;
|
that.limitedVisible = true;
|
||||||
|
|
||||||
// that.$API.am.video.item.req(this.params).then((res) => {
|
|
||||||
// this.url = res.url;
|
|
||||||
// if (flvjs.isSupported()) {
|
|
||||||
// let videoElement = document.getElementById("videoElement");
|
|
||||||
// that.flvPlayer = flvjs.createPlayer({
|
|
||||||
// type: "flv",
|
|
||||||
// url: res.url,
|
|
||||||
// });
|
|
||||||
// that.flvPlayer.attachMediaElement(videoElement);
|
|
||||||
// that.flvPlayer.load();
|
|
||||||
// that.flvPlayer.play();
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
},
|
},
|
||||||
viewClose() {
|
viewClose() {
|
||||||
this.limitedVisible = false;
|
this.limitedVisible = false;
|
||||||
|
|
|
@ -796,7 +796,6 @@ export default {
|
||||||
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';
|
||||||
that.loadScript('mapId',jsUrl, () => {
|
that.loadScript('mapId',jsUrl, () => {
|
||||||
debugger;
|
|
||||||
window.map = new jsmap.JSMap({
|
window.map = new jsmap.JSMap({
|
||||||
mapType: jsmap.JSMapType.MAP_3D,
|
mapType: jsmap.JSMapType.MAP_3D,
|
||||||
container: 'mapContainer',
|
container: 'mapContainer',
|
||||||
|
|
Loading…
Reference in New Issue