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
hf
9 years ago
Commit
f4006dec89fe7cbbef7c79b49dbec44c4af15403
2 parents
04df6da3
a5188e3d
Merge remote-tracking branch 'origin/develop'
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
6 deletions
static/js/index/search.js
static/js/product/list.js
static/sass/index/_search.scss
static/sass/product/_list.scss
template/m.yohobuy.com/actions/index/search/index.phtml
template/m.yohobuy.com/partials/product/list.phtml
static/js/index/search.js
View file @
f4006de
...
...
@@ -46,6 +46,11 @@ cHammer.on('tap', function() {
$input
.
val
(
''
).
trigger
(
'input'
);
});
$
(
'#search'
).
on
(
'touchend'
,
function
()
{
$
(
this
).
closest
(
'form'
).
submit
();
return
false
;
});
//初始化历史搜索的内容
(
function
()
{
var
html
=
''
,
...
...
static/js/product/list.js
View file @
f4006de
...
...
@@ -69,6 +69,13 @@ var $listNav = $('#list-nav'),
btnIntroHammer
,
introHammer
,
brandColHammer
;
/**
* 手动触发搜索
*/
$
(
'#search'
).
on
(
'touchend'
,
function
()
{
$
(
this
).
closest
(
'form'
).
submit
();
return
false
;
});
/**
* 筛选注册的回调,筛选子项点击后逻辑
...
...
static/sass/index/_search.scss
View file @
f4006de
...
...
@@ -35,10 +35,10 @@
.search
{
position
:
absolute
;
top
:
18rem
/
$pxConvertRem
;
left
:
515
rem
/
$pxConvertRem
;
right
:
40
rem
/
$pxConvertRem
;
border
:
none
;
background
:
transparent
;
color
:
#
000
;
color
:
#
666
;
font-size
:
30rem
/
$pxConvertRem
;
line-height
:
56rem
/
$pxConvertRem
;
}
...
...
static/sass/product/_list.scss
View file @
f4006de
...
...
@@ -32,8 +32,8 @@
.search
{
position
:
absolute
;
top
:
7px
;
right
:
0
;
top
:
2px
;
right
:
-30px
;
border
:
none
;
background
:
transparent
;
font-size
:
16px
;
...
...
@@ -41,6 +41,7 @@
height
:
30px
;
overflow
:
hidden
;
line-height
:
30px
;
color
:
#666
;
}
}
...
...
template/m.yohobuy.com/actions/index/search/index.phtml
View file @
f4006de
...
...
@@ -7,7 +7,7 @@
<input
type=
"text"
placeholder=
"搜索商品"
name=
"query"
>
<input
type=
"hidden"
name=
"from"
value=
"search"
>
<i
class=
"clear-input iconfont hide"
>
626
;</i>
<
button
id=
"search"
class=
"search"
type=
"submit"
>搜索</butto
n>
<
span
id=
"search"
class=
"search"
type=
"submit"
>搜索</spa
n>
</form>
</div>
<div
class=
"search-items"
>
...
...
template/m.yohobuy.com/partials/product/list.phtml
View file @
f4006de
...
...
@@ -6,7 +6,7 @@
<input
type=
"text"
value=
"{{default}}"
name=
"query"
>
<input
type=
"hidden"
value=
"search"
name=
"from"
>
<i
class=
"clear-input iconfont hide"
>
61
a;</i>
<
button
id=
"search"
class=
"search"
type=
"submit"
>搜索</butto
n>
<
span
id=
"search"
class=
"search"
type=
"submit"
>搜索</spa
n>
</form>
</div>
{
{/
search
}
}
...
...
Please
register
or
login
to post a comment