|
|
import $ from 'yoho-jquery';
|
|
|
import tip from 'plugin/tip';
|
|
|
import Modal2 from 'plugin/modal2';
|
|
|
import checkPoint from './check-point';
|
|
|
import Page from 'yoho-page';
|
|
|
import Validate from 'plugin/validata';
|
...
|
...
|
@@ -23,7 +24,8 @@ class SmsLoginNew extends Page { |
|
|
verifyCode: $('input[name=verifyCode]'),
|
|
|
smsLoginBtn: $('#smsLoginBtn'),
|
|
|
getPswrdBtn: $('#getPswrdBtn'),
|
|
|
getPasswordBox: $('.get-password-box')
|
|
|
getPasswordBox: $('.get-password-box'),
|
|
|
showYohoFamilyTip: $('#showYohoFamilyTip')
|
|
|
};
|
|
|
|
|
|
this.init();
|
...
|
...
|
@@ -46,6 +48,7 @@ class SmsLoginNew extends Page { |
|
|
this.selector.smsLoginBtn.on('click', this.login.bind(this));
|
|
|
this.selector.getPswrdBtn.on('click', this.showGetPasswordBox.bind(this));
|
|
|
this.selector.getPasswordBox.on('click', this.hiddenGetPasswordBox.bind(this));
|
|
|
this.selector.showYohoFamilyTip.on('click', this.showYohoFamilyTip.bind(this));
|
|
|
|
|
|
if ($captcha.data('geetest')) {
|
|
|
this.selector.getVerifyCodeBtn.on('click', this.getVerifyCode.bind(this));
|
...
|
...
|
@@ -56,6 +59,13 @@ class SmsLoginNew extends Page { |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 展示弹窗
|
|
|
*/
|
|
|
showYohoFamilyTip() {
|
|
|
Modal2.alert('Yoho!Family账号可登录Yoho!Buy有货、Yoho!Now、Mars及SHOW', 'Yoho!Family');
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 图片验证码初始化
|
|
|
*/
|
|
|
imgVerifyInit() {
|
...
|
...
|
|