Commit 86fa27dc by qiuren

feat: 客户端新方法

parent 5968e863
Showing with 13 additions and 0 deletions
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
// 47: 直播奖励小窗抖动 // 47: 直播奖励小窗抖动
// 48: 弹出用户行为规范弹窗 // 48: 弹出用户行为规范弹窗
// 49: base64格式图片保存到相册 // 49: base64格式图片保存到相册
// 50: 网页在直播间唤起输入框并且粘贴文本到输入框
function webAppComm() { function webAppComm() {
this.data = null; this.data = null;
...@@ -717,6 +718,18 @@ webAppComm.prototype.saveImgToAlbum = function (imgUrl) { ...@@ -717,6 +718,18 @@ webAppComm.prototype.saveImgToAlbum = function (imgUrl) {
webAppCollaboration(obj2); webAppCollaboration(obj2);
} }
// 50: 网页在直播间唤起输入框并且粘贴文本到输入框
webAppComm.prototype.evokeIptPasteText = function (text) {
let obj = {
"cid": 50,
"data": {
'msg': text //文本内容
}
}
let obj2 = JSON.stringify(obj);
webAppCollaboration(obj2);
}
//接收客戶端的消息 //接收客戶端的消息
webAppComm.prototype.reMsgFromApp = function (callback) { webAppComm.prototype.reMsgFromApp = function (callback) {
callback && 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