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
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
c3ee4ee4ed02ad1ae0c16bcf9c8c28190482419f
1 parent
7d1ec056
footer position
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 @
c3ee4ee
...
...
@@ -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 @
c3ee4ee
/**
* 共用底部<解决某些页面过短导致底部悬空的问题>
* @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 @
c3ee4ee
...
...
@@ -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 @
c3ee4ee
{
{#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