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
4414c03a52ff37f24fd18118547a05d1468d347d
1 parent
b19fd524
增加搜索参数
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
static/js/product/list.js
static/js/product/list.js
View file @
4414c03
...
...
@@ -31,7 +31,7 @@ var $input = $('#search-input input'),
$icon
=
$
(
'.search-icon'
),
$clear
=
$
(
'#search-input .clear-input'
);
var
shopId
;
var
shopId
,
sort
;
//默认筛选条件
var
defaultOpt
=
require
(
'./query-param'
);
...
...
@@ -101,6 +101,7 @@ function getQueryString(name) {
}
shopId
=
getQueryString
(
'shop_id'
);
sort
=
getQueryString
(
'sort'
);
/**
* 筛选注册的回调,筛选子项点击后逻辑
...
...
@@ -202,6 +203,10 @@ function search(opt) {
params
.
shop_id
=
shopId
;
}
if
(
sort
)
{
params
.
sort
=
sort
;
}
$
.
extend
(
setting
,
defaultOpt
,
params
);
searching
=
true
;
...
...
Please
register
or
login
to post a comment