优化代码

This commit is contained in:
java110 2021-11-22 18:38:19 +08:00
parent f4f9a1251b
commit 14dafc0bc4
2 changed files with 5 additions and 10 deletions

View File

@ -206,14 +206,9 @@
<label class="col-sm-3 col-form-label">备注:</label>
<label class="col-sm-8 col-form-label">{{payFeeOrderInfo.remark}}</label>
</div>
<div class="row" v-if="payFeeOrderInfo.payType == 'qrCode'">
<label class="col-sm-3 col-form-label">扫码:</label>
<div class="col-sm-6">
<input v-model="payFeeOrderInfo.authCode" type="text" @keyup.enter="_qrCodePayFee" placeholder="必填,请填写缴费时间">
</div>
</div>
</div>
<div class="modal-footer">
<input v-model="payFeeOrderInfo.authCode" id="authCode" class="form-control" style="width: 60%;" v-if="payFeeOrderInfo.payType == 'qrCode'" type="text" @keyup.enter="_qrCodePayFee" placeholder="请用扫码枪扫码">
<button type="button" class="btn btn-secondary" @click="_closeDoPayFeeModal()">关闭</button>
<button type="button" class="btn btn-primary" v-if="payFeeOrderInfo.payType == 'common'" @click="_payFee()">确定收费</button>
</div>

View File

@ -179,10 +179,6 @@
* 点击 提交缴费
*/
_openPayFee: function(_type) {
if (_type) {
$that.payFeeOrderInfo.payType = _type;
}
if ($that.payFeeOrderInfo.tempCycles != "" && $that.payFeeOrderInfo.tempCycles != '-102') {
$that.payFeeOrderInfo.cycles = $that.payFeeOrderInfo.tempCycles;
}
@ -207,6 +203,10 @@
}
//关闭model
$("#doPayFeeModal").modal('show');
if (_type) {
$that.payFeeOrderInfo.payType = _type;
setTimeout('document.getElementById("authCode").focus()', 1000);
}
},
_closeDoPayFeeModal: function() {
//关闭model