Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
760bbacf8f14168e280a320d701bfab5f28b9c95
1 parent
8efda5f5
'添加奥莱筛选参数'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
yohobuy/m.yohobuy.com/application/controllers/Search.php
yohobuy/m.yohobuy.com/application/controllers/Search.php
View file @
760bbac
...
...
@@ -198,16 +198,17 @@ class SearchController extends AbstractAction
$listData
=
array
();
}
if
(
isset
(
$condition
[
'title'
]))
{
if
(
isset
(
$condition
[
'title'
]))
{
$this
->
setTitle
(
$condition
[
'title'
]);
$this
->
setNavHeader
(
$condition
[
'title'
],
true
,
SITE_MAIN
);
}
//奥莱商品过滤新品标签
if
(
isset
(
$condition
[
'outlets'
])
&&
$condition
[
'outlets'
]
===
'1'
){
foreach
(
$data
[
'goodList'
][
'new'
]
as
$outletskey
=>
$outletsval
){
$data
[
'goodList'
][
'new'
][
$outletskey
][
'tags'
][
'is_new'
]
=
false
;
if
(
isset
(
$condition
[
'outlets'
])
&&
$condition
[
'outlets'
]
===
'1'
)
{
foreach
(
$data
[
'goodList'
][
'new'
]
as
$outletskey
=>
$outletsval
)
{
unset
(
$data
[
'goodList'
][
'new'
][
$outletskey
][
'tags'
]);
}
}
\Plugin\DataProcess\CouponFloorProcess
::
debugOut
(
$data
);
$this
->
_view
->
display
(
'list'
,
$data
);
}
...
...
@@ -241,9 +242,10 @@ class SearchController extends AbstractAction
'discount'
=>
FILTER_DEFAULT
,
'gender'
=>
FILTER_DEFAULT
,
'p_d'
=>
FILTER_DEFAULT
,
'outlets'
=>
FILTER_DEFAULT
,
'page'
=>
FILTER_VALIDATE_INT
,),
false
);
if
(
!
empty
(
$condition
[
'shop_id'
]))
{
if
(
!
empty
(
$condition
[
'shop_id'
]))
{
$condition
[
'shop'
]
=
$condition
[
'shop_id'
];
}
// 转义分类
...
...
@@ -327,7 +329,12 @@ class SearchController extends AbstractAction
$data
=
Product\SearchModel
::
getSearchData
(
$condition
,
$showTag
,
$tagNew
,
$tagSale
);
}
while
(
false
);
//奥莱商品过滤新品标签
if
(
isset
(
$condition
[
'outlets'
])
&&
$condition
[
'outlets'
]
===
'1'
)
{
foreach
(
$data
[
'goodList'
][
'new'
]
as
$outletskey
=>
$outletsval
)
{
unset
(
$data
[
'goodList'
][
'new'
][
$outletskey
][
'tags'
]);
}
}
if
(
empty
(
$data
[
'new'
]))
{
echo
' '
;
}
else
{
...
...
Please
register
or
login
to post a comment