Authored by ityuany

Merge branch 'master' into feature/0730/yuany

# Conflicts:
#	package.json
... ... @@ -171,7 +171,9 @@ export default {
let endedTime = this.player._yohoEndedTime || 0;
if ((changeTime - pauseTime) < 600 && pauseTime > playTime && playTime > endedTime) {
this.player.play();
setTimeout(() => {
this.player.play();
}, 1000);
}
}
});
... ... @@ -252,7 +254,9 @@ export default {
left: 50%;
top: 50%;
margin: -63px auto auto -63px;
background: url("~statics/image/components/video-play-btn.png");
/* background: url("~statics/image/components/video-play-btn.png"); */
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAADMCAMAAAAI/LzAAAABF1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQEAAAABAQEAAAD////+/v7p6ekAAADu7u7r6+uYmJgXFxf6+vo0NDQAAADW1tbMzMyjo6OLi4tPT08nJyf7+/vy8vLm5ub+/v7j4+PZ2dnY2Niurq4ICAgAAAD29vb19fXx8fHNzc3BwcFwcHBiYmJFRUX4+Pi8vLyvr6/8/Pz39/fw8PDf39/e3t7S0tLPz8/Ly8u1tbWqqqqpqamdnZ2UlJR+fn57e3v39/fZ2dkbGxvi4uLp6enb29vAwMCNjY1MTEyvr6+mpqajo6OcnJx+fn59fX1ZWVn///8oqYjcAAAAXHRSTlMAAgULDgkiExYZEDIqHhslLTUoOi84PP36zETVzW8+7kZAq5t4Z01C8d7F/MCvrX1KPufj256QWlRL64t/9ejYwbemoZ2Qe3pza19f7LxLw9W1nXlagoqKhGNiX50BqhoAAAq7SURBVHja5JvZWhNBEIVdcA2EjMNkZhIC2SABA0mQHTcQWd13P+v9n8OpSmdqGtOatN3J+HmuIBfo76lTXaXlNVu6/htd+2d0XdK/y3Q9qRtKpZ5IjXErlvx5WolkDka4OUAyVtp4fgHpU0zFuh+Jv+sxMVFqeJgkySEA7gjdJfW/E2CCKD08MgmBEEaf4F5PWZL4hriIqUfEPBo4Fkk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oRAwqXUTWEOonFUPwTqWkQCCiwEBCCIYXUJojphCiSVU8wc9tC8AQQRkYACCwEBCDDIAQhNF0vqpJg57AEIIpCQ1lPwBAw4AGHJ+yhmjwKBBBOlQ8EvKIihIE2RMEfzAAQRSGSSLikgBRhwAKIkDaAUPSwCCZEwABBiKEfDJNLDIBbBVAwUcChIwyTsKYiYxQTN0UwJi0ykZ0bTHU8icz7Ioecdih9zdF9UZeHqOwAAAABJRU5ErkJggg==");
background-size: contain;
background-repeat: no-repeat;
... ...
let shareData = {
let baseShareData = {
title: '来YO!社区,一起玩潮流!',
link: '',
desc: 'Yoho!buy有货App',
imgUrl: 'http://static.yohobuy.com/m/v1/img/touch/apple-touch-icon-144x144-precomposed-new.png'
};
let shareData = {...baseShareData};
let jsApiList = [
'checkJsApi',
'onMenuShareTimeline',
... ... @@ -14,13 +16,12 @@ let jsApiList = [
'onMenuShareQZone'
];
const setWxShareData = function(shareInfo) {
shareInfo = shareInfo || shareData;
window.wx.onMenuShareTimeline(shareInfo);
window.wx.onMenuShareAppMessage(shareInfo);
window.wx.onMenuShareQQ(shareInfo);
window.wx.onMenuShareQZone(shareInfo);
window.wx.onMenuShareWeibo(shareInfo);
const setWxShareData = function() {
window.wx.onMenuShareTimeline(shareData);
window.wx.onMenuShareAppMessage(shareData);
window.wx.onMenuShareQQ(shareData);
window.wx.onMenuShareQZone(shareData);
window.wx.onMenuShareWeibo(shareData);
};
function loadScript(url, success) {
... ... @@ -117,21 +118,19 @@ function init(qs) {
export default {
init,
setShareInfo(data) {
setTimeout(() => {
let shareInfo = Object.assign({}, shareData, data || {});
shareData = Object.assign({}, baseShareData, data || {});
shareInfo.link = shareInfo.link || location.href;
shareData.link = shareData.link || location.href;
if (window.wx) {
setWxShareData(shareInfo);
}
if (window.wx) {
setWxShareData();
}
window.setShareInfo && window.setShareInfo({
title: shareInfo.title,
summary: shareInfo.desc,
pic: shareInfo.imgUrl,
url: shareInfo.link
});
}, 100);
window.setShareInfo && window.setShareInfo({
title: shareData.title,
summary: shareData.desc,
pic: shareData.imgUrl,
url: shareData.link
});
}
};
... ...
... ... @@ -19,11 +19,11 @@ const getDetailShareData = (article) => {
let desc = '';
if (article.sort === 2) {
shareImage = article.coverImage;
desc = article.articleTitle;
shareImage = article.coverImage || '';
desc = article.articleTitle || '';
} else if (article.sort === 4) {
shareImage = article.coverUrl;
desc = article.content;
shareImage = article.coverUrl || '';
desc = article.content || '';
} else {
let blockList = get(article, 'blockList', []);
... ...