Authored by 周少峰

add agelevel, checked default

... ... @@ -598,6 +598,11 @@ exports.handleSaleFilterData = (origin, params) => {
});
// 如果年龄就一个,默认选中
if (dest.ageLevel && dest.ageLevel.length === 1) {
_.set(dest, 'ageLevel[0].checked', true);
}
// 清除所有选中数据
let remainParams = {};
... ...
... ... @@ -51,7 +51,7 @@
{{#if ageLevel}}
<div class="channel section">
<span class="title">性别</span>
<span class="title">年龄</span>
<div class="attr-content clearfix">
{{#each ageLevel}}
... ...