Authored by Rock Zhang

Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop

@@ -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',
  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');
@@ -26,4 +26,10 @@ @@ -26,4 +26,10 @@
26 color: #666; 26 color: #666;
27 background-color: #eee; 27 background-color: #eee;
28 } 28 }
  29 +
  30 + &.bottom {
  31 + position: absolute;
  32 + width: 100%;
  33 + bottom: 0;
  34 + }
29 } 35 }
1 {{#pageFooter}} 1 {{#pageFooter}}
2 - <footer class="yoho-footer"> 2 + <footer id="yoho-footer" class="yoho-footer hide">
3 <p class="op-row"> 3 <p class="op-row">
4 {{# user}} 4 {{# user}}
5 Hi, 5 Hi,