Authored by shuaiguo

feat(注册): 移除滑块校验

... ... @@ -139,7 +139,7 @@ router.get('/passport/img-check-risk.jpg', captcha.imgCheckRisk);
* 注册
*/
router.use('/passport/reg/*', disableBFCahce);
router.post('/passport/reg/verifymobile', validateCode.check, reg.sendCodeBusyBoy, reg.verifyMobile);
router.post('/passport/reg/verifymobile', reg.sendCodeBusyBoy, reg.verifyMobile);
// 新的登录注册
const LoginNew = require('./controllers/login-new');
... ...
... ... @@ -263,29 +263,31 @@ class RegisterNew {
};
if (api.phoneRegx[areaCode].test(phoneNum) || areaCode !== '+86') {
validate.getResults().then(result => {
$.extend(params, result);
// validate.getResults().then(result => {
// $.extend(params, result);
$.ajax({
url: '/passport/reg/verifymobile',
type: 'POST',
data: params,
success: postResult => {
validate.type === 2 && validate.refresh();
// validate.type === 2 && validate.refresh();
if (postResult.code === 200) {
this.view.tokenInput.val(postResult.data.token);
// this.view.tokenInput.val(postResult.data.token);
this.countDown();
} else {
(postResult.changeCaptcha && validate.type !== 2) && validate.refresh();
// (postResult.changeCaptcha && validate.type !== 2) && validate.refresh();
showErrTip(postResult.message);
}
},
error: () => {
showErrTip('出错了,请重试');
validate.refresh();
// validate.refresh();
}
});
});
// });
} else {
showErrTip('手机号输入有错误');
}
... ...