...
|
...
|
@@ -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,7 +63,12 @@ $btnNext.on('touchstart', function() { |
|
|
location.href = data.data;
|
|
|
} else {
|
|
|
showErrTip(data.message);
|
|
|
requested = false;
|
|
|
}
|
|
|
},
|
|
|
error: function(err) {
|
|
|
showErrTip('出错了,请重试');
|
|
|
requested = false;
|
|
|
}
|
|
|
});
|
|
|
} else {
|
...
|
...
|
|