...
|
...
|
@@ -124,9 +124,28 @@ Page({ |
|
|
});
|
|
|
},
|
|
|
|
|
|
// 筛选变更
|
|
|
filterChange: function(e) {
|
|
|
let params;
|
|
|
let {curSort, gender} = e.detail;
|
|
|
|
|
|
this.data.order = curSort;
|
|
|
this.data.gender = gender;
|
|
|
|
|
|
params = {
|
|
|
gender,
|
|
|
order: curSort,
|
|
|
page: 1,
|
|
|
limit: 20
|
|
|
};
|
|
|
this.data.productList = [];
|
|
|
|
|
|
params.setScrollPos = true;
|
|
|
this._productList(params);
|
|
|
},
|
|
|
|
|
|
// 商品列表
|
|
|
_productList: function(params) {
|
|
|
|
|
|
params = params || {page: 1, pageNo: 20};
|
|
|
params.shop_id = app.getShopId();
|
|
|
|
...
|
...
|
|