Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
周少峰
2016-07-18 16:20:24 +0800
Commit
13eacd1bcfd923a628594decc41cb04b7245a43b
1 parent
b48f68ce
add agelevel, checked default
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
apps/product/models/public-handler.js
doraemon/views/partial/product/filter-box.hbs
apps/product/models/public-handler.js
View file @
13eacd1
...
...
@@ -598,6 +598,11 @@ exports.handleSaleFilterData = (origin, params) => {
});
// 如果年龄就一个,默认选中
if
(
dest
.
ageLevel
&&
dest
.
ageLevel
.
length
===
1
)
{
_
.
set
(
dest
,
'ageLevel[0].checked'
,
true
);
}
// 清除所有选中数据
let
remainParams
=
{};
...
...
doraemon/views/partial/product/filter-box.hbs
View file @
13eacd1
...
...
@@ -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
}}
...
...
Please
register
or
login
to post a comment