...
|
...
|
@@ -19,6 +19,18 @@ var api = require('../api'), |
|
|
var trim = $.trim;
|
|
|
var showErrTip = tip.show;
|
|
|
|
|
|
function nextStep(url,mobileNo, areaCode) {
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: '/passport/bind/sendBindMsg',
|
|
|
data: {
|
|
|
phoneNum: mobileNo,
|
|
|
areaCode: areaCode
|
|
|
}
|
|
|
});
|
|
|
location.href = url;
|
|
|
}
|
|
|
|
|
|
api.selectCssHack($('#country-select'));
|
|
|
|
|
|
api.bindClearEvt();
|
...
|
...
|
@@ -77,10 +89,10 @@ $btnNext.on('touchstart', function() { |
|
|
rightBtnText: '继续绑定'
|
|
|
}
|
|
|
}, function() {
|
|
|
location.href = res.data.next;
|
|
|
nextStep(res.data.next, pn, areaCode);
|
|
|
});
|
|
|
} else {
|
|
|
location.href = res.data.next;
|
|
|
nextStep(res.data.next, pn, areaCode);
|
|
|
}
|
|
|
} else {
|
|
|
showErrTip(res.message);
|
...
|
...
|
|