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

bug fixes

上级 75bf8e4e
<template>
<div class="pay">
<!-- 微信 -->
<div class="qr-pay" v-if="payment === '1'">
<div class="qr-pay" v-if="payment === '2'">
<qrcode-vue :value="qrcodeValue" size="200"></qrcode-vue>
<p class="tips">微信扫一扫支付</p>
</div>
<!-- 支付宝 -->
<div class="qr-pay" v-else-if="payment === '2'">
<div class="qr-pay" v-else-if="payment === '1'">
<qrcode-vue :value="qrcodeValue" size="200"></qrcode-vue>
<p class="tips">支付宝扫一扫支付</p>
</div>
......@@ -83,10 +83,10 @@ export default {
}
},
mounted() {
if (this.payment === '1') {
if (this.payment === '2') {
// 微信支付
this.createWxPayOrder(this.productId, this.num).then(this.setTimer)
} else if (this.payment === '2') {
} else if (this.payment === '1') {
// 支付宝支付
this.createAliPayOrder(this.productId, this.num).then(this.setTimer)
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论