This commit is contained in:
魏啾 2024-10-14 14:49:03 +08:00
commit 2b6a4f9a83
1 changed files with 7 additions and 2 deletions

View File

@ -52,7 +52,7 @@
<!-- <img :src="codeImg" class="codeImg" alt="" /> -->
</div>
<div class="color-333 u-font-20 u-m-t-20">32.00</div>
<div class="color-333 u-font-20 u-m-t-20">{{price|to2}}</div>
<div class="color-aaa u-font-12 u-m-t-10">
<i class="el-icon-loading"></i>
<span>等待用户支付</span>
@ -91,6 +91,11 @@ export default {
default: "请使用扫码枪扫描付款码",
},
},
filters:{
to2(n){
return n.toFixed(2)
}
},
data() {
return {
tips: "",
@ -191,7 +196,7 @@ export default {
this.show = true;
this.form.money = Number(this.price).toFixed(2);
if (this.openSwitch) {
$getOrderPayUrl({ orderId: this.order.id }).then((res) => {
$getOrderPayUrl({ orderId: this.order.id,payAmount:this.price.toFixed(2) }).then((res) => {
console.log(res);
this.paymentQrcode = res;
});