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

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

View File

@ -8,7 +8,7 @@
</u-collapse-item> </u-collapse-item>
</u-collapse> </u-collapse>
<u-empty style="margin-top:100rpx;" v-else text="暂无版本信息" mode="list"></u-empty> <u-empty class="empty" v-else text="暂无版本信息" mode="list"></u-empty>
</div> </div>
</template> </template>
@ -54,4 +54,5 @@ export default {
padding: 10rpx; padding: 10rpx;
background: #fff; background: #fff;
} }
</style> </style>

View File

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