Authored by Rock Zhang

Merge branch 'develop/wap' of http://git.dev.yoho.cn/web/yohobuywap into develop/wap

This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
... ... @@ -54,6 +54,29 @@ module.exports = function(useInRegister, useForBind, useForRelate) {
});
}
function startReg() {
$.ajax({
type: 'POST',
url: '/passport/' + urlMid + '/verifycode',
data: {
phoneNum: phoneNum,
areaCode: areaCode,
code: trim($captcha.val()),
token: $('#token').val()
},
success: function(data) {
if (data.code === 200) {
location.href = data.data;
} else {
//验证码不正确,显示提示
showErrTip(data.message);
}
}
});
}
function countDown() {
var count = 59,
itime;
... ... @@ -109,38 +132,11 @@ module.exports = function(useInRegister, useForBind, useForRelate) {
return;
}
startBind();
// $.ajax({
// type: 'POST',
// url: useForBind ? '/passport/bind/checkBindMsg' : '/passport/' + urlMid + '/verifycode',
// data: {
// phoneNum: phoneNum,
// areaCode: areaCode,
// code: trim($captcha.val()),
// token: $('#token').val()
// },
// success: function(data) {
// if (data.code === 200) {
// if (useForBind) {
// if (isReg) {
// startBind();
// } else {
// location.href = '/passport/bind/password?phoneNum=' +
// phoneNum + '&areaCode=' + areaCode + '&openId=' +
// openId + '&sourceType=' + sourceType + '&nickname=' + nickname;
// }
// } else {
// location.href = data.data;
// }
// } else {
//
// //验证码不正确,显示提示
// showErrTip(data.message);
// }
//
// }
// });
if (useForBind || useForRelate) {
startBind();
} else {
startReg();
}
});
countDown();
... ...
... ... @@ -5,7 +5,7 @@
width: 74PX;
height: 74PX;
margin: 60PX auto 30PX;
background: image-url("passport/success.png");
background: resolve("passport/success.png");
background-size: 100%;
}
... ...