diff --git a/js/webAppComm.js b/js/webAppComm.js index 196f0a2..a4921a7 100644 --- a/js/webAppComm.js +++ b/js/webAppComm.js @@ -35,6 +35,9 @@ // 37:web页面加载完毕时 // 38: 打开签到提醒 // 39: 告知客户端渠道信息 +// 40: 跳转任务界面 + +// 41: 打开半屏网页 function webAppComm() { this.data = null; @@ -493,7 +496,7 @@ webAppComm.prototype.sendBindInfos = function (cid, uid, lang, type) { } // 40: 跳转任务界面 -webAppComm.prototype.jumpToTask = function (type){ +webAppComm.prototype.jumpToTask = function (type) { let obj = { "cid": 40, "data": { @@ -504,6 +507,22 @@ webAppComm.prototype.jumpToTask = function (type){ webAppCollaboration(obj2); } +// 41: 打开半屏网页 +webAppComm.prototype.openHelfWeb = function (url, width, height) { + let obj = { + "cid": 41, + "data": { + url: url, + width: width, + height: height + } + } + let obj2 = JSON.stringify(obj); + webAppCollaboration(obj2); +} + + + //接收客戶端的消息 webAppComm.prototype.reMsgFromApp = function (callback) { callback && callback();