Commit 837d0f40 by kaisa

feat:更新设置游戏房 火箭升空

parent 677ba776
Showing with 29 additions and 0 deletions
......@@ -1004,6 +1004,28 @@
return params;
}
function setWebViewRatio() {
try {
var obj = {
cid: 43,
reqCode: new Date().getTime(),
data: {
msg: "修改webview宽高",
type: 2,
width: 100,
height: 110,
position: 1,
unit: 1
},
};
var obj2 = JSON.stringify(obj);
appCollaboration(obj2);
} catch (e) {
//TODO handle the exception
}
}
function appCollaboration(msg) {
var sUserAgent = navigator.userAgent.toLowerCase();
var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
......@@ -1036,6 +1058,12 @@
layer.msg('請稍後重試')
}
}
// 页面加载完后修改webview宽高比
window.onload = function () {
setWebViewRatio();
};
</script>
</html>
\ No newline at end of file
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