...
|
...
|
@@ -43,6 +43,11 @@ var validateForm = function() { |
|
|
return ret;
|
|
|
};
|
|
|
|
|
|
const clearVerifyCode = function() {
|
|
|
formModel.snsCheckCode = '';
|
|
|
$('#sns-check-code').val('');
|
|
|
};
|
|
|
|
|
|
var debounceFn = debounce(function(cardNo) {
|
|
|
// 获取银行信息
|
|
|
$.get('/home/installment/bank-info', {cardNo: cardNo}).then(function(result) {
|
...
|
...
|
@@ -183,6 +188,7 @@ setInterval(function() { |
|
|
validateForm();
|
|
|
}, 500);
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 表单提交
|
|
|
*/
|
...
|
...
|
@@ -208,9 +214,13 @@ $('#apply-button').click(function() { |
|
|
if (result.data.resultMsgType === '1') {
|
|
|
tip.show(result.data.resultMsg);
|
|
|
}
|
|
|
|
|
|
clearVerifyCode();
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
tip.show(result.message);
|
|
|
clearVerifyCode();
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
|