Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
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
梁志锋
2015-11-05 18:41:38 +0800
Commit
0a3b3e8148e44020286df4c22130fbe84edaf63b
2 parents
9c37c114
a5188e3d
Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into 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 @
0a3b3e8
...
...
@@ -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 @
0a3b3e8
...
...
@@ -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 @
0a3b3e8
...
...
@@ -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 @
0a3b3e8
...
...
@@ -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 @
0a3b3e8
...
...
@@ -6,7 +6,7 @@
<i
class=
"search-icon iconfont"
>
60
f;</i>
<input
type=
"text"
placeholder=
"搜索商品"
name=
"query"
>
<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 @
0a3b3e8
...
...
@@ -6,7 +6,7 @@
<input
type=
"text"
value=
"{{default}}"
name=
"query"
>
<input
type=
"hidden"
value=
"search"
name=
"search"
>
<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