diff --git a/public/components/property/carCreateFeeAdd/carCreateFeeAdd.js b/public/components/property/carCreateFeeAdd/carCreateFeeAdd.js index a74d9c16c..43a4c53f6 100644 --- a/public/components/property/carCreateFeeAdd/carCreateFeeAdd.js +++ b/public/components/property/carCreateFeeAdd/carCreateFeeAdd.js @@ -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(); diff --git a/public/pages/property/payFeeOrder/payFeeOrder.js b/public/pages/property/payFeeOrder/payFeeOrder.js index 3372aa02d..36cda3a52 100644 --- a/public/pages/property/payFeeOrder/payFeeOrder.js +++ b/public/pages/property/payFeeOrder/payFeeOrder.js @@ -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;