Bug修复与阅读体验增加 (#725)

- 修复了“每日精品限免 / 促销应用”价格显示错误的Bug
- 为"即刻主题精选"中的图片间添加间隔,以提升阅读体验
This commit is contained in:
Andie 2018-09-17 14:29:14 +08:00 committed by DIYgod
parent 4fc4321a1a
commit 3d6962c6ec
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ module.exports = async (ctx) => {
description: `
<img referrerpolicy="no-referrer" src="${item.app.icon.image}"/>
<br/>
原价${item.discount_info[0].discounted_price} -> 现售${item.discount_info[0].original_price}
原价${item.discount_info[0].original_price} -> 现售${item.discount_info[0].discounted_price}
<br/>
平台${item.app.download_link[0].device}
<br/>

View File

@ -110,7 +110,7 @@ module.exports = async (ctx) => {
if (item.pictures) {
item.pictures.forEach(
(pic) =>
(description += `<picture><source srcset="${pic.picUrl.split('/thumbnail/')[0]}/strip/format/webp" type="image/webp"><source srcset="${pic.picUrl.split('?imageMogr2/')[0]}" type="image/jpeg"><img src="${
(description += `<br/><picture><source srcset="${pic.picUrl.split('/thumbnail/')[0]}/strip/format/webp" type="image/webp"><source srcset="${pic.picUrl.split('?imageMogr2/')[0]}" type="image/jpeg"><img src="${
pic.picUrl.split('?imageMogr2/')[0]
}"></picture>`)
);