This commit is contained in:
@@ -160,13 +160,27 @@
|
|||||||
@closed="handleQrDialogClosed"
|
@closed="handleQrDialogClosed"
|
||||||
>
|
>
|
||||||
<div class="online-recharge-qr-dialog">
|
<div class="online-recharge-qr-dialog">
|
||||||
<QrcodeVue
|
<template v-if="qrContent">
|
||||||
v-if="qrContent"
|
<div class="online-recharge-qr-dialog__code-surface">
|
||||||
:value="qrContent"
|
<QrcodeVue
|
||||||
:size="240"
|
:value="qrContent"
|
||||||
level="H"
|
:size="240"
|
||||||
render-as="canvas"
|
level="H"
|
||||||
/>
|
background="#FFFFFF"
|
||||||
|
foreground="#000000"
|
||||||
|
render-as="canvas"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<ElTag
|
||||||
|
v-if="onlinePaymentMethodLabel"
|
||||||
|
class="online-recharge-qr-dialog__method"
|
||||||
|
type="primary"
|
||||||
|
effect="dark"
|
||||||
|
size="large"
|
||||||
|
>
|
||||||
|
{{ onlinePaymentMethodLabel }}扫码支付
|
||||||
|
</ElTag>
|
||||||
|
</template>
|
||||||
<ElEmpty v-else description="暂未获取到支付二维码" />
|
<ElEmpty v-else description="暂未获取到支付二维码" />
|
||||||
<div v-if="onlineQrRecharge" class="online-recharge-qr-dialog__summary">
|
<div v-if="onlineQrRecharge" class="online-recharge-qr-dialog__summary">
|
||||||
<div>充值单号:{{ onlineQrRecharge.recharge_no || '-' }}</div>
|
<div>充值单号:{{ onlineQrRecharge.recharge_no || '-' }}</div>
|
||||||
@@ -552,9 +566,15 @@
|
|||||||
paymentMethodsLoading.value ||
|
paymentMethodsLoading.value ||
|
||||||
(createMode.value === 'online' && onlinePaymentMethods.value.length === 0)
|
(createMode.value === 'online' && onlinePaymentMethods.value.length === 0)
|
||||||
)
|
)
|
||||||
|
const onlinePaymentMethodLabel = computed(() => {
|
||||||
|
const method = onlineQrRecharge.value?.payment_method
|
||||||
|
if (method === 'wechat') return '微信支付'
|
||||||
|
if (method === 'alipay') return '支付宝'
|
||||||
|
return ''
|
||||||
|
})
|
||||||
const onlinePaymentStatusMessage = computed(() => {
|
const onlinePaymentStatusMessage = computed(() => {
|
||||||
const status = onlinePaymentStatus.value?.status ?? onlineQrRecharge.value?.status
|
const status = onlinePaymentStatus.value?.status ?? onlineQrRecharge.value?.status
|
||||||
if (status === 1) return '请使用对应支付方式扫码完成支付'
|
if (status === 1) return `请使用${onlinePaymentMethodLabel.value || '对应支付方式'}扫码完成支付`
|
||||||
if (status === 2) return '支付已成功,钱包正在入账,请稍候'
|
if (status === 2) return '支付已成功,钱包正在入账,请稍候'
|
||||||
if (status === 3) return '充值成功,钱包已到账'
|
if (status === 3) return '充值成功,钱包已到账'
|
||||||
if (status === 4) return '充值订单已关闭,请重新发起充值'
|
if (status === 4) return '充值订单已关闭,请重新发起充值'
|
||||||
@@ -1357,6 +1377,17 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
|
|
||||||
|
&__code-surface {
|
||||||
|
display: flex;
|
||||||
|
padding: 20px;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__method {
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
&__summary {
|
&__summary {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
Reference in New Issue
Block a user