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
Rock Zhang
2015-10-19 19:06:24 +0800
Commit
b54b7a0ee90a6f807c6792edaea1cd19e258264a
2 parents
7b5f2f3e
39a46524
Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
1 deletions
static/js/index/search.js
static/js/plugin/pos-footer.js
static/sass/layout/_footer.scss
template/m.yohobuy.com/partials/layout/page_footer.phtml
static/js/index/search.js
View file @
b54b7a0
...
...
@@ -12,6 +12,8 @@ var $clear = $('#search-input > .clear-input');
var
$history
=
$
(
'.history'
);
require
(
'../plugin/pos-footer'
);
$
(
'#clear-history'
).
bind
(
'touchstart'
,
function
()
{
$
.
ajax
({
type
:
'POST'
,
...
...
static/js/plugin/pos-footer.js
0 → 100644
View file @
b54b7a0
/**
* 共用底部<解决某些页面过短导致底部悬空的问题>
* @author: xuqi<qi.xu@yoho.cn
* @date: 2015/10/19
*/
var
$
=
require
(
'yoho.zepto'
);
var
$footer
=
$
(
'#yoho-footer'
);
if
(
$
(
'body'
).
height
()
<
$
(
window
).
height
())
{
$footer
.
addClass
(
'bottom'
);
}
$footer
.
removeClass
(
'hide'
);
\ No newline at end of file
...
...
static/sass/layout/_footer.scss
View file @
b54b7a0
...
...
@@ -26,4 +26,10 @@
color
:
#666
;
background-color
:
#eee
;
}
&
.bottom
{
position
:
absolute
;
width
:
100%
;
bottom
:
0
;
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/layout/page_footer.phtml
View file @
b54b7a0
{
{#pageFooter
}
}
<footer
class=
"yoho-footer
"
>
<footer
id=
"yoho-footer"
class=
"yoho-footer hide
"
>
<p
class=
"op-row"
>
{
{#
user
}
}
Hi,
...
...
Please
register
or
login
to post a comment