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
69203957bab2798658067dadcbe2da22456284a3
1 parent
4414c03a
shop filter
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
static/js/product/shop.js
yohobuy/m.yohobuy.com/application/controllers/Search.php
yohobuy/m.yohobuy.com/application/models/Product/Search.php
static/js/product/shop.js
View file @
6920395
...
...
@@ -514,7 +514,7 @@ function search(opt) {
$
.
ajax
({
type
:
'GET'
,
url
:
'/
product/newsale
/filter'
,
url
:
'/
search
/filter'
,
data
:
{
shop_id
:
shopId
,
brand
:
brand
...
...
yohobuy/m.yohobuy.com/application/controllers/Search.php
View file @
6920395
...
...
@@ -332,6 +332,7 @@ class SearchController extends AbstractAction
$condition
=
filter_input_array
(
INPUT_GET
,
array
(
'query'
=>
FILTER_DEFAULT
,
'brand'
=>
FILTER_DEFAULT
,
'shop_id'
=>
FILTER_DEFAULT
,
'sort'
=>
FILTER_DEFAULT
,
'msort'
=>
FILTER_DEFAULT
,
'misort'
=>
FILTER_DEFAULT
,
...
...
yohobuy/m.yohobuy.com/application/models/Product/Search.php
View file @
6920395
...
...
@@ -94,7 +94,12 @@ class SearchModel
}
// 区别各种列表页面的筛选数据
if
(
isset
(
$condition
[
'brand'
]))
{
if
(
isset
(
$condition
[
'shop_id'
]))
{
$condition
[
'shop'
]
=
$condition
[
'shop_id'
];
unset
(
$condition
[
'shop_id'
]);
$listData
=
SearchData
::
searchByCondition
(
$condition
);
$exclude
=
'null'
;
}
elseif
(
isset
(
$condition
[
'brand'
]))
{
$listData
=
BrandData
::
filterBrandData
(
$condition
);
$exclude
=
'brand'
;
}
else
if
(
isset
(
$condition
[
'sort'
]))
{
...
...
Please
register
or
login
to post a comment