Commit 154b2906 by kaisa

feat:新增cid57

parent 8a0e00db
Showing with 27 additions and 0 deletions
......@@ -744,6 +744,7 @@ webAppComm.prototype.liveShakes = function () {
let obj2 = JSON.stringify(obj);
webAppCollaboration(obj2);
}
// 48:弹出用户行为规范弹窗
webAppComm.prototype.userBehaviorSpecification = function (type) {
let obj = {
......@@ -853,6 +854,32 @@ webAppComm.prototype.openChatApp = function (appType,officialId) {
webAppCollaboration(obj2);
}
// 56: 返回原生上一层(flutter使用)
webAppComm.prototype.backOriginApp = function () {
let obj = {
"cid": 56,
"data": {
"msg": '返回原生上一层'
}
}
let obj2 = JSON.stringify(obj);
webAppCollaboration(obj2);
}
// 57: 告知客户端需要打开的是网页还是flutter页面(flutter使用)
webAppComm.prototype.openWebOrFlutterPage = function (pageType) {
let obj = {
"cid": 57,
"data": {
"msg": '告知客户端需要打开的是网页还是flutter页面',
"pageType": pageType
}
}
let obj2 = JSON.stringify(obj);
webAppCollaboration(obj2);
}
//接收客戶端的消息
webAppComm.prototype.reMsgFromApp = function (callback) {
callback && callback();
......
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