...
|
...
|
@@ -785,10 +785,16 @@ const _getProductModelCard = (sortId, sizeInfo) => { |
|
|
avatar: _.get(model, 'avatar'),
|
|
|
name: _.get(model, 'modelName'),
|
|
|
size: _.get(model, 'size'),
|
|
|
desc: _.map(TYPE_SORT[sortId], (value) => ({
|
|
|
key: local_[value][0],
|
|
|
value: model[value] + local_[value][1]})
|
|
|
)
|
|
|
desc: _.reduce(TYPE_SORT[sortId], (total, value) => {
|
|
|
if (model[value]) {
|
|
|
total.push({
|
|
|
key: local_[value][0],
|
|
|
value: model[value] + local_[value][1]
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return total;
|
|
|
}, [])
|
|
|
};
|
|
|
});
|
|
|
};
|
...
|
...
|
|