...
|
...
|
@@ -166,7 +166,9 @@ const getFilterValueForSeo = (queryParams, apiData) => { |
|
|
seniors.push(seoParams.style);
|
|
|
}
|
|
|
|
|
|
if (seniors.length) {
|
|
|
seoParams.senior = _.join(seniors, ',');
|
|
|
}
|
|
|
|
|
|
return seoParams;
|
|
|
};
|
...
|
...
|
@@ -178,11 +180,8 @@ const getFilterValueForSeo = (queryParams, apiData) => { |
|
|
* @param isNewArrival 是否是新品到着
|
|
|
*/
|
|
|
const getListSeoData = (params, isNewArrival) => {
|
|
|
let seoData = {
|
|
|
title: '【潮流商品】_潮流男装_潮流女装_潮流童装-YOHO!BUY 有货',
|
|
|
keywords: '潮流服装配饰,创意生活用品,男生服装配饰,女生服装配饰,潮童服装配饰',
|
|
|
description: '潮流网购就上YOHO!BUY有货,有货网潮流商品专卖店提供潮流商品品牌、潮流商品价格、潮流商品图片等信息。销售正品新款潮流男装、潮流女装、潮流童装,全场低至4折,★全场品牌正品保证,支持货到付款!★' // eslint-disable-line
|
|
|
};
|
|
|
let genderName = params.channel;
|
|
|
let seoData = {};
|
|
|
let seoParams = {
|
|
|
color: '',
|
|
|
size: '',
|
...
|
...
|
@@ -195,14 +194,32 @@ const getListSeoData = (params, isNewArrival) => { |
|
|
channel: ''
|
|
|
};
|
|
|
|
|
|
if (params) {
|
|
|
delete params.channel;
|
|
|
|
|
|
if (_.isEmpty(params)) {
|
|
|
seoData = {
|
|
|
title: '【潮流商品】_潮流男装_潮流女装_潮流童装-YOHO!BUY 有货',
|
|
|
keywords: '潮流服装配饰,创意生活用品,男生服装配饰,女生服装配饰,潮童服装配饰',
|
|
|
description: '潮流网购就上YOHO!BUY有货,有货网潮流商品专卖店提供潮流商品品牌、潮流商品价格、潮流商品图片等信息。销售正品新款潮流男装、潮流女装、潮流童装,全场低至4折,★全场品牌正品保证,支持货到付款!★' // eslint-disable-line
|
|
|
};
|
|
|
} else {
|
|
|
_.assign(seoParams, params);
|
|
|
|
|
|
delete params.sort;
|
|
|
|
|
|
if (_.isEmpty(params)) {
|
|
|
seoData = {
|
|
|
title: `【${seoParams.channel}${seoParams.color}${seoParams.senior}${seoParams.brand}${seoParams.sort}${isNewArrival ? '新品': ''}】_价格,图片,款式-YOHO!BUY 有货`, // eslint-disable-line
|
|
|
keywords: `${seoParams.channel}${seoParams.color}${seoParams.senior}${seoParams.brand}${seoParams.sort}`, // eslint-disable-line
|
|
|
title: `【${seoParams.sort}${isNewArrival ? '新品': ''}】_${seoParams.sort}价格,${seoParams.sort}图片,${seoParams.sort}款式-YOHO!BUY 有货`, // eslint-disable-line
|
|
|
keywords: `${seoParams.sort},${seoParams.sort}品牌,${seoParams.sort}价格,${seoParams.sort}图片`, // eslint-disable-line
|
|
|
description: `潮流网购就上YOHO!BUY有货,有货网${seoParams.sort}专卖店提供${seoParams.sort}品牌、${seoParams.sort}价格、${seoParams.sort}图片等信息。销售正品新款${seoParams.sort},全场低至4折,★全场品牌正品保证,支持货到付款!★` // eslint-disable-line
|
|
|
};
|
|
|
} else {
|
|
|
seoData = {
|
|
|
title: `【${genderName}${seoParams.color}${seoParams.senior}${seoParams.brand}${seoParams.sort}${isNewArrival ? '新品': ''}】_价格,图片,款式-YOHO!BUY 有货`, // eslint-disable-line
|
|
|
keywords: `${genderName}${seoParams.color}${seoParams.senior}${seoParams.brand}${seoParams.sort}`, // eslint-disable-line
|
|
|
description: `潮流网购就上YOHO!BUY有货,有货网${seoParams.sort}专卖店提供${seoParams.sort}品牌、${seoParams.sort}价格、${seoParams.sort}图片等信息。销售正品新款${seoParams.sort},全场低至4折,★全场品牌正品保证,支持货到付款!★` // eslint-disable-line
|
|
|
};
|
|
|
}
|
|
|
}
|
|
|
return seoData;
|
|
|
};
|
...
|
...
|
|