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

chore: update

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