Commit f8c95492 by kaisa

feat:新增cid 34 采用传入的图片宽高

parent d2dbaa2c
Showing with 19 additions and 0 deletions
......@@ -568,6 +568,25 @@ webAppComm.prototype.changeTitle4 = function (title) {
webAppCollaboration(obj2);
}
// 修改网页标题 使用传入的高度
webAppComm.prototype.changeTitle5 = function (imgUrl, param) {
let obj = {
"cid": 34, //修改网页title 居中显示。
"data": {
"type": 1, //1 图片 2文本。
"imgUrl": imgUrl,
"style": {
//图片
"isUseHeight":1,
"width": param.width,
"height": param.height,
}
}
}
let obj2 = JSON.stringify(obj);
webAppCollaboration(obj2);
}
//刷新网页
webAppComm.prototype.refreshWeb = 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