...
|
...
|
@@ -3,7 +3,8 @@ |
|
|
* @author: xuqi<qi.xu@yoho.cn>
|
|
|
* @date: 2015/10/21
|
|
|
*/
|
|
|
var $ = require('jquery');
|
|
|
var $ = require('jquery'),
|
|
|
Hammer = require('yoho.hammer');
|
|
|
|
|
|
var $footer = $('#yoho-footer'),
|
|
|
$yohoPage = $('.yoho-page'),
|
...
|
...
|
@@ -155,6 +156,15 @@ function reMarginFooter(fixedElement) { |
|
|
$(window).scrollTop(0);
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
if ($op.find('.back-to-top').length > 0) {
|
|
|
navHammer = new Hammer(document.getElementsByClassName('back-to-top')[0]);
|
|
|
navHammer.on('tap', function(e) {
|
|
|
$(window).scrollTop(0);
|
|
|
return false;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
$footer.removeClass('hide');
|
|
|
}());
|
|
|
|
...
|
...
|
|