...
|
...
|
@@ -10,8 +10,6 @@ var $footer = $('#yoho-footer'), |
|
|
$yohoPage = $('.yoho-page'),
|
|
|
$header = $('.yoho-header');
|
|
|
|
|
|
var backToTopHammer;
|
|
|
|
|
|
function cookie(name) {
|
|
|
var cookies = document.cookie,
|
|
|
cookieVal,
|
...
|
...
|
@@ -134,6 +132,8 @@ function reMarginFooter(fixedElement) { |
|
|
|
|
|
var user = getUser();
|
|
|
|
|
|
var backToTopHammer;
|
|
|
|
|
|
rePosFooter(); //计算底部位置
|
|
|
|
|
|
if (user === 0) {
|
...
|
...
|
@@ -154,15 +154,11 @@ function reMarginFooter(fixedElement) { |
|
|
);
|
|
|
}
|
|
|
|
|
|
$op.find('.back-to-top').on('touchend', function() {
|
|
|
$(window).scrollTop(0);
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
if ($op.find('.back-to-top').length > 0) {
|
|
|
backToTopHammer = new Hammer(document.getElementsByClassName('back-to-top')[0]);
|
|
|
backToTopHammer = new Hammer($op.find('.back-to-top')[0]);
|
|
|
backToTopHammer.on('tap', function(e) {
|
|
|
$(window).scrollTop(0);
|
|
|
e.srcEvent.preventDefault();
|
|
|
return false;
|
|
|
});
|
|
|
}
|
...
|
...
|
|