@@ -148,19 +148,16 @@ module.exports = class extends Base {
}
// 排序
- let orderMap = {};
+ const orderMap = {
+ sort_order: 'desc'
+ };
if (sort === 'price') {
// 按价格
- orderMap = {
- retail_price: order
- };
+ orderMap['retail_price'] = 'order';
} else {
// 按商品添加时间
- id: 'desc'
+ orderMap['id'] = 'desc';
- orderMap['sort_order'] = 'desc';
// 筛选的分类
let filterCategory = [{