修复代客下单扫码支付金额不对
This commit is contained in:
@@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
<!-- <img :src="codeImg" class="codeImg" alt="" /> -->
|
<!-- <img :src="codeImg" class="codeImg" alt="" /> -->
|
||||||
</div>
|
</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">
|
<div class="color-aaa u-font-12 u-m-t-10">
|
||||||
<i class="el-icon-loading"></i>
|
<i class="el-icon-loading"></i>
|
||||||
<span>等待用户支付</span>
|
<span>等待用户支付</span>
|
||||||
@@ -91,6 +91,11 @@ export default {
|
|||||||
default: "请使用扫码枪扫描付款码",
|
default: "请使用扫码枪扫描付款码",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
filters:{
|
||||||
|
to2(n){
|
||||||
|
return n.toFixed(2)
|
||||||
|
}
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
tips: "",
|
tips: "",
|
||||||
@@ -191,7 +196,7 @@ export default {
|
|||||||
this.show = true;
|
this.show = true;
|
||||||
this.form.money = Number(this.price).toFixed(2);
|
this.form.money = Number(this.price).toFixed(2);
|
||||||
if (this.openSwitch) {
|
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);
|
console.log(res);
|
||||||
this.paymentQrcode = res;
|
this.paymentQrcode = res;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user