Commit 57d647cd authored by tyyin lan's avatar tyyin lan

chore(个人充值): 支付宝二维码支付调整

parent 4afb6b26
...@@ -296,7 +296,8 @@ function handlePayQrCodeRefresh() { ...@@ -296,7 +296,8 @@ function handlePayQrCodeRefresh() {
</div> </div>
<div class="mt-[26px] flex justify-center"> <div class="mt-[26px] flex justify-center">
<div v-if="payInfo.url" class="relative"> <template v-if="payInfo.url">
<div v-if="currentPaymentMethod === 'wechatpay'" class="relative">
<n-qr-code <n-qr-code
class="align-bottom" class="align-bottom"
:class="isPayQrcodeInvalid ? 'blur-sm' : ''" :class="isPayQrcodeInvalid ? 'blur-sm' : ''"
...@@ -325,6 +326,18 @@ function handlePayQrCodeRefresh() { ...@@ -325,6 +326,18 @@ function handlePayQrCodeRefresh() {
</div> </div>
</Transition> </Transition>
</div> </div>
<div v-else-if="currentPaymentMethod === 'alipay'" class="flex-center flex">
<iframe
:src="payInfo.url"
frameborder="0"
width="140"
height="140"
class="object-center"
scrolling="no"
></iframe>
</div>
</template>
<div v-else class="flex-center flex h-[140px] w-[140px]"> <div v-else class="flex-center flex h-[140px] w-[140px]">
<n-spin size="large" /> <n-spin size="large" />
</div> </div>
......
...@@ -308,7 +308,8 @@ function handlePayQrCodeRefresh() { ...@@ -308,7 +308,8 @@ function handlePayQrCodeRefresh() {
</ul> </ul>
</div> </div>
<div class="mt-[26px] flex justify-center"> <div class="mt-[26px] flex justify-center">
<div v-if="payInfo.url" class="relative"> <template v-if="payInfo.url">
<div v-if="currentPaymentMethod === 'wechatpay'" class="relative">
<n-qr-code <n-qr-code
class="align-bottom" class="align-bottom"
:class="isPayQrcodeInvalid ? 'blur-sm' : ''" :class="isPayQrcodeInvalid ? 'blur-sm' : ''"
...@@ -337,6 +338,17 @@ function handlePayQrCodeRefresh() { ...@@ -337,6 +338,17 @@ function handlePayQrCodeRefresh() {
</div> </div>
</Transition> </Transition>
</div> </div>
<div v-else-if="currentPaymentMethod === 'alipay'" class="flex-center flex">
<iframe
:src="payInfo.url"
frameborder="0"
width="140"
height="140"
class="object-center"
scrolling="no"
></iframe>
</div>
</template>
<div v-else class="flex-center flex h-[140px] w-[140px]"> <div v-else class="flex-center flex h-[140px] w-[140px]">
<n-spin size="large" /> <n-spin size="large" />
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment