Authored by 郝肖肖

'news来源'

... ... @@ -180,6 +180,7 @@ module.exports = class extends global.yoho.BaseModel {
'点击这里',
'点这里'
]);
content = utils.filterAhtml(content);
return {header: header, content: utils.imgAlt(content, contents.title, 5)};
}
... ...
... ... @@ -54,10 +54,11 @@ const util = {
let $ = cheerio.load(html, {decodeEntities: false});
_.each($(`img`).slice(0, num), item => {
_.each($('img').slice(0, num), item => {
let $dom = $(item);
$dom.attr('alt', $dom.attr('alt') || alt);
})
});
html = $.html();
$ = '';
... ...
... ... @@ -16,6 +16,7 @@
<a class="author-name" href="{{authorUrl}}">{{name}}</a>
</div>
{{/if}}
<div class="article-source">文章来源于:微信</div>
<div class="article-status clearfix">
{{#if time}}
<span class="article-time">
... ...
... ... @@ -6,6 +6,7 @@
'use strict';
const helpers = global.yoho.helpers;
/**
* 热销品牌
*/
... ...
... ... @@ -99,6 +99,14 @@
}
}
.article-source {
float: left;
height: 64px;
line-height: 64px;
color: #999;
font-size: 13px;
}
.article-status {
float: right;
height: 64px;
... ...