...
|
...
|
@@ -2,17 +2,7 @@ var yoho = require('yoho'); |
|
|
var $ = require('jquery');
|
|
|
var util = require('common/util');
|
|
|
|
|
|
$(() => {
|
|
|
window.addEventListener('touchmove', function() {
|
|
|
var topHeight = document.body.scrollTop;
|
|
|
|
|
|
if (topHeight > 50) {
|
|
|
$('#header').addClass('top-change');
|
|
|
} else {
|
|
|
$('#header').removeClass('top-change');
|
|
|
}
|
|
|
});
|
|
|
|
|
|
yoho.ready(() => {
|
|
|
if (!yoho.isLogin) {
|
|
|
$('.auth').addClass('no-intercept');
|
|
|
$('.auth').on('click', function() {
|
...
|
...
|
@@ -37,4 +27,20 @@ $(() => { |
|
|
|
|
|
yoho.showLoading(false);
|
|
|
util.visibilitychange();
|
|
|
|
|
|
window.addEventListener('touchmove', function() {
|
|
|
var topHeight = document.body.scrollTop;
|
|
|
|
|
|
if (topHeight > 50) {
|
|
|
$('#header').addClass('top-change');
|
|
|
} else {
|
|
|
$('#header').removeClass('top-change');
|
|
|
}
|
|
|
});
|
|
|
|
|
|
document.addEventListener('visibilitychange', () => {
|
|
|
if (!document.hidden) {
|
|
|
location.reload();
|
|
|
}
|
|
|
});
|
|
|
}); |
...
|
...
|
|