Authored by 陈轩

fix

... ... @@ -17,6 +17,7 @@ const camelCase = global.yoho.camelCase;
const component = {
index(req, res) {
res.locals.title = req.query.shareTitle;
res.locals.noYohoTitle = true;
res.render('detail', {
module: 'editorial',
page: 'detail',
... ...
... ... @@ -129,13 +129,13 @@
/* 分享资讯 */
share(title, des, img, id) {
title = title.substr(0,15)+'...';
title = title.length > 15 ? title.substr(0,15)+'...' : title;
img = util.getImgUrl(img, 300, 300, 2);
yoho.goShare({
title: title,
des: des,
img: img,
url: `${location.origin}/editorial/${id}.html?$shareTitle=${title}`
url: `${location.origin}/editorial/${id}.html?shareTitle=${title}`
});
}
},
... ...
... ... @@ -91,7 +91,8 @@
});
},
share: function() {
const title = this.article.articleTitle.substr(0,15)+'...';
let title = this.article.articleTitle;
title = title.length > 15 ? title.substr(0,15)+'...' : title;
yoho.goShare({
title,
... ...