Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
9 years ago
Commit
89c4c3bf7cb38d7c208711420e742318846ec18e
1 parent
ea2dd914
搜索取消placeholder
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
38 deletions
doraemon/views/partial/header.hbs
doraemon/views/partial/nav-menu.hbs
public/js/common/header.js
public/scss/components/_header.css
doraemon/views/partial/header.hbs
View file @
89c4c3b
...
...
@@ -48,21 +48,7 @@
</a>
<div
class=
"mini-bag-box sub-wrapper"
>
<div
class=
"bag-goods bag-empty"
>
<dl
class=
"mini-goods-list"
>
<dd
class=
"goods-item clearfix"
>
<div
class=
"thumb"
>
<img
src=
"//placehold.it/48x64"
>
</div>
<div
class=
"info"
>
<a
href=
""
>
范德萨发生大幅度是
</a>
<p>
颜色:黄 尺码:F
</p>
</div>
<div
class=
"price"
>
<p>
¥199.00 X1
</p>
<a
href=
"#"
>
删除
</a>
</div>
</dd>
</dl>
<dl
class=
"mini-goods-list"
></dl>
<div
class=
"go-bag-btn"
>
<a
href=
"
{{
..
/
siteUrl
}}
/shopping/cart"
>
去购物车结算
</a>
</div>
...
...
doraemon/views/partial/nav-menu.hbs
View file @
89c4c3b
...
...
@@ -62,8 +62,7 @@
<div
class=
"search-input"
>
<form
id=
"search-form"
action=
"
{{
..
/
siteUrl
}}
/product/query"
>
<span
class=
"iconfont left"
>

</span>
<input
type=
"text"
name=
"query"
id=
"search-key"
class=
"search-key"
placeholder=
"search"
autocomplete=
"off"
>
<input
type=
"text"
name=
"query"
id=
"search-key"
class=
"search-key"
autocomplete=
"off"
>
<span
class=
"iconfont right clear-input"
>

</span>
</form>
</div>
...
...
public/js/common/header.js
View file @
89c4c3b
...
...
@@ -167,21 +167,22 @@ $searchKey.keyup(function(e) {
});
// ie8输入框提示特殊处理
if
(
!!
window
.
ActiveXObject
&&
!!
document
.
documentMode
)
{
$searchKey
.
focus
(
function
()
{
var
key
=
$searchKey
.
val
();
// 应产品要求所有浏览器获得焦点提示文字隐藏
// if (!!window.ActiveXObject && !!document.documentMode) {
$searchKey
.
focus
(
function
()
{
var
key
=
$searchKey
.
val
();
if
(
key
===
'search'
)
{
$searchKey
.
val
(
''
).
css
(
'color'
,
'#fff'
);
}
}).
blur
(
function
()
{
var
key
=
$searchKey
.
val
();
if
(
key
===
'search'
)
{
$searchKey
.
val
(
''
).
css
(
'color'
,
'#fff'
);
}
}).
blur
(
function
()
{
var
key
=
$searchKey
.
val
();
if
(
$
.
trim
(
key
)
===
''
)
{
$searchKey
.
val
(
'search'
).
css
(
'color'
,
'#aaa'
);
}
}).
val
(
'search'
).
css
(
'color'
,
'#aaa'
);
}
if
(
$
.
trim
(
key
)
===
''
)
{
$searchKey
.
val
(
'search'
).
css
(
'color'
,
'#aaa'
);
}
}).
val
(
'search'
).
css
(
'color'
,
'#aaa'
);
// }
$clearInput
.
click
(
function
()
{
$searchKey
.
val
(
''
);
...
...
public/scss/components/_header.css
View file @
89c4c3b
...
...
@@ -25,7 +25,6 @@
&
:hover
{
height
:
50px
;
border-bottom
:
2px
solid
#9a9a9a
;
>
*
{
color
:
#9a9a9a
;
...
...
@@ -74,7 +73,6 @@
&:hover
{
color
:
#9a9a9a
;
height
:
50px
;
border-bottom
:
2px
solid
#9a9a9a
;
cursor
:
default
;
}
...
...
@@ -157,7 +155,7 @@
.bag-content
{
padding
:
280px
0
130px
;
text-align
:
center
;
color
:
#1
d1d1d
;
color
:
#1
b1b1b
;
background
:
resolve
(
'layout/bag-bg.png'
)
no-repeat
center
center
;
display
:
none
;
}
...
...
@@ -193,7 +191,7 @@
.goods-item
{
line-height
:
2
;
padding
:
6px
0
;
color
:
#1
d1d1d
;
color
:
#1
b1b1b
;
font-size
:
14px
;
&
>
*
{
...
...
@@ -249,11 +247,11 @@
}
.cur
{
border-bottom
:
2px
solid
#1
d1d1d
;
border-bottom
:
2px
solid
#1
b1b1b
;
}
.cur
>
a
{
color
:
#1
d1d1d
;
color
:
#1
b1b1b
;
}
}
...
...
@@ -276,7 +274,7 @@
.sub-nav
{
height
:
50px
;
background
:
#1
d1d1d
;
background
:
#1
b1b1b
;
.sub-nav-list
{
max-width
:
94%
;
...
...
@@ -325,7 +323,7 @@
top
:
50px
;
right
:
0
;
position
:
absolute
;
background
:
#1
d1d1d
;
background
:
#1
b1b1b
;
text-align
:
left
;
display
:
none
;
z-index
:
10
;
...
...
Please
register
or
login
to post a comment