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; });