Commit 43920f19 by kaisa

feat:新增cid:34 网页标题

parent 46f1f828
Showing with 22 additions and 0 deletions
......@@ -545,6 +545,7 @@ webAppComm.prototype.changeTitle3 = function (imgUrl, param) {
"type": 1, //1 图片 2文本。
"imgUrl": imgUrl,
"style": {
isUseHeight: 0, //是否使用高度 0不使用 1使用
//图片
"width": param.width, //1
"height": param.height, //1
......@@ -555,6 +556,27 @@ webAppComm.prototype.changeTitle3 = function (imgUrl, param) {
webAppCollaboration(obj2);
}
//修改网页标题
webAppComm.prototype.changeTitle4 = function (imgUrl, param, isUseHeight = 0) {
let obj = {
"cid": 34, //修改网页title 居中显示。
"data": {
"type": 1, //1 图片 2文本。
"imgUrl": imgUrl,
"style": {
//是否使用高度 0不使用 1使用
isUseHeight: isUseHeight,
//图片
"width": param.width, //1
"height": param.height, //1
}
}
}
let obj2 = JSON.stringify(obj);
webAppCollaboration(obj2);
}
// 修改网页标题
webAppComm.prototype.changeTitle4 = function (title) {
let 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