...
|
...
|
@@ -15,7 +15,7 @@ |
|
|
<div class="bottom clearfix">
|
|
|
<span class="icon time-icon"></span>
|
|
|
<span class="time">{{editorial.publishTime}}</span>
|
|
|
<span class="icon icon-share share" @click="share(editorial.title, editorial.intro, editorial.src, editorial.share.url)"></span>
|
|
|
<span class="icon icon-share share" @click="share(editorial.title, editorial.intro, editorial.src, editorial.id)"></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -119,12 +119,20 @@ |
|
|
},
|
|
|
|
|
|
/* 分享资讯 */
|
|
|
share(title, des, img, url) {
|
|
|
share(title, des, img, id) {
|
|
|
yoho.goShare({
|
|
|
title: title,
|
|
|
des: des,
|
|
|
img: img,
|
|
|
url: url
|
|
|
img: img.replace(/(\{width}|\{height}|\{mode})/g, ($0) => {
|
|
|
let dict = {
|
|
|
'{width}': 300,
|
|
|
'{height}': 300,
|
|
|
'{mode}': 2
|
|
|
};
|
|
|
|
|
|
return dict[$0];
|
|
|
}),
|
|
|
url: `//m.yohoblk.com/editorial/${id}.html`
|
|
|
});
|
|
|
}
|
|
|
},
|
...
|
...
|
|