...
|
...
|
@@ -4,11 +4,13 @@ import { |
|
|
|
|
|
class IndexView extends View {
|
|
|
constructor() {
|
|
|
super('.top-banner');
|
|
|
super('.free-mail-index-page');
|
|
|
|
|
|
this.receiveBtn = $('.receive-btn');
|
|
|
this.tipClose = $('.close');
|
|
|
|
|
|
this.on('touchend touchcancel', 'span', this.btnClick.bind(this));
|
|
|
this.on('touchend touchcancel', '.receive-btn', this.btnClick.bind(this));
|
|
|
this.on('touchend touchcancel', '.close', this.tipClickHide.bind(this));
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -23,11 +25,15 @@ class IndexView extends View { |
|
|
*/
|
|
|
popHide() {
|
|
|
setTimeout(function() {
|
|
|
if ($('.pop-up').css('display') === 'block') {
|
|
|
$('.pop-up').hide();
|
|
|
if ($('.tip-up').css('display') === 'block') {
|
|
|
$('.tip-up').hide();
|
|
|
}
|
|
|
}, 2000);
|
|
|
}
|
|
|
|
|
|
tipClickHide() {
|
|
|
$('.tip-up').hide();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
module.exports = {
|
...
|
...
|
|