From 2c7042e6e2d8baa0cde9153b614cb02b9c37a7ec Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Sat, 12 Oct 2024 15:53:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=A3=E5=AE=A2=E4=B8=8B?= =?UTF-8?q?=E5=8D=95=E6=89=AB=E7=A0=81=E6=94=AF=E4=BB=98=E9=87=91=E9=A2=9D?= =?UTF-8?q?=E4=B8=8D=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/tool/Instead/components/scan-pay.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/tool/Instead/components/scan-pay.vue b/src/views/tool/Instead/components/scan-pay.vue index b2f2de8..60830a0 100644 --- a/src/views/tool/Instead/components/scan-pay.vue +++ b/src/views/tool/Instead/components/scan-pay.vue @@ -52,7 +52,7 @@ -
32.00元
+
{{price|to2}}元
等待用户支付 @@ -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; });