Authored by 李奇

微信必填验证

... ... @@ -35,7 +35,7 @@ class HaveGainApplyPage extends Page {
this.jumpVerify();
this.selector.$nameInput.on('input', this.changeBtnStatus.bind(this));
this.selector.$mobileInput.on('input', this.changeBtnStatus.bind(this));
this.selector.$fillIn.on('click', that.tapFillIn);
this.selector.$fillIn.on('click', that.tapFillIn.bind(this));
this.selector.$agreement.on('click', that.tapAgreement);
this.selector.$applyBtn.on('click', this.apply.bind(this));
}
... ... @@ -104,6 +104,7 @@ class HaveGainApplyPage extends Page {
}
tapFillIn(event) {
let _this = this;
let $event = $(event.target);
if ($event.hasClass('disable')) {
... ... @@ -140,6 +141,7 @@ class HaveGainApplyPage extends Page {
$accountName.html(`账号:<em>${account}</em>&nbsp;&nbsp;粉丝:<em data-fans="${fans}">${fansFix}</em>`); // eslint-disable-line
dialog.hideDialog();
_this.changeBtnStatus();
$event.text('已填写').addClass('disable');
});
}
... ...