add agelevel, checked default
Showing
2 changed files
with
6 additions
and
1 deletions
@@ -598,6 +598,11 @@ exports.handleSaleFilterData = (origin, params) => { | @@ -598,6 +598,11 @@ exports.handleSaleFilterData = (origin, params) => { | ||
598 | 598 | ||
599 | }); | 599 | }); |
600 | 600 | ||
601 | + // 如果年龄就一个,默认选中 | ||
602 | + if (dest.ageLevel && dest.ageLevel.length === 1) { | ||
603 | + _.set(dest, 'ageLevel[0].checked', true); | ||
604 | + } | ||
605 | + | ||
601 | // 清除所有选中数据 | 606 | // 清除所有选中数据 |
602 | let remainParams = {}; | 607 | let remainParams = {}; |
603 | 608 |
@@ -51,7 +51,7 @@ | @@ -51,7 +51,7 @@ | ||
51 | 51 | ||
52 | {{#if ageLevel}} | 52 | {{#if ageLevel}} |
53 | <div class="channel section"> | 53 | <div class="channel section"> |
54 | - <span class="title">性别:</span> | 54 | + <span class="title">年龄:</span> |
55 | 55 | ||
56 | <div class="attr-content clearfix"> | 56 | <div class="attr-content clearfix"> |
57 | {{#each ageLevel}} | 57 | {{#each ageLevel}} |
-
Please register or login to post a comment