提交 1f385396 authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 0bd7341e
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
title="支付方式" title="支付方式"
confirm-button-text="去支付" confirm-button-text="去支付"
show-cancel-button show-cancel-button
@confirm="pay" @confirm="pay">
>
<div class="pay-method"> <div class="pay-method">
<!-- 扫码支付方式 --> <!-- 扫码支付方式 -->
<van-radio-group v-model="params.payment_method" v-if="isQrPay"> <van-radio-group v-model="params.payment_method" v-if="isQrPay">
...@@ -26,8 +25,7 @@ ...@@ -26,8 +25,7 @@
:title="qrPayTitle" :title="qrPayTitle"
confirm-button-text="支付完成" confirm-button-text="支付完成"
show-cancel-button show-cancel-button
@confirm="payCallback" @confirm="payCallback">
>
<div class="qr-pay"> <div class="qr-pay">
<qrcode-vue :value="order.payment_url" :size="240" /> <qrcode-vue :value="order.payment_url" :size="240" />
</div> </div>
...@@ -87,6 +85,8 @@ export default { ...@@ -87,6 +85,8 @@ export default {
pay() { pay() {
this.createOrder(this.params).then(order => { this.createOrder(this.params).then(order => {
this.order = order this.order = order
const { callback } = this.buyOptions
callback && callback(order)
if (this.isQrPay) { if (this.isQrPay) {
this.qrPayVisible = true this.qrPayVisible = true
} else if (this.isWechat) { } else if (this.isWechat) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论