优化一次性缴费失败问题

This commit is contained in:
java110 2020-12-29 19:10:09 +08:00
parent 7a442540c4
commit fd8f67258e
2 changed files with 8 additions and 6 deletions

View File

@ -56,8 +56,8 @@
var value = $(".carCreateFeeStartTime").val();
vc.component.carCreateFeeAddInfo.startTime = value;
});
//防止多次点击时间插件失去焦点
document.getElementsByClassName('form-control carCreateFeeStartTime')[0].addEventListener('click', myfunc)
//防止多次点击时间插件失去焦点,这里报错先取消
//document.getElementsByClassName('form-control carCreateFeeStartTime')[0].addEventListener('click', myfunc)
function myfunc(e) {
e.currentTarget.blur();

View File

@ -136,14 +136,16 @@
if ($that.payFeeOrderInfo.tempCycles != "" && $that.payFeeOrderInfo.tempCycles != '-102') {
$that.payFeeOrderInfo.cycles = $that.payFeeOrderInfo.tempCycles;
}
if ($that.payFeeOrderInfo.feeFlag == '2006012') {
$that.payFeeOrderInfo.cycles = '1';
$that.payFeeOrderInfo.tempCycles = '1';
}
// 新增缴费周期必选项
if($that.payFeeOrderInfo.tempCycles == ""){
if($that.payFeeOrderInfo.tempCycles == "" ){
vc.toast("请选择缴费周期");
return;
}
if ($that.payFeeOrderInfo.feeFlag == '2006012') {
$that.payFeeOrderInfo.cycles = '1';
}
if (!vc.component.payFeeValidate()) {
vc.toast(vc.validate.errInfo);
return;