修改安卓中版本升级不存在描述的问题

This commit is contained in:
lemon橪
2021-06-15 14:32:01 +08:00
parent eb070953c0
commit cd909ede83
3 changed files with 47 additions and 45 deletions

View File

@@ -303,7 +303,8 @@ function updatePopup(data, callback) {
},
];
const textHeight = 18;
let contentTop = popupViewHeight / 2 + 8;
let contentTop = popupViewHeight / 2 + 16;
popupViewContentList.push({
tag: "font",
id: "content-title",
@@ -325,18 +326,18 @@ function updatePopup(data, callback) {
popupViewHeight += textHeight;
contentTop += textHeight;
}
let content = item.content.replace("<p>", "<font>");
content = content.replace("</p>", "</font>");
popupViewContentList.push({
tag: "richtext",
tag: "font",
id: "content" + index + 1,
text: content,
text: item.content,
richTextStyles: {
textStyles: {
size: "14px",
color: "#666",
lineSpacing: "50%",
align: "left",
color: "#333",
},
position: {
top: contentTop + "px",
left: viewContentPadding + "px",