Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
ccbikai
9 years ago
Commit
4294a681704aef3df9e6ef06f9151bc6f1a3ea62
1 parent
76479d7d
取消搜索按钮
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
10 deletions
static/js/category/brand.js
template/m.yohobuy.com/actions/category/brand/search.phtml
static/js/category/brand.js
View file @
4294a68
...
...
@@ -19,7 +19,6 @@ var searchH = $('.newbrand-search').outerHeight(),
var
brandsData
,
$keyword
,
searchBtnHammer
,
clearTextHammer
,
removeHistory
,
searchList
,
...
...
@@ -167,13 +166,6 @@ if ($('.brand-search-page').length) {
}
}).
focus
();
searchBtnHammer
=
new
Hammer
(
$
(
'.search-btn'
)[
0
]);
searchBtnHammer
.
on
(
'tap'
,
function
(
e
)
{
searchResult
();
e
.
srcEvent
.
stopPropagation
();
});
clearTextHammer
=
new
Hammer
(
$
(
'.clear-text'
)[
0
]);
clearTextHammer
.
on
(
'tap'
,
function
(
e
)
{
$
(
'#keyword'
).
val
(
''
).
trigger
(
'input'
);
...
...
@@ -186,7 +178,6 @@ if ($('.brand-search-page').length) {
if
(
localStorage
)
{
yohoHistory
=
$
.
parseJSON
(
'['
+
localStorage
.
getItem
(
'yohoHistory'
)
+
']'
);
console
.
log
(
yohoHistory
);
if
(
yohoHistory
)
{
$
.
each
(
yohoHistory
,
function
(
index
,
content
)
{
$
(
'<a href="'
+
content
.
searchHref
+
'">'
+
content
.
searchName
+
'</a>'
).
appendTo
(
'.historyList'
);
...
...
template/m.yohobuy.com/actions/category/brand/search.phtml
View file @
4294a68
...
...
@@ -6,7 +6,7 @@
<i
class=
"search-icon iconfont"
>
60
f;</i>
<div
class=
"search-action"
>
<span
class=
"iconfont clear-text"
>
623
;</span>
<
span
class=
"search-btn"
>搜索
</span>
<
a
class=
"cancel-btn"
href=
"javascript: history.go(-1);"
>取消
</span>
</div>
</form>
</div>
...
...
Please
register
or
login
to post a comment