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
eb351db99a65fcac9f8896d8b50a7f74119bb709
1 parent
3ec61ff0
搜索添加app_type标识,是否是blk商品
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
static/js/product/list.js
yohobuy/m.yohobuy.com/application/controllers/Search.php
static/js/product/list.js
View file @
eb351db
...
...
@@ -33,7 +33,7 @@ var $input = $('#search-input input'),
$buriedpoint
=
$
(
'.buriedpoint'
),
$search
=
$
(
'#search'
);
var
shopId
,
sort
,
brand
,
outlets
;
var
shopId
,
sort
,
brand
,
outlets
,
app_type
;
//默认筛选条件
var
defaultOpt
=
require
(
'./query-param'
);
...
...
@@ -154,6 +154,7 @@ shopId = getQueryString('shop_id');
sort
=
getQueryString
(
'sort'
);
outlets
=
getQueryString
(
'outlets'
);
age_level
=
outlets
=
getQueryString
(
'ageLevel'
);
app_type
=
outlets
=
getQueryString
(
'app_type'
);
/**
* 筛选注册的回调,筛选子项点击后逻辑
...
...
@@ -288,6 +289,10 @@ function search(opt) {
params
.
outlets
=
outlets
;
}
if
(
app_type
)
{
params
.
app_type
=
app_type
;
}
$
.
extend
(
setting
,
defaultOpt
,
params
);
searching
=
true
;
...
...
yohobuy/m.yohobuy.com/application/controllers/Search.php
View file @
eb351db
...
...
@@ -63,6 +63,7 @@ class SearchController extends AbstractAction
'outlets'
=>
FILTER_DEFAULT
,
'ageLevel'
=>
FILTER_DEFAULT
,
'p_d'
=>
FILTER_DEFAULT
,
'app_type'
=>
FILTER_DEFAULT
,
'filter_poolId'
=>
FILTER_DEFAULT
),
false
);
if
(
isset
(
$condition
[
'shop_id'
]))
{
$condition
[
'shopId'
]
=
$condition
[
'shop_id'
];
...
...
@@ -262,6 +263,7 @@ class SearchController extends AbstractAction
'outlets'
=>
FILTER_DEFAULT
,
'age_level'
=>
FILTER_DEFAULT
,
'page'
=>
FILTER_VALIDATE_INT
,
'app_type'
=>
FILTER_DEFAULT
,
'filter_poolId'
=>
FILTER_DEFAULT
),
false
);
if
(
!
empty
(
$condition
[
'shop_id'
]))
{
...
...
@@ -417,6 +419,7 @@ class SearchController extends AbstractAction
'channel'
=>
FILTER_DEFAULT
,
'ageLevel'
=>
FILTER_DEFAULT
,
'p_d'
=>
FILTER_DEFAULT
,
'app_type'
=>
FILTER_DEFAULT
,
'filter_poolId'
=>
FILTER_DEFAULT
),
false
);
...
...
Please
register
or
login
to post a comment