支付时四舍五入金额

This commit is contained in:
曹磊 2024-08-19 14:24:04 +08:00
parent bcca3fc677
commit e431980fee
2 changed files with 4 additions and 3 deletions

View File

@ -531,7 +531,7 @@
取消订单
</u-button>
<u-button :custom-style="customStyle2"
v-if="order.packageType=='104'||order.packageType=='105'||order.packageType=='106'||item.packageType=='111'||item.packageType=='112'"
v-if="order.packageType=='104'||order.packageType=='105'||order.packageType=='106'||order.packageType=='111'||order.packageType=='112'"
shape="circle" :plain="true"
@click="goNav('/my/order/payModifyDd?ordersId='+order.ordersId,order)"
class="btns">
@ -1329,6 +1329,7 @@ export default {
this.loading = false
uni.hideLoading()
this.order = res.data;
console.log(this.order);
if(res.data["technicianType"] == 3){
this.order["technicianTypeName"] = "资深"
}

View File

@ -381,8 +381,8 @@
// this.getOrder()
if(this.jishiName){
this.getMsTime(Time);
this.technicianRate=Math.ceil(this.orderXm.price+(this.orderXm.price*(this.jishiName.technicianTypeRate/100)))
console.log("jishiName",this.jishiName)
// this.technicianRate=Math.ceil(this.orderXm.price+(this.orderXm.price*(this.jishiName.technicianTypeRate/100)))
this.technicianRate=((this.orderXm.price*this.number)+this.orderXm.price*this.number*(this.jishiName.technicianTypeRate/100)).toFixed(2)
}
},