...
|
...
|
@@ -35,13 +35,13 @@ $countrySelect.change(function() { |
|
|
|
|
|
$btnNext.on('touchstart', function() {
|
|
|
var pn = trim($phoneNum.val()),
|
|
|
area = $countrySelect.val();
|
|
|
area = trim($countrySelect.val());
|
|
|
|
|
|
if ($btnNext.hasClass('disable')) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (api.phoneRegx[area].test(pn)) {
|
|
|
if (area && pn && api.phoneRegx[area].test(pn)) {
|
|
|
$.ajax({
|
|
|
url: '/passport/back/sendcode',
|
|
|
type: 'POST',
|
...
|
...
|
@@ -57,6 +57,8 @@ $btnNext.on('touchstart', function() { |
|
|
}
|
|
|
}
|
|
|
});
|
|
|
} else if (!area) {
|
|
|
showErrTip('出错了,请重新刷新页面');
|
|
|
} else {
|
|
|
showErrTip('手机号格式不正确,请重新输入');
|
|
|
}
|
...
|
...
|
|