Showing
4 changed files
with
9 additions
and
5 deletions
1 | /** | 1 | /** |
2 | - * 共用底部<解决某些页面过短导致底部悬空的问题> | ||
3 | - * @author: xuqi<qi.xu@yoho.cn | ||
4 | - * @date: 2015/10/19 | 2 | + * 页面公共逻辑 |
3 | + * @author: xuqi<qi.xu@yoho.cn> | ||
4 | + * @date: 2015/10/21 | ||
5 | */ | 5 | */ |
6 | var $ = require('yoho.zepto'); | 6 | var $ = require('yoho.zepto'); |
7 | 7 | ||
8 | var $footer = $('#yoho-footer'); | 8 | var $footer = $('#yoho-footer'); |
9 | 9 | ||
10 | +//页面通用底部位置及status设置 | ||
10 | if ($('body').height() < $(window).height()) { | 11 | if ($('body').height() < $(window).height()) { |
11 | $footer.addClass('bottom'); | 12 | $footer.addClass('bottom'); |
12 | } | 13 | } |
@@ -12,8 +12,6 @@ var $clear = $('#search-input > .clear-input'); | @@ -12,8 +12,6 @@ var $clear = $('#search-input > .clear-input'); | ||
12 | 12 | ||
13 | var $history = $('.history'); | 13 | var $history = $('.history'); |
14 | 14 | ||
15 | -require('../plugin/pos-footer'); | ||
16 | - | ||
17 | $('#clear-history').bind('touchstart', function() { | 15 | $('#clear-history').bind('touchstart', function() { |
18 | $.ajax({ | 16 | $.ajax({ |
19 | type: 'POST', | 17 | type: 'POST', |
-
Please register or login to post a comment