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
Plain Diff
Browse Files
Authored by
郭成尧
9 years ago
Commit
e2df3bc5f2b7c367dbaff709f1614312ecf45b68
2 parents
7fa612f9
4c152cdf
Merge branch 'feature/srchactshr' into release/5.0.0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
static/js/product/list.js
static/js/product/list.js
View file @
e2df3bc
...
...
@@ -33,7 +33,7 @@ var $input = $('#search-input input'),
$buriedpoint
=
$
(
'.buriedpoint'
),
$search
=
$
(
'#search'
);
var
shopId
,
sort
,
brand
,
outlets
,
app_type
;
var
shopId
,
sort
,
brand
,
outlets
,
app_type
,
promotion
;
//默认筛选条件
var
defaultOpt
=
require
(
'./query-param'
);
...
...
@@ -155,7 +155,7 @@ sort = getQueryString('sort');
outlets
=
getQueryString
(
'outlets'
);
age_level
=
getQueryString
(
'ageLevel'
);
app_type
=
getQueryString
(
'app_type'
);
promotion
=
getQueryString
(
'promotion'
);
/**
* 筛选注册的回调,筛选子项点击后逻辑
* 需要执行search的场景:1.点选筛选项;2.relaod为true时切换导航;3.下拉加载
...
...
@@ -293,6 +293,10 @@ function search(opt) {
params
.
app_type
=
app_type
;
}
if
(
promotion
)
{
params
.
promotion
=
promotion
;
}
$
.
extend
(
setting
,
defaultOpt
,
params
);
searching
=
true
;
...
...
Please
register
or
login
to post a comment