Commit e60e9143 by agan

xg

parent 32ce81f2
Showing with 16 additions and 4 deletions
...@@ -363,15 +363,27 @@ webAppComm.prototype.openHalfWeb = function (param) { ...@@ -363,15 +363,27 @@ webAppComm.prototype.openHalfWeb = function (param) {
widthR: param.width, //widthR 弹窗宽度vw widthR: param.width, //widthR 弹窗宽度vw
clickBlank: param.clickBlank, //clickBlank 点击区域外是否关闭 0不关闭 1关闭 clickBlank: param.clickBlank, //clickBlank 点击区域外是否关闭 0不关闭 1关闭
url: param.url, //url 需要打开的url (默认拼接uid token roomid等参数) url: param.url, //url 需要打开的url (默认拼接uid token roomid等参数)
top: param.top || '', //top 距离顶部位置 单位vw // top: param.top || '', //top 距离顶部位置 单位vw
left: param.left || '', //left 距离左边位置 // left: param.left || '', //left 距离左边位置
bottom: param.bottom || '', //bottom 距离底部位置 // bottom: param.bottom || '', //bottom 距离底部位置
right: param.right || '', //right 距离右边位置 // right: param.right || '', //right 距离右边位置
isThrough: param.isThrough, //isThrough 是否可穿透 0不可穿透 1可穿透 默认为0 isThrough: param.isThrough, //isThrough 是否可穿透 0不可穿透 1可穿透 默认为0
afterReady: param.afterReady, // afterReady 是否加载完成后再显示。 0否 1是。 默认为0, afterReady: param.afterReady, // afterReady 是否加载完成后再显示。 0否 1是。 默认为0,
needMounted: param.needMounted, //ios专用 0不独立 1独立。 默认是0. needMounted: param.needMounted, //ios专用 0不独立 1独立。 默认是0.
} }
} }
if (param.top || param.top === 0) {
obj.data.top = param.top;
}
if (param.left || param.left === 0) {
obj.data.left = param.left;
}
if (param.bottom || param.bottom === 0) {
obj.data.bottom = param.bottom;
}
if (param.right || param.right === 0) {
obj.data.right = param.right;
}
let obj2 = JSON.stringify(obj); let obj2 = JSON.stringify(obj);
webAppCollaboration(obj2); webAppCollaboration(obj2);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment