Authored by Aiden Xu

分期订单

... ... @@ -35,13 +35,13 @@
<div class="field">
<label for="name">手机号:</label>
<input id="name" name="mobile" type="text" placeholder="银行预留手机号码" maxlength="11"/>
<input id="mobile" name="mobile" type="text" placeholder="银行预留手机号码" maxlength="11"/>
<div class="clearfix"></div>
</div>
<div class="field">
<label for="name">验证码:</label>
<input id="name" name="snsCheckCode" type="text" placeholder="请输入验证码" size="14" maxlength="6"/>
<input id="sns-check-code" name="snsCheckCode" type="text" placeholder="请输入验证码" size="14" maxlength="6"/>
<button id="send-sms" class="count-down">获取验证码</button>
<div class="clearfix"></div>
</div>
... ...
... ... @@ -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();
}
});
... ...