Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Showing
4 changed files
with
23 additions
and
1 deletions
@@ -12,6 +12,8 @@ var $clear = $('#search-input > .clear-input'); | @@ -12,6 +12,8 @@ var $clear = $('#search-input > .clear-input'); | ||
12 | 12 | ||
13 | var $history = $('.history'); | 13 | var $history = $('.history'); |
14 | 14 | ||
15 | +require('../plugin/pos-footer'); | ||
16 | + | ||
15 | $('#clear-history').bind('touchstart', function() { | 17 | $('#clear-history').bind('touchstart', function() { |
16 | $.ajax({ | 18 | $.ajax({ |
17 | type: 'POST', | 19 | type: 'POST', |
static/js/plugin/pos-footer.js
0 → 100644
1 | +/** | ||
2 | + * 共用底部<解决某些页面过短导致底部悬空的问题> | ||
3 | + * @author: xuqi<qi.xu@yoho.cn | ||
4 | + * @date: 2015/10/19 | ||
5 | + */ | ||
6 | +var $ = require('yoho.zepto'); | ||
7 | + | ||
8 | +var $footer = $('#yoho-footer'); | ||
9 | + | ||
10 | +if ($('body').height() < $(window).height()) { | ||
11 | + $footer.addClass('bottom'); | ||
12 | +} | ||
13 | + | ||
14 | +$footer.removeClass('hide'); |
-
Please register or login to post a comment