Commit ac2e7839 by qiuren

Merge branch 'master' of http://git.yabolive.net:88/libai/Static

parents 3da2070f 0593f463
Showing with 18 additions and 6 deletions
......@@ -867,15 +867,27 @@ webAppComm.prototype.backOriginApp = function () {
webAppCollaboration(obj2);
}
// 57: 告知客户端需要打开的是网页还是flutter页面(flutter使用)
webAppComm.prototype.openWebOrFlutterPage = function (pageType, popupStyle, extraString) {
// 57:开启/加入游戏房间
webAppComm.prototype.joinGameRoom = function (isOpenGameRoom, roomId) {
let obj = {
"cid": 57,
"data": {
"msg": '告知客户端需要打开的是网页还是flutter页面',
"pageType": pageType,
"popupStyle": popupStyle,
"extraString": extraString
"msg": '开启/加入游戏房间',
"isOpenGameRoom": isOpenGameRoom, //0 开启房间 1 加入房间
"roomId": roomId
}
}
let obj2 = JSON.stringify(obj);
webAppCollaboration(obj2);
}
// 58: 告知客户端是否打开原生侧滑返回手势(flutter使用)
webAppComm.prototype.setNativeSwipeBackEnabled = function (enabled) {
let obj = {
"cid": 58,
"data": {
"msg": '是否打开原生侧滑返回手势',
"enabled": enabled,
}
}
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