Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
2017-02-07 15:41:53 +0800
Commit
95d70c0cc6ed4a9690c28ab4e16ecf98570a8a94
1 parent
0165fbdc
列表筛选,错位修复
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
14 deletions
apps/product/views/partial/list/filter-area.hbs
public/scss/product/_list.css
apps/product/views/partial/list/filter-area.hbs
View file @
95d70c0
{{#if
showFilters
}}
<div
class=
"filter-area"
>
<label>
已选条件:
</label>
{{#
each
filters
}}
<div
class=
"filter-item"
data-key=
"
{{
key
}}
"
>
{{#
color
}}
{{>
round-color
}}
{{/
color
}}
<span
class=
"label"
>
{{
name
}}
</span>
<span
class=
"iconfont cancel"
>

</span>
<div
class=
"left"
>
<label>
已选条件:
</label>
</div>
<div
class=
"middle"
>
{{#
each
filters
}}
<div
class=
"filter-item"
data-key=
"
{{
key
}}
"
>
{{#
color
}}
{{>
round-color
}}
{{/
color
}}
<span
class=
"label"
>
{{
name
}}
</span>
<span
class=
"iconfont cancel"
>

</span>
</div>
{{/
each
}}
</div>
<div
class=
"right"
>
<label
class=
"cancel"
>
清空筛选条件
</label>
</div>
{{/
each
}}
<label
class=
"cancel"
>
清空筛选条件
</label>
</div>
{{/if}}
\ No newline at end of file
...
...
public/scss/product/_list.css
View file @
95d70c0
...
...
@@ -258,17 +258,31 @@
.filter-area
{
background-color
:
#eae9e9
;
margin-bottom
:
30px
;
overflow
:
hidden
;
.left,
.right
{
width
:
auto
;
margin
:
27px
10px
0
20px
;
}
.right
{
margin
:
27px
20px
0
0
;
}
.middle
{
float
:
left
;
width
:
630px
;
}
label
{
font-size
:
14px
;
font-weight
:
700
;
margin-left
:
20px
;
}
label
.cancel
{
float
:
right
;
color
:
#878787
;
margin
:
27px
20px
0
0
;
cursor
:
pointer
;
}
...
...
Please
register
or
login
to post a comment