Authored by 郭成尧

bug-fixed

... ... @@ -274,9 +274,9 @@ const index = (req, res, next) => {
let shareInfo = _shareInfo(id, detail.getArticle);
Object.assign(guang, shareInfo);
data.title = detail.getArticle.article_title + '-YOHO!BUY 有货网';
data.title = detail.getArticle.article_title + '_潮流资讯-YOHO!BUY 有货';
data.title_more = true;
data.description = detail.getArticle.descriptionText;
data.description = detail.getArticle.descriptionText && detail.getArticle.descriptionText.slice(0, 100);
data.description_more = true;
}
... ...
... ... @@ -5,13 +5,13 @@
{{#if @first}}
<li class="swiper-slide">
<a href="{{url}}" rel="nofollow">
<img src="{{image2 src w=640 h=240 q=60}}">
<img src="{{image2 src w=640 h=240 q=60}}" alt="banner轮播图">
</a>
</li>
{{^}}
<li class="swiper-slide">
<a href="{{url}}" rel="nofollow">
<img class="swiper-lazy" data-src="{{image2 src w=640 h=240 q=60}}">
<img class="swiper-lazy" data-src="{{image2 src w=640 h=240 q=60}}" alt="banner轮播图">
</a>
</li>
{{/if}}
... ...
... ... @@ -26,7 +26,7 @@ const getGenderByChannel = (channel) => {
* seo 获取性别
*/
const _getGenderForSeo = (gender) => {
let seoGender = '男士|女士';
let seoGender = '';
switch (gender) {
case '1':
... ... @@ -194,7 +194,9 @@ const getListSeoData = (params, isNewArrival) => {
channel: ''
};
delete params.channel;
if (params.channel === '') {
delete params.channel;
}
if (_.isEmpty(params)) {
seoData = {
... ...