Authored by yyq

format search params:page

... ... @@ -76,6 +76,13 @@ function getProductList(params, from) {
finalParams.order = params.order || 's_w_desc';
}
// 过滤page
if (finalParams.page) {
let page = parseInt(`0${finalParams.page}`, 10);
finalParams.page = page ? page : 1;
}
if (from) {
finalParams.from = from;
}
... ...