|
@@ -129,56 +129,28 @@ const UI = {
|
|
|
const parentIndex = $('.foot_tab_item_active').attr('data-index');
|
|
|
const index = $(e.currentTarget).attr('data-index');
|
|
|
const data = UI.sceneData[parentIndex].sceneThemeList[index];
|
|
|
- that.webSocket.send(JSON.stringify({
|
|
|
- code: that.DEVICE_CODE_GROUP[5],
|
|
|
- direct: 'openUrl',
|
|
|
- content: {
|
|
|
- url: data.systemInfo.login_address,
|
|
|
- account: data.systemInfo.login_account,
|
|
|
- password: data.systemInfo.password,
|
|
|
- type: data.systemInfo.login_mode == 10 ? 1 : 0,
|
|
|
- path: UI.DPZHD_PATH + 'browser/login/zhzxzhglpt'
|
|
|
+ // that.webSocket.send(JSON.stringify({
|
|
|
+ // code: that.DEVICE_CODE_GROUP[5],
|
|
|
+ // direct: 'openUrl',
|
|
|
+ // content: {
|
|
|
+ // url: data.systemInfo.login_address,
|
|
|
+ // account: data.systemInfo.login_account,
|
|
|
+ // password: data.systemInfo.password,
|
|
|
+ // type: data.systemInfo.login_mode == 10 ? 1 : 0,
|
|
|
+ // path: UI.DPZHD_PATH + 'browser/login/zhzxzhglpt'
|
|
|
+ // }
|
|
|
+ // }));
|
|
|
+ util.get({
|
|
|
+ url: DPZHD_PATH + 'browser/jjxdlt/switch',
|
|
|
+ data: {
|
|
|
+ id: data.systemInfo.system_id
|
|
|
+ },
|
|
|
+ success: function(res) {
|
|
|
+ console.log(res)
|
|
|
}
|
|
|
- }));
|
|
|
+ });
|
|
|
}else{
|
|
|
- // 获取当前画面的可放置区域
|
|
|
- var curFrameWidth = $("iframe[id=mainIframe]")[0].clientWidth
|
|
|
- var curFrameHeight = $("iframe[id=mainIframe]")[0].clientHeight + $(".header")[0].clientHeight + $(".cur_title")[0].clientHeight
|
|
|
- var minX = 0
|
|
|
- var maxX = curFrameWidth
|
|
|
- var minY = 0
|
|
|
- var maxY = curFrameHeight
|
|
|
-
|
|
|
- if(minX < swX && minY < swY && maxX > swX && maxY > swY){
|
|
|
- const parentIndex = $('.foot_tab_item_active').attr('data-index');
|
|
|
- const index = $(e.currentTarget).attr('data-index');
|
|
|
- const data = UI.sceneData[parentIndex].sceneThemeList[index];
|
|
|
- // that.webSocket.send(JSON.stringify({
|
|
|
- // code: that.DEVICE_CODE_GROUP[5],
|
|
|
- // direct: 'openUrl',
|
|
|
- // content: {
|
|
|
- // url: data.systemInfo.login_address,
|
|
|
- // account: data.systemInfo.login_account,
|
|
|
- // password: data.systemInfo.password,
|
|
|
- // type: data.systemInfo.login_mode == 10 ? 1 : 0,
|
|
|
- // path: UI.DPZHD_PATH + 'browser/login/zhzxzhglpt'
|
|
|
- // }
|
|
|
- // }));
|
|
|
- util.get({
|
|
|
- url: DPZHD_PATH + 'browser/jjxdlt/switch',
|
|
|
- data: {
|
|
|
- id: data.systemInfo.system_id
|
|
|
- },
|
|
|
- success: function(res) {
|
|
|
- console.log(res)
|
|
|
- }
|
|
|
- });
|
|
|
- }else{
|
|
|
- console.log("未拖动到当前页面,无法替换当前页面")
|
|
|
- }
|
|
|
- //启用轮播图
|
|
|
- that.swiperObj.enable()
|
|
|
- $(".cont").css({"display":"none"})
|
|
|
+ console.log("未拖动到当前页面,无法替换当前页面")
|
|
|
}
|
|
|
//启用轮播图
|
|
|
// that.swiperObj.enable()
|