...
|
...
|
@@ -16,6 +16,8 @@ var tip = require('../../plugin/tip'); |
|
|
var trim = $.trim;
|
|
|
var showErrTip = tip.show;
|
|
|
|
|
|
var requested = false;
|
|
|
|
|
|
api.selectCssHack($('#country-select'));
|
|
|
|
|
|
api.bindClearEvt();
|
...
|
...
|
@@ -40,7 +42,15 @@ $btnNext.on('touchstart', function() { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (requested) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
|
|
|
if (api.phoneRegx[areaCode].test(pn)) {
|
|
|
|
|
|
requested = true;
|
|
|
|
|
|
$.ajax({
|
|
|
url: '/passport/reg/verifymobile',
|
|
|
type: 'POST',
|
...
|
...
|
@@ -53,10 +63,15 @@ $btnNext.on('touchstart', function() { |
|
|
location.href = data.data;
|
|
|
} else {
|
|
|
showErrTip(data.message);
|
|
|
requested = false;
|
|
|
}
|
|
|
},
|
|
|
error: function(err) {
|
|
|
showErrTip('出错了,请重试');
|
|
|
requested = false;
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
showErrTip('手机号格式不正确,请重新输入');
|
|
|
}
|
|
|
}); |
|
|
\ No newline at end of file |
|
|
}); |
...
|
...
|
|