Authored by 郭成尧

bug-fixed

@@ -274,9 +274,9 @@ const index = (req, res, next) => { @@ -274,9 +274,9 @@ const index = (req, res, next) => {
274 let shareInfo = _shareInfo(id, detail.getArticle); 274 let shareInfo = _shareInfo(id, detail.getArticle);
275 275
276 Object.assign(guang, shareInfo); 276 Object.assign(guang, shareInfo);
277 - data.title = detail.getArticle.article_title + '-YOHO!BUY 有货网'; 277 + data.title = detail.getArticle.article_title + '_潮流资讯-YOHO!BUY 有货';
278 data.title_more = true; 278 data.title_more = true;
279 - data.description = detail.getArticle.descriptionText; 279 + data.description = detail.getArticle.descriptionText && detail.getArticle.descriptionText.slice(0, 100);
280 data.description_more = true; 280 data.description_more = true;
281 } 281 }
282 282
@@ -5,13 +5,13 @@ @@ -5,13 +5,13 @@
5 {{#if @first}} 5 {{#if @first}}
6 <li class="swiper-slide"> 6 <li class="swiper-slide">
7 <a href="{{url}}" rel="nofollow"> 7 <a href="{{url}}" rel="nofollow">
8 - <img src="{{image2 src w=640 h=240 q=60}}"> 8 + <img src="{{image2 src w=640 h=240 q=60}}" alt="banner轮播图">
9 </a> 9 </a>
10 </li> 10 </li>
11 {{^}} 11 {{^}}
12 <li class="swiper-slide"> 12 <li class="swiper-slide">
13 <a href="{{url}}" rel="nofollow"> 13 <a href="{{url}}" rel="nofollow">
14 - <img class="swiper-lazy" data-src="{{image2 src w=640 h=240 q=60}}"> 14 + <img class="swiper-lazy" data-src="{{image2 src w=640 h=240 q=60}}" alt="banner轮播图">
15 </a> 15 </a>
16 </li> 16 </li>
17 {{/if}} 17 {{/if}}
@@ -26,7 +26,7 @@ const getGenderByChannel = (channel) => { @@ -26,7 +26,7 @@ const getGenderByChannel = (channel) => {
26 * seo 获取性别 26 * seo 获取性别
27 */ 27 */
28 const _getGenderForSeo = (gender) => { 28 const _getGenderForSeo = (gender) => {
29 - let seoGender = '男士|女士'; 29 + let seoGender = '';
30 30
31 switch (gender) { 31 switch (gender) {
32 case '1': 32 case '1':
@@ -194,7 +194,9 @@ const getListSeoData = (params, isNewArrival) => { @@ -194,7 +194,9 @@ const getListSeoData = (params, isNewArrival) => {
194 channel: '' 194 channel: ''
195 }; 195 };
196 196
197 - delete params.channel; 197 + if (params.channel === '') {
  198 + delete params.channel;
  199 + }
198 200
199 if (_.isEmpty(params)) { 201 if (_.isEmpty(params)) {
200 seoData = { 202 seoData = {