Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
毕凯
9 years ago
Commit
adf13136a93dffef9cadd33ac6f75f47e44c1100
1 parent
9f46a5cd
filter-box 选中项目 改变颜色 code review by
@bikai
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
23 deletions
template/www.yohobuy.com/partials/product/filter-box.phtml
web-static/sass/product/_filter-box.scss
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index1.php
template/www.yohobuy.com/partials/product/filter-box.phtml
View file @
adf1313
...
...
@@ -26,7 +26,7 @@
<div class="attr-content clearfix">
{{#each channel}}
<a class="attr" href="{{href}}">
<a class="attr
{{#if checked}}checked{{/if}}
" href="{{href}}">
{{name}}
</a>
{{/each}}
...
...
@@ -42,7 +42,7 @@
<ul class="sort-pre clearfix">
{{#each sort}}
<li>
<span class="attr">
<span class="attr
{{#if checked}}checked{{/if}}
">
{{name}}
</span>
</li>
...
...
@@ -53,7 +53,7 @@
{{#each sort}}
<ul class="sort-sub clearfix hide">
{{#each sub}}
<li class="attr">
<li class="attr
{{#if checked}}checked{{/if}}
">
<a href="{{href}}">{{name}}</a>
</li>
{{/each}}
...
...
@@ -71,7 +71,7 @@
<div class="attr-content">
<ul class="default clearfix">
{{# default}}
<li class="attr">
<li class="attr
{{#if checked}}checked{{/if}}
">
<a href="{{href}}" title="{{name}}">{{name}}</a>
</li>
{{/ default}}
...
...
@@ -82,7 +82,7 @@
<em>更多</em>
<i class="iconfont"></i>
</span>
<span id="brand-multi" class="multi-select">多选 +</span>
</div>
...
...
@@ -128,7 +128,7 @@
<div class="attr-content clearfix">
{{# price}}
<a class="attr" href="{{href}}">¥{{name}}</a>
<a class="attr
{{#if checked}}checked{{/if}}
" href="{{href}}">¥{{name}}</a>
{{/ price}}
<div class="ud-price-range">
...
...
@@ -146,10 +146,10 @@
{{#if color}}
<div class="color section">
<span class="title">颜色:</span>
<div class="attr-content clearfix">
{{# color}}
<a class="attr" href="{{href}}">
<a class="attr
{{#if checked}}checked{{/if}}
" href="{{href}}">
<i class="color-block" style="background: {{rgb}}"></i>
{{name}}
</a>
...
...
@@ -164,7 +164,7 @@
<div class="attr-content clearfix">
{{# size}}
<a class="attr" href="{{href}}">{{name}}</a>
<a class="attr
{{#if checked}}checked{{/if}}
" href="{{href}}">{{name}}</a>
{{/ size}}
</div>
</div>
...
...
@@ -194,7 +194,7 @@
{{/if}}
<ul class="clearfix check-container">
{{#each sub}}
<li class="attr">
<li class="attr
{{#if checked}}checked{{/if}}
">
<a href="{{href}}">
<span class="iconfont checkbox" data-id="{{id}}"></span>
<span>{{name}}</span>
...
...
@@ -212,4 +212,4 @@
</div>
</div>
{{/if}}
</div>
\ No newline at end of file
</div>
...
...
web-static/sass/product/_filter-box.scss
View file @
adf1313
...
...
@@ -12,7 +12,7 @@
}
}
.title
{
.title
{
float
:
left
;
width
:
90px
;
line-height
:
30px
;
...
...
@@ -44,6 +44,14 @@
margin-left
:
0
;
}
&
.checked
{
color
:
#e01
;
a
{
color
:
#e01
;
}
}
-moz-user-select
:
none
;
}
...
...
@@ -287,4 +295,4 @@
.multi
.checkbox
{
display
:
inline
;
}
}
\ No newline at end of file
}
...
...
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index1.php
View file @
adf1313
...
...
@@ -44,7 +44,8 @@ class Index1Controller extends AbstractAction
'channel'
=>
array
(
array
(
'href'
=>
'/?gender=1,3'
,
'name'
=>
'BOYS'
'name'
=>
'BOYS'
,
'checked'
=>
true
),
array
(
'href'
=>
'/?gender=2,3'
,
...
...
@@ -63,10 +64,12 @@ class Index1Controller extends AbstractAction
array
(
'id'
=>
'1'
,
'name'
=>
'上衣'
,
'checked'
=>
true
,
'sub'
=>
array
(
array
(
'href'
=>
''
,
'name'
=>
'T恤'
'name'
=>
'T恤'
,
'checked'
=>
true
),
array
(
'href'
=>
''
,
...
...
@@ -95,7 +98,8 @@ class Index1Controller extends AbstractAction
'default'
=>
array
(
array
(
'href'
=>
''
,
'name'
=>
'CLOT'
'name'
=>
'CLOT'
,
'checked'
=>
true
),
array
(
'href'
=>
''
,
...
...
@@ -133,7 +137,8 @@ class Index1Controller extends AbstractAction
'brandIndex'
=>
array
(
array
(
'index'
=>
'all'
,
'name'
=>
'全部'
'name'
=>
'全部'
,
'checked'
=>
true
),
array
(
'index'
=>
'0-9'
,
...
...
@@ -185,7 +190,8 @@ class Index1Controller extends AbstractAction
'price'
=>
array
(
array
(
'href'
=>
''
,
'name'
=>
'0-239'
'name'
=>
'0-239'
,
'checked'
=>
true
),
array
(
'href'
=>
''
,
...
...
@@ -196,7 +202,8 @@ class Index1Controller extends AbstractAction
array
(
'href'
=>
''
,
'name'
=>
'黑色'
,
'rgb'
=>
'#000'
'rgb'
=>
'#000'
,
'checked'
=>
true
),
array
(
'href'
=>
''
,
...
...
@@ -207,7 +214,8 @@ class Index1Controller extends AbstractAction
'size'
=>
array
(
array
(
'href'
=>
''
,
'name'
=>
'S'
'name'
=>
'S'
,
'checked'
=>
true
),
array
(
'href'
=>
''
,
...
...
@@ -223,7 +231,8 @@ class Index1Controller extends AbstractAction
array
(
'id'
=>
'1'
,
'href'
=>
''
,
'name'
=>
'街头'
'name'
=>
'街头'
,
'checked'
=>
true
),
array
(
'id'
=>
'2'
,
...
...
@@ -239,7 +248,8 @@ class Index1Controller extends AbstractAction
array
(
'id'
=>
'1'
,
'href'
=>
''
,
'name'
=>
'春天'
'name'
=>
'春天'
,
'checked'
=>
true
),
array
(
'id'
=>
'2'
,
...
...
@@ -1544,4 +1554,4 @@ class Index1Controller extends AbstractAction
$this
->
echoJson
(
$data
);
}
}
\ No newline at end of file
}
...
...
Please
register
or
login
to post a comment