...
|
...
|
@@ -1171,7 +1171,7 @@ const getChannelName = channel => { |
|
|
|
|
|
let channelName = '';
|
|
|
|
|
|
switch(channel){
|
|
|
switch (channel) {
|
|
|
case 'boys':
|
|
|
channelName = '男生';
|
|
|
break;
|
...
|
...
|
@@ -1206,10 +1206,10 @@ exports.getListSeo = (channel, sorts, checked) => { |
|
|
misortName = '';
|
|
|
|
|
|
_.forEach(sorts, val => {
|
|
|
if(val.active) {
|
|
|
if (val.active) {
|
|
|
msortName = val && val.name;
|
|
|
_.forEach(val.childList, sub => {
|
|
|
if(sub.childActive && sub.sortId !== val.sortId) {
|
|
|
if (sub.childActive && sub.sortId !== val.sortId) {
|
|
|
misortName = sub && sub.name;
|
|
|
return false;
|
|
|
}
|
...
|
...
|
@@ -1219,9 +1219,9 @@ exports.getListSeo = (channel, sorts, checked) => { |
|
|
});
|
|
|
|
|
|
_.forEach(checked, ck => {
|
|
|
if(ck.itemType === 'price') {
|
|
|
if (ck.itemType === 'price') {
|
|
|
priceName = ck.name;
|
|
|
} else if(ck.itemType === 'brand') {
|
|
|
} else if (ck.itemType === 'brand') {
|
|
|
brandName = ck.name;
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -1255,7 +1255,7 @@ exports.getNewSeo = (channel, dlist) => { |
|
|
nlabel = '';
|
|
|
|
|
|
_.forEach(dlist, d => {
|
|
|
if(d && d.active) {
|
|
|
if (d && d.active) {
|
|
|
nlabel = d.name || '';
|
|
|
return false;
|
|
|
}
|
...
|
...
|
@@ -1267,7 +1267,7 @@ exports.getNewSeo = (channel, dlist) => { |
|
|
title: newTitle + '新品上架-YOHO!BUY 有货 100%正品保证',
|
|
|
keywords: newTitle + '新品上架',
|
|
|
description: newTitle + '新品上架,正品网购,官方授权!YOHO! 有货中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。'
|
|
|
}
|
|
|
};
|
|
|
};
|
|
|
|
|
|
exports.getBrandSeo = (channel, brandInfo) => {
|
...
|
...
|
@@ -1279,10 +1279,15 @@ exports.getBrandSeo = (channel, brandInfo) => { |
|
|
bc = b + c,
|
|
|
bbc = b + bcn + c,
|
|
|
title = bb || b || '',
|
|
|
keywords = (b ? b + ',' : '') + ((b && bcn) ? (bb + ',') : '') + bc || '' + '品牌',
|
|
|
desc = b + '正品网购。' + bbc || '' + '品牌官方授权!YOHO! 有货中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。';
|
|
|
|
|
|
title += (title ? (title + '|') : '') + c + '品牌|YOHO!BUY 有货 100%正品保证';
|
|
|
keywords = [b ? b + ',' : '',
|
|
|
((b && bcn) ? (bb + ',') : ''),
|
|
|
bc || '',
|
|
|
'品牌'].join(''),
|
|
|
desc = [b + '正品网购。',
|
|
|
bbc || '',
|
|
|
'品牌官方授权!YOHO! 有货中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。'].join('');
|
|
|
|
|
|
title += (title ? (title + '|') : '') + c + '品牌|YOHO!BUY 有货 100%正品保证';
|
|
|
|
|
|
return {
|
|
|
title: title,
|
...
|
...
|
|