优化代码

This commit is contained in:
java110 2020-11-09 12:03:43 +08:00
parent cce55de190
commit 6eac085f2e
2 changed files with 8 additions and 8 deletions

View File

@ -87,7 +87,7 @@
<label class="col-sm-3 col-form-label"
style="line-height: 50px;padding-right:0px;">应收款:</label>
<label class="col-sm-8 col-form-label"
style="font-size: 30px;color: red;padding-left:0px;">¥{{_mathCeil(payFeeOrderInfo.totalFeePrice)}}</label>
style="font-size: 30px;color: red;padding-left:0px;">¥{{payFeeOrderInfo.totalFeePrice}}</label>
</div>
<div class="row form-group">
<label class="col-sm-3 col-form-label" style="padding-right:0px;">支付方式:</label>
@ -153,7 +153,7 @@
</div>
<div class="row" >
<label class="col-sm-3 col-form-label">应收金额:</label>
<label class="col-sm-8 col-form-label">{{_mathCeil(payFeeOrderInfo.totalFeePrice)}}</label>
<label class="col-sm-8 col-form-label">{{payFeeOrderInfo.totalFeePrice}}</label>
</div>
<div class="row" >
<label class="col-sm-3 col-form-label">实收金额:</label>

View File

@ -49,8 +49,8 @@
}
};
vc.component.payFeeOrderInfo.totalFeePrice = vc.component.payFeeOrderInfo.feePrice;
vc.component.payFeeOrderInfo.receivedAmount = $that._mathCeil(vc.component.payFeeOrderInfo.totalFeePrice);
vc.component.payFeeOrderInfo.totalFeePrice = $that._mathCeil(vc.component.payFeeOrderInfo.feePrice);
vc.component.payFeeOrderInfo.receivedAmount = vc.component.payFeeOrderInfo.totalFeePrice;
@ -176,15 +176,15 @@
if (_cycles == '') {
_newCycles = $that.payFeeOrderInfo.paymentCycles[0];
}
vc.component.payFeeOrderInfo.totalFeePrice = Math.floor(parseFloat(_newCycles) * parseFloat(vc.component.payFeeOrderInfo.feePrice) * 100) / 100;
vc.component.payFeeOrderInfo.receivedAmount = $that._mathCeil(vc.component.payFeeOrderInfo.totalFeePrice);
vc.component.payFeeOrderInfo.totalFeePrice = $that._mathCeil(Math.floor(parseFloat(_newCycles) * parseFloat(vc.component.payFeeOrderInfo.feePrice) * 100) / 100);
vc.component.payFeeOrderInfo.receivedAmount = vc.component.payFeeOrderInfo.totalFeePrice;
},
changeCycle: function (_cycles) {
if (_cycles == '') {
return;
}
vc.component.payFeeOrderInfo.totalFeePrice = Math.floor(parseFloat(_cycles) * parseFloat(vc.component.payFeeOrderInfo.feePrice) * 100) / 100;
vc.component.payFeeOrderInfo.receivedAmount = $that._mathCeil(vc.component.payFeeOrderInfo.totalFeePrice);
vc.component.payFeeOrderInfo.totalFeePrice = $that._mathCeil(Math.floor(parseFloat(_cycles) * parseFloat(vc.component.payFeeOrderInfo.feePrice) * 100) / 100);
vc.component.payFeeOrderInfo.receivedAmount = vc.component.payFeeOrderInfo.totalFeePrice;
},
_back: function () {
$('#payFeeResult').modal("hide");