Authored by xuqi

footer position

... ... @@ -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',
... ...
/**
* 共用底部<解决某些页面过短导致底部悬空的问题>
* @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
... ...
... ... @@ -26,4 +26,10 @@
color: #666;
background-color: #eee;
}
&.bottom {
position: absolute;
width: 100%;
bottom: 0;
}
}
\ No newline at end of file
... ...
{{#pageFooter}}
<footer class="yoho-footer">
<footer id="yoho-footer" class="yoho-footer hide">
<p class="op-row">
{{# user}}
Hi,
... ...