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
uedxwg
9 years ago
Commit
24414dc687aac630a7d59f0596db599c084eed49
1 parent
a3859841
update
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
static/js/category/brand.js
static/sass/index/_search.scss
static/sass/product/_list.scss
static/js/category/brand.js
View file @
24414dc
...
...
@@ -17,8 +17,6 @@ var $icon = $('.search-icon');
var
searchH
=
$
(
'.newbrand-search'
).
outerHeight
(),
headerH
=
$
(
'.yoho-header'
).
outerHeight
(),
brandSwipe
=
parseInt
(
searchH
)
+
parseInt
(
headerH
)
-
1
,
minBrandListTop
,
searchArray
=
[],
minBrandListTop
;
var
brandsData
,
...
...
@@ -119,7 +117,6 @@ if ($('.brand-search-page').length) {
$keyword
=
$
(
'#keyword'
);
$keyword
.
on
(
'input'
,
function
()
{
$
(
'.history'
).
css
(
'display'
,
'none'
);
if
(
$keyword
.
val
().
length
)
{
searchResult
();
$icon
.
css
(
'color'
,
'#000'
);
...
...
@@ -135,6 +132,7 @@ if ($('.brand-search-page').length) {
clearTextHammer
=
new
Hammer
(
$
(
'.clear-text'
)[
0
]);
clearTextHammer
.
on
(
'tap'
,
function
(
e
)
{
e
.
preventDefault
();
$
(
'.search-result'
).
html
(
''
);
$
(
'#keyword'
).
val
(
''
).
trigger
(
'input'
);
e
.
srcEvent
.
stopPropagation
();
});
...
...
@@ -142,4 +140,5 @@ if ($('.brand-search-page').length) {
$
(
'form.search-box'
).
on
(
'submit'
,
function
()
{
return
false
;
});
}
...
...
static/sass/index/_search.scss
View file @
24414dc
...
...
@@ -38,7 +38,7 @@
left
:
515rem
/
$pxConvertRem
;
border
:
none
;
background
:
transparent
;
color
:
#
b2b2b2
;
color
:
#
000
;
font-size
:
30rem
/
$pxConvertRem
;
line-height
:
56rem
/
$pxConvertRem
;
}
...
...
static/sass/product/_list.scss
View file @
24414dc
...
...
@@ -13,7 +13,7 @@
input
{
height
:
30px
;
width
:
9
0
%
;
width
:
9
5
%
;
border-radius
:
15px
;
text-indent
:
26px
;
background
:
#fff
;
...
...
@@ -29,7 +29,7 @@
.search
{
position
:
absolute
;
top
:
12px
;
right
:
0
;
right
:
.4rem
;
border
:
none
;
background
:
transparent
;
font-size
:
16px
;
...
...
Please
register
or
login
to post a comment