Authored by whb

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

... ... @@ -538,18 +538,19 @@ exports.init = function(page) {
var time = 0,
t,
refer = data.href;
refer;
if (data.code === 200) {
refer = data.data.href;
t = setTimeout(function() {
time++;
}, 1000);
$.ajax({
type: 'POST',
url: '/passport/register/mobileregister',
data: {
session: data.session
}
type: 'GET',
url: data.data.session
}).then(function(data) {
if (data.code === 200 && t < 3) {
... ... @@ -562,6 +563,11 @@ exports.init = function(page) {
clearInterval(t);
location.href = refer;
}
} else {
//todo
console.log('网络超时~');
}
});
}
... ...