Authored by ityuany

Merge branch 'master' into feature/0730/yuany

# Conflicts:
#	package.json
@@ -171,7 +171,9 @@ export default { @@ -171,7 +171,9 @@ export default {
171 let endedTime = this.player._yohoEndedTime || 0; 171 let endedTime = this.player._yohoEndedTime || 0;
172 172
173 if ((changeTime - pauseTime) < 600 && pauseTime > playTime && playTime > endedTime) { 173 if ((changeTime - pauseTime) < 600 && pauseTime > playTime && playTime > endedTime) {
174 - this.player.play(); 174 + setTimeout(() => {
  175 + this.player.play();
  176 + }, 1000);
175 } 177 }
176 } 178 }
177 }); 179 });
@@ -252,7 +254,9 @@ export default { @@ -252,7 +254,9 @@ export default {
252 left: 50%; 254 left: 50%;
253 top: 50%; 255 top: 50%;
254 margin: -63px auto auto -63px; 256 margin: -63px auto auto -63px;
255 - background: url("~statics/image/components/video-play-btn.png"); 257 +
  258 + /* background: url("~statics/image/components/video-play-btn.png"); */
  259 + 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/9ejYwbemoZ2Qe3pza19f7LxLw9W1nXlagoqKhGNiX50BqhoAAAq7SURB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rBqLOaTPXLYLMHpO+NL5r0i8bLL2OkLiiUHjCasago0Jk6bPPH1dHD/AnEPp2tMkraBolvq4jw89iScpu6vIOk0nNgPST0UswYcWgp0D0C7YJP7e9fI2Pv5JtgBokvw2hOlDouZg3qU5w4SIju+LWf5ce4P01XieckqHfrzYz5b3mJbOO4QJUEp9VHMHK4HHgnqDUASJkeoOOJvnxiDnoRAwqXUTWEOonFUPwTqWkQCCiwEBCCIYXUJojphCiSVU8wc9tC8AQQRkYACCwEBCDDIAQhNF0vqpJg57AEIIpCQ1lPwBAw4AGHJ+yhmjwKBBBOlQ8EvKIihIE2RMEfzAAQRSGSSLikgBRhwAKIkDaAUPSwCCZEwABBiKEfDJNLDIBbBVAwUcChIwyTsKYiYxQTN0UwJi0ykZ0bTHU8icz7Ioecdih9zdF9UZeHqOwAAAABJRU5ErkJggg==");
256 background-size: contain; 260 background-size: contain;
257 background-repeat: no-repeat; 261 background-repeat: no-repeat;
258 262
1 -let shareData = { 1 +let baseShareData = {
2 title: '来YO!社区,一起玩潮流!', 2 title: '来YO!社区,一起玩潮流!',
3 link: '', 3 link: '',
4 desc: 'Yoho!buy有货App', 4 desc: 'Yoho!buy有货App',
5 imgUrl: 'http://static.yohobuy.com/m/v1/img/touch/apple-touch-icon-144x144-precomposed-new.png' 5 imgUrl: 'http://static.yohobuy.com/m/v1/img/touch/apple-touch-icon-144x144-precomposed-new.png'
6 }; 6 };
7 7
  8 +let shareData = {...baseShareData};
  9 +
8 let jsApiList = [ 10 let jsApiList = [
9 'checkJsApi', 11 'checkJsApi',
10 'onMenuShareTimeline', 12 'onMenuShareTimeline',
@@ -14,13 +16,12 @@ let jsApiList = [ @@ -14,13 +16,12 @@ let jsApiList = [
14 'onMenuShareQZone' 16 'onMenuShareQZone'
15 ]; 17 ];
16 18
17 -const setWxShareData = function(shareInfo) {  
18 - shareInfo = shareInfo || shareData;  
19 - window.wx.onMenuShareTimeline(shareInfo);  
20 - window.wx.onMenuShareAppMessage(shareInfo);  
21 - window.wx.onMenuShareQQ(shareInfo);  
22 - window.wx.onMenuShareQZone(shareInfo);  
23 - window.wx.onMenuShareWeibo(shareInfo); 19 +const setWxShareData = function() {
  20 + window.wx.onMenuShareTimeline(shareData);
  21 + window.wx.onMenuShareAppMessage(shareData);
  22 + window.wx.onMenuShareQQ(shareData);
  23 + window.wx.onMenuShareQZone(shareData);
  24 + window.wx.onMenuShareWeibo(shareData);
24 }; 25 };
25 26
26 function loadScript(url, success) { 27 function loadScript(url, success) {
@@ -117,21 +118,19 @@ function init(qs) { @@ -117,21 +118,19 @@ function init(qs) {
117 export default { 118 export default {
118 init, 119 init,
119 setShareInfo(data) { 120 setShareInfo(data) {
120 - setTimeout(() => {  
121 - let shareInfo = Object.assign({}, shareData, data || {}); 121 + shareData = Object.assign({}, baseShareData, data || {});
122 122
123 - shareInfo.link = shareInfo.link || location.href; 123 + shareData.link = shareData.link || location.href;
124 124
125 - if (window.wx) {  
126 - setWxShareData(shareInfo);  
127 - } 125 + if (window.wx) {
  126 + setWxShareData();
  127 + }
128 128
129 - window.setShareInfo && window.setShareInfo({  
130 - title: shareInfo.title,  
131 - summary: shareInfo.desc,  
132 - pic: shareInfo.imgUrl,  
133 - url: shareInfo.link  
134 - });  
135 - }, 100); 129 + window.setShareInfo && window.setShareInfo({
  130 + title: shareData.title,
  131 + summary: shareData.desc,
  132 + pic: shareData.imgUrl,
  133 + url: shareData.link
  134 + });
136 } 135 }
137 }; 136 };
@@ -19,11 +19,11 @@ const getDetailShareData = (article) => { @@ -19,11 +19,11 @@ const getDetailShareData = (article) => {
19 let desc = ''; 19 let desc = '';
20 20
21 if (article.sort === 2) { 21 if (article.sort === 2) {
22 - shareImage = article.coverImage;  
23 - desc = article.articleTitle; 22 + shareImage = article.coverImage || '';
  23 + desc = article.articleTitle || '';
24 } else if (article.sort === 4) { 24 } else if (article.sort === 4) {
25 - shareImage = article.coverUrl;  
26 - desc = article.content; 25 + shareImage = article.coverUrl || '';
  26 + desc = article.content || '';
27 } else { 27 } else {
28 let blockList = get(article, 'blockList', []); 28 let blockList = get(article, 'blockList', []);
29 29