Authored by 周少峰

Merge branch 'hotfix/return'

... ... @@ -32,7 +32,7 @@ exports.index = (req, res, next) => {
return;
}
search.getSearchData(params, req.yoho.channel).then(result => {
return search.getSearchData(params, req.yoho.channel).then(result => {
Object.assign(resData, result);
if (!_.get(resData, 'search.goods') || !_.get(resData, 'search.goods').length) {
... ...
... ... @@ -506,7 +506,7 @@ const _getProductComfort = (data) => {
let flag = false;
_.range(1, 6).forEach(i => {
if (i === value.wearSense.value) {
if (i === _.get(value, 'wearSense.value')) {
flag = true;
blocks.push({
cur: true
... ... @@ -537,7 +537,7 @@ const _getProductComfort = (data) => {
* 基础商品描述
*/
const _getBasicDescription = (productDescBo) => {
let sex = (function (gender) {
let sex = (function(gender) {
if (gender === 1) {
return '男款';
} else if (gender === 2) {
... ... @@ -639,7 +639,7 @@ const _getSizeData = (sizeInfo) => {
let boyReference = _.get(sizeInfo, 'productExtra.boyReference', false);
let girlReference = _.get(sizeInfo, 'productExtra.girlReference', false);
let gender = _.get(sizeInfo, 'productDescBo.gender', 3);
let referenceName = (function () {
let referenceName = (function() {
if (gender === 3 && boyReference) {
return '参考尺码(男)';
} else if (gender === 3 && girlReference) {
... ... @@ -890,7 +890,7 @@ const _getSizeAttrByMaxSortId = (maxSortId, sizeList) => {
}
// 不同分类,取得属性值不同
let attributeIds = (function (id) {
let attributeIds = (function(id) {
if (id === 1 && id === 2) {
return [3, 4];
} else if (id === 3) {
... ...