Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
周少峰
9 years ago
Commit
ed45709ee7d54072d5bce95d7d1fcf1446429a75
2 parents
c5f7892a
39447997
Merge branch 'feature/crowd' into release/5.0.1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
16 deletions
library/WebPlugin/HelperSearch.php
template/www.yohobuy.com/partials/product/filter-box.phtml
library/WebPlugin/HelperSearch.php
View file @
ed45709
...
...
@@ -470,6 +470,14 @@ class HelperSearch
return
$result
;
}
$params
=
self
::
$params
;
do
{
if
(
isset
(
$params
[
'ageLevel'
])
&&
$params
[
'ageLevel'
]
==
1
)
{
break
;
}
if
(
count
(
$filter
[
'ageLevel'
])
===
1
&&
$filter
[
'ageLevel'
][
0
][
'name'
]
===
'成人'
)
{
return
$result
;
}
}
while
(
false
);
$ageLevel
=
isset
(
$params
[
'ageLevel'
])
?
$params
[
'ageLevel'
]
:
''
;
if
(
isset
(
$params
[
'ageLevel'
]))
{
unset
(
$params
[
'ageLevel'
]);
...
...
@@ -477,8 +485,7 @@ class HelperSearch
if
(
self
::
$total
==
0
)
{
return
$result
;
}
sort
(
$filter
[
'ageLevel'
]);
foreach
(
$filter
[
'ageLevel'
]
as
$key
=>
$val
)
{
if
(
intval
(
$val
[
'id'
])
===
$ageLevel
)
{
self
::
$selected
[
'ageLevel'
]
=
array
(
...
...
template/www.yohobuy.com/partials/product/filter-box.phtml
View file @
ed45709
...
...
@@ -48,20 +48,6 @@
</div>
{{/if}}
{{#if ageLevel}}
<div class="channel section">
<span class="title">年龄:</span>
<div class="attr-content clearfix">
{{#each ageLevel}}
<a class="attr {{#if checked}}checked{{/if}}" href="{{href}}">
{{name}}
</a>
{{/each}}
</div>
</div>
{{/if}}
{{#if sort}}
<div class="sort section">
<span class="title">分类:</span>
...
...
@@ -180,6 +166,20 @@
</div>
{{/ brand}}
{{#if ageLevel}}
<div class="channel section">
<span class="title">人群:</span>
<div class="attr-content clearfix">
{{#each ageLevel}}
<a class="attr {{#if checked}}checked{{/if}}" href="{{href}}">
{{name}}
</a>
{{/each}}
</div>
</div>
{{/if}}
{{#if price}}
<div class="price section">
<span class="title">价格:</span>
...
...
Please
register
or
login
to post a comment