Authored by 陈轩

fix

... ... @@ -216,7 +216,6 @@
if (article && article.code === 200 && article.data) {
this.article = article.data;
document.title = this.article.articleTitle;
}
if (content && content.code === 200 && content.data) {
... ...
... ... @@ -129,6 +129,7 @@
/* 分享资讯 */
share(title, des, img, id) {
title = title.substr(0,15)+'...';
img = util.getImgUrl(img, 300, 300, 2);
yoho.goShare({
title: title,
... ...
... ... @@ -91,11 +91,13 @@
});
},
share: function() {
const title = this.article.articleTitle.substr(0,15)+'...';
yoho.goShare({
title: this.article.articleTitle,
title,
des: '优质精选,BLK潮流资讯为你呈现',
img: util.getImgUrl(this.article.coverImage, 300, 300, 2),
url: `${location.origin}/editorial/${this.article.id}.html?shareTitle=${this.article.articleTitle}`
url: `${location.origin}/editorial/${this.article.id}.html?shareTitle=${title}`
});
}
},
... ...