Authored by 郭成尧

默认男女时处理

... ... @@ -2,7 +2,7 @@
* @Author: Targaryen
* @Date: 2016-05-25 18:16:59
* @Last Modified by: Targaryen
* @Last Modified time: 2016-06-08 10:56:46
* @Last Modified time: 2016-06-08 11:04:00
*/
'use strict';
... ... @@ -320,6 +320,12 @@ exports.handleSaleFilterData = (origin, params) => {
dest.channel[1].href = handleFilterUrl(params, { gender: '2,3' });
dest.channel[1].checked = (params.gender === '2,3') ? true : false;
// 没有性别参数事默认选中全部
if (_.isEmpty(params.gender)) {
dest.channel[0].checked = true;
dest.channel[1].checked = true;
}
// 最新降价数据处理
if (parseInt(params.saleType, 10) === 3) {
dest.discount = handleSaleNewSaleSortData(params);
... ...