Showing
1 changed file
with
5 additions
and
0 deletions
@@ -7,6 +7,11 @@ const processProductList = require(`${global.utils}/beautify/product`); | @@ -7,6 +7,11 @@ const processProductList = require(`${global.utils}/beautify/product`); | ||
7 | 7 | ||
8 | /* 查询最新产品列表 */ | 8 | /* 查询最新产品列表 */ |
9 | exports.getNewData = (params) => { | 9 | exports.getNewData = (params) => { |
10 | + if (params.hasOwnProperty('priceRange')) { | ||
11 | + params.price = params.priceRange; | ||
12 | + delete params.priceRange; | ||
13 | + } | ||
14 | + | ||
10 | params = Object.assign({ | 15 | params = Object.assign({ |
11 | method: 'app.search.newProduct', | 16 | method: 'app.search.newProduct', |
12 | }, params); | 17 | }, params); |
-
Please register or login to post a comment