Commit 301364d8 by agan

xg

parent ba45a60f
Showing with 3 additions and 2 deletions
...@@ -575,14 +575,15 @@ webAppComm.prototype.toVibrate = function (duration) { ...@@ -575,14 +575,15 @@ webAppComm.prototype.toVibrate = function (duration) {
} }
//43: 修改webview宽高 //43: 修改webview宽高
webAppComm.prototype.setRatio = function (type, wr, hr, position) { webAppComm.prototype.setRatio = function (type, wr, hr, position, unit) {
let obj = { let obj = {
"cid": 43, "cid": 43,
"data": { "data": {
"type": type, //1活动框架 2游戏框架。 "type": type, //1活动框架 2游戏框架。
"width": wr, // #单位为vw 默认值为-1 未传或传-1时,则不修改宽度 "width": wr, // #单位为vw 默认值为-1 未传或传-1时,则不修改宽度
"height": hr, //单位为vw 默认值为-1 未传或传-1时,则不修改高度 "height": hr, //单位为vw 默认值为-1 未传或传-1时,则不修改高度
"position": position // 1右贴边 2左贴边 默认右贴边。 "position": position, // 1右贴边 2左贴边 默认右贴边。
"unit": unit, //单位 默认1 vw 2 pt
} }
} }
let obj2 = JSON.stringify(obj); let obj2 = JSON.stringify(obj);
......
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