Authored by ccbikai(👎🏻🍜)

商品条目数处理

... ... @@ -17,7 +17,7 @@ exports.productLst = function(req, res, next) {
uid: uid,
udid: udid,
yh_channel: req.query.yh_channel || (req.cookies._Channel && channels[req.cookies._Channel]) || 1,
limit: req.query.limit || 12
limit: req.query.limit
}, req.query));
} else {
let keys = ['sort', 'misort', 'msort', 'gender', 'brand'],
... ...
... ... @@ -70,9 +70,10 @@ module.exports = {
if (f.component && f.component[0] &&
f.component[0].type === 'productGroup' && f.component[0].favourite_prds_enable === '1') {
f.component[0].searchCondition = Object.assign(f.component[0].searchCondition || {}, {
maybeLike: 1
});
f.component[0].searchCondition = Object.assign({
maybeLike: '1',
limit: '12'
}, f.component[0].searchCondition || {});
}
});
}
... ...
... ... @@ -46,6 +46,7 @@ module.exports = {
uid: params.uid || 0,
udid: params.udid || 0,
yh_channel: params.yh_channel,
limit: params.limit,
need_filter: 'null'
}, {
cache: true
... ...