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
徐祁xuqi
9 years ago
Commit
2605af5b8a1fab64803bef6fcf2da50cc3e0a07e
2 parents
647625aa
6693f846
Merge remote-tracking branch 'origin/release/4.6'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
static/js/category/brand.js
static/js/category/brand.js
View file @
2605af5
...
...
@@ -35,7 +35,7 @@ var searchH = $('.newbrand-search').outerHeight(),
minBrandListTop
;
var
brandsData
,
$keyword
,
$keyword
=
$
(
'#keyword'
)
,
clearTextHammer
;
var
$history
=
$
(
'.local-history'
);
...
...
@@ -116,7 +116,7 @@ function isLocalStorageSupported() {
}
//绑定提交前的存local操作
function
bindW
ir
teLocal
(
$brandList
,
list
)
{
function
bindW
ri
teLocal
(
$brandList
,
list
)
{
$brandList
.
on
(
'click'
,
'p , li'
,
function
(
e
)
{
var
brandName
,
brandId
,
brandDomain
,
url
;
var
a
=
$
(
this
).
find
(
'a'
);
...
...
@@ -124,8 +124,6 @@ function bindWirteLocal($brandList, list) {
var
query
=
a
.
attr
(
'brandName'
)
+
ranToken2
+
myDate
.
getTime
(),
historys
;
$keyword
=
$
(
'#keyword'
);
brandName
=
a
.
attr
(
'brandName'
);
brandId
=
a
.
attr
(
'brandId'
);
...
...
@@ -241,7 +239,7 @@ function searchResult() {
// 插入 dom,绑定事件
$
(
'.search-result'
).
html
(
html
);
changeBackground
();
bindW
ir
teLocal
(
$
(
'.brand-list'
),
true
);
bindW
ri
teLocal
(
$
(
'.brand-list'
),
true
);
}
loading
.
showLoadingMask
();
...
...
@@ -333,21 +331,20 @@ if ($('.brand-index-page').length > 0) {
if
(
$
(
'.history-search'
).
length
>
0
)
{
bindW
ir
teLocal
(
$
(
'.history-search'
),
false
);
bindW
ri
teLocal
(
$
(
'.history-search'
),
false
);
}
if
(
$
(
'.hot-search'
).
length
>
0
)
{
bindW
ir
teLocal
(
$
(
'.hot-search'
),
false
);
bindW
ri
teLocal
(
$
(
'.hot-search'
),
false
);
}
if
(
$
(
'.brand-search-page'
).
length
>
0
)
{
brandsData
=
$
.
parseJSON
(
$
(
'#brands-data'
).
html
());
$keyword
=
$
(
'#keyword'
);
$keyword
.
on
(
'input'
,
function
()
{
searchInput
();
})
.
focus
()
;
});
// 2016.1.13 产品(高扬)要求进入页面默认显示取消按钮
$icon
.
css
(
'color'
,
'#444'
);
...
...
Please
register
or
login
to post a comment