Authored by shuaiguo

feat(电子刊): 去掉验证码&样式修改

... ... @@ -168,7 +168,7 @@ router.get('/passport/sms_login',
login.common.wechatQuickLoginCheck,
validateCode.load,
smsLogin.smsLoginPage); // 短信验证码登录
router.post('/passport/sms_login/step1_check', validateCode.check, smsLogin.indexCheck);
router.post('/passport/sms_login/step1_check', smsLogin.indexCheck);
router.get('/passport/sms_login/step1_check', (req, res, next) => {
if (!req.query.callback) {
return res.json({code: 400});
... ...
{
"name": "yohobuywap-node",
"version": "6.13.7",
"version": "6.13.8",
"private": true,
"description": "A New Yohobuy Project With Express",
"repository": {
... ...
... ... @@ -219,30 +219,31 @@ class SmsLoginNew extends Page {
return;
}
validate.getResults().then(result => {
// validate.getResults().then(result => {
let params = {
area: areaCode.replace('+', ''),
mobile: phone
};
$.extend(params, result);
// $.extend(params, result);
this.ajax({
method: 'POST',
url: '/passport/sms_login/step1_check',
data: params
}).then(data => {
validate.type === 2 && validate.refresh();
// validate.type === 2 && validate.refresh();
if (data.code === 200) {
checkPoint('YB_MOBILE_NEXT_C'); // 埋点
this.countDown();
} else {
(data.changeCaptcha && validate.type !== 2) && validate.refresh();
// (data.changeCaptcha && validate.type !== 2) && validate.refresh();
tip.show(data.message);
}
}).catch(() => {
validate.refresh();
// validate.refresh();
});
});
// });
}
/**
... ...
... ... @@ -35,15 +35,13 @@ body {
}
.swiper-slide {
display: flex;
// align-items: center;
justify-content: center;
position: relative;
box-sizing: border-box;
// padding-bottom: 134px;
// display: flex;
// // align-items: center;
// justify-content: center;
// position: relative;
// box-sizing: border-box;
// // padding-bottom: 134px;
overflow: hidden;
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
.filter-bg {
filter: blur(20px);
... ...