bmh_cesium/public/widgetsTS/qyDetailsView/widget.js
2025-03-10 07:23:50 +08:00

64 lines
1.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* 2017-9-28 16:04:24 | 修改 木遥(微信: http://marsgis.cn/weixin.html */
//模块:
mars3d.widget.bindClass(mars3d.widget.BaseWidget.extend({
options: {
//弹窗
view: {
type: "window",
url: "view.html",
windowOptions: {
width: 250,
height: 300
}
},
},
//初始化[仅执行1次]
create: function () {
},
viewWindow: null,
//每个窗口创建完成后调用
winCreateOK: function (opt, result) {
this.viewWindow = result;
},
//打开激活
activate: function () {
},
//关闭释放
disable: function () {
this.viewWindow = null;
},
getData: function () {
var item = this.config.dataQy;//传入过来的参数
return item;
},
//打开视频监控
showSPJK: function () {
var item = this.config.dataQy;
if (item === null) return;
haoutil.msg('自定义视频弹窗');
//var filename = serverURL + '/video/lukou.mp4';
//var jkWidgetUri = 'widgetsTS/qyVideo/widget.js';
//var roamingJK = mars3d.widget.getClass(jkWidgetUri);
//if (roamingJK && roamingJK.isActivate) {
// roamingJK.shoData(filename);
//}
//else {
// mars3d.widget.activate({
// uri: jkWidgetUri,
// filename: filename
// });
//}
},
}));