Commit 48dc5041 authored by tyyin lan's avatar tyyin lan

chore: 礼包充值付款二维码未能加载

parent 36405c96
...@@ -37,7 +37,7 @@ const payInfo = ref({ ...@@ -37,7 +37,7 @@ const payInfo = ref({
payOrderSn: '', payOrderSn: '',
}) })
const isPayQrcodeInvalid = ref(false) const isPayQrcodeInvalid = ref(false)
const payStatusTimer = ref<NodeJS.Timeout | null>(null) let payStatusTimer: NodeJS.Timeout | null = null
const isShowPayQrCode = computed(() => { const isShowPayQrCode = computed(() => {
return !!( return !!(
...@@ -175,15 +175,15 @@ function getPayStatus() { ...@@ -175,15 +175,15 @@ function getPayStatus() {
}) })
} }
payStatusTimer.value = setInterval(() => { payStatusTimer = setInterval(() => {
request() request()
}, 1000) }, 1000)
} }
function clearPayStatusTimer() { function clearPayStatusTimer() {
if (payStatusTimer.value) { if (payStatusTimer) {
clearInterval(payStatusTimer.value) clearInterval(payStatusTimer)
payStatusTimer.value = null payStatusTimer = null
} }
} }
......
...@@ -41,7 +41,7 @@ const payInfo = ref({ ...@@ -41,7 +41,7 @@ const payInfo = ref({
payOrderSn: '', payOrderSn: '',
}) })
const isPayQrcodeInvalid = ref(false) const isPayQrcodeInvalid = ref(false)
const payStatusTimer = ref<NodeJS.Timeout | null>(null) let payStatusTimer: NodeJS.Timeout | null = null
const currentPayPrice = ref(0) const currentPayPrice = ref(0)
watch(isShowPointRechargeModal, (newVal) => { watch(isShowPointRechargeModal, (newVal) => {
...@@ -168,13 +168,13 @@ function getPayStatus() { ...@@ -168,13 +168,13 @@ function getPayStatus() {
const timerId = setInterval(() => { const timerId = setInterval(() => {
if (!payInfo.value.payOrderSn) { if (!payInfo.value.payOrderSn) {
clearInterval(timerId) clearInterval(timerId)
payStatusTimer.value = null payStatusTimer = null
return return
} }
request() request()
}, 1000) }, 1000)
payStatusTimer.value = timerId payStatusTimer = timerId
} }
function handlePaymentMethodSwitch(method: 'alipay' | 'wechatpay') { function handlePaymentMethodSwitch(method: 'alipay' | 'wechatpay') {
...@@ -200,9 +200,9 @@ function clearPayInfo() { ...@@ -200,9 +200,9 @@ function clearPayInfo() {
} }
function clearPayStatusTimer() { function clearPayStatusTimer() {
if (payStatusTimer.value !== null) { if (payStatusTimer !== null) {
clearInterval(payStatusTimer.value) clearInterval(payStatusTimer)
payStatusTimer.value = null payStatusTimer = null
} }
} }
......
...@@ -71,7 +71,9 @@ function handlePointRecharge() { ...@@ -71,7 +71,9 @@ function handlePointRecharge() {
</div> </div>
</div> </div>
<div class="ml-[58px] mt-[4px] flex items-end"> <div class="ml-[58px] mt-[4px] flex items-end">
<div class="font-600 text-[24px]"><n-number-animation :from="0" :to="equityInfo.points" /></div> <div class="font-600 text-[24px]">
<n-number-animation :from="0" :to="equityInfo.points" :precision="2" />
</div>
<span class="font-600 mb-[3px] ml-[7px] text-[14px]">{{ t('equity_module.points') }}</span> <span class="font-600 mb-[3px] ml-[7px] text-[14px]">{{ t('equity_module.points') }}</span>
</div> </div>
</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