Authored by xuqi

common js

1 var yohobuy; 1 var yohobuy;
2 2
  3 +require('./js/common');
  4 +
3 require('./js/passport/index'); 5 require('./js/passport/index');
4 require('./js/guang/index'); 6 require('./js/guang/index');
5 require('./js/home/index'); 7 require('./js/home/index');
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',
  1 +<script>
  2 + seajs.use('js/common');
  3 +</script>
1 4
2 {{!-- 逛(PLUS+STAR) --}} 5 {{!-- 逛(PLUS+STAR) --}}
3 {{#if psList}} 6 {{#if psList}}