Authored by 郭成尧

gender

... ... @@ -4,7 +4,8 @@ const _ = require('lodash');
const helpers = global.yoho.helpers;
const GENDER = {
1: '男',
2: '女'
2: '女',
3: '男|女'
};
/**
... ... @@ -232,7 +233,9 @@ exports.processProductList = (list, options) => {
product.similar = true;
}
product.seoTitle = `${product.brand_name}|${product.gender ? GENDER[product.gender] + '|': ''}${product.small_sort_name}|${product.product_name}|YOHO!BUY有货`; // eslint-disable-line
let seoGender = product.gender ? GENDER[product.gender] + '|' : '';
product.seoTitle = `${product.brand_name}|${seoGender}${product.small_sort_name}|${product.product_name}|YOHO!BUY有货`; // eslint-disable-line
pruductList.push(product);
});
... ...