...
|
...
|
@@ -96,13 +96,13 @@ class IconMall extends Page { |
|
|
|
|
|
scroll() {
|
|
|
$(window).scroll(() => {
|
|
|
let $scrollTop = $(window).scrollTop();
|
|
|
// let $scrollTop = $(window).scrollTop();
|
|
|
|
|
|
if ($scrollTop >= this.fixTop) {
|
|
|
this.selector.$tabFixed.find('.tab').addClass('fixed');
|
|
|
} else {
|
|
|
this.selector.$tabFixed.find('.tab').removeClass('fixed');
|
|
|
}
|
|
|
// if ($scrollTop >= this.fixTop) {
|
|
|
// this.selector.$tabFixed.find('.tab').addClass('fixed');
|
|
|
// } else {
|
|
|
// this.selector.$tabFixed.find('.tab').removeClass('fixed');
|
|
|
// }
|
|
|
|
|
|
$(window).scroll(() => {
|
|
|
window.requestAnimationFrame(this.scrollHandler.bind(this));
|
...
|
...
|
@@ -114,6 +114,17 @@ class IconMall extends Page { |
|
|
this.selector.$tabItem.on('click', this.tabItem.bind(this));
|
|
|
this.selector.$acquiringHelp.on('click', this.openHelp.bind(this));
|
|
|
this.selector.$detail.on('click', this.openDetail.bind(this));
|
|
|
$(window).on('scroll touchmove touchstart touchend', this.move.bind(this));
|
|
|
}
|
|
|
|
|
|
move() {
|
|
|
let $scrollTop = $(window).scrollTop();
|
|
|
|
|
|
if ($scrollTop >= this.fixTop) {
|
|
|
this.selector.$tabFixed.find('.tab').addClass('fixed');
|
|
|
} else {
|
|
|
this.selector.$tabFixed.find('.tab').removeClass('fixed');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
defaultChosen() {
|
...
|
...
|
|