Authored by xuqi

common js

var yohobuy;
require('./js/common');
require('./js/passport/index');
require('./js/guang/index');
require('./js/home/index');
... ...
/**
* 共用底部<解决某些页面过短导致底部悬空的问题>
* @author: xuqi<qi.xu@yoho.cn
* @date: 2015/10/19
* 页面公共逻辑
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/21
*/
var $ = require('yoho.zepto');
var $footer = $('#yoho-footer');
//页面通用底部位置及status设置
if ($('body').height() < $(window).height()) {
$footer.addClass('bottom');
}
... ...
... ... @@ -12,8 +12,6 @@ var $clear = $('#search-input > .clear-input');
var $history = $('.history');
require('../plugin/pos-footer');
$('#clear-history').bind('touchstart', function() {
$.ajax({
type: 'POST',
... ...
<script>
seajs.use('js/common');
</script>
{{!-- 逛(PLUS+STAR) --}}
{{#if psList}}
... ...