Commit 26beecc8 authored by nick zheng's avatar nick zheng

Merge branch 'master' of https://gitlab.gsstcloud.com/poc/poc-fe into beta

parents dc07bfe7 1241e2db
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
"spark-md5": "^3.0.2", "spark-md5": "^3.0.2",
"type-fest": "^4.26.1", "type-fest": "^4.26.1",
"validator": "^13.12.0", "validator": "^13.12.0",
"vue": "^3.5.12", "vue": "^3.5.13",
"vue-i18n": "^9.14.0", "vue-i18n": "^9.14.0",
"vue-router": "^4.4.5" "vue-router": "^4.4.5"
}, },
......
This diff is collapsed.
<script setup lang="ts"> <script setup lang="ts">
import { fetchCreateEquityOrder, fetchGetEquityPayQrCode, fetchGetPayStatus } from '@/apis/equity' import { fetchCreateEquityOrder, fetchGetEquityPayQrCode, fetchGetPayStatus } from '@/apis/equity'
import { useUserStore } from '@/store/modules/user' import { useUserStore } from '@/store/modules/user'
import { computed, onMounted, ref, watch, watchEffect } from 'vue' import { computed, onMounted, ref, watch } from 'vue'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
type VersionName = 'BasicVersion' | 'ProfessionalVersion' | 'FlagshipVersion' | 'EnterpriseVersion' | null type VersionName = 'BasicVersion' | 'ProfessionalVersion' | 'FlagshipVersion' | 'EnterpriseVersion' | null
...@@ -70,11 +70,15 @@ watch(currentPackageInfo, (info) => { ...@@ -70,11 +70,15 @@ watch(currentPackageInfo, (info) => {
} }
}) })
watchEffect(() => { watch(
if (isShowPayQrCode.value) { isShowPayQrCode,
getEquityPayQrCode() (newVal) => {
} if (newVal) {
}) getEquityPayQrCode()
}
},
{ immediate: true },
)
onMounted(() => { onMounted(() => {
if (currentPackageInfo.value) { if (currentPackageInfo.value) {
...@@ -185,7 +189,7 @@ function getPayStatus() { ...@@ -185,7 +189,7 @@ function getPayStatus() {
} }
function clearPayStatusTimer() { function clearPayStatusTimer() {
if (payStatusTimer) { if (payStatusTimer !== null) {
clearInterval(payStatusTimer) clearInterval(payStatusTimer)
payStatusTimer = null payStatusTimer = null
} }
...@@ -204,6 +208,10 @@ function handlePackageSwitch(packageKey: typeof currentSelectPackage.value, pric ...@@ -204,6 +208,10 @@ function handlePackageSwitch(packageKey: typeof currentSelectPackage.value, pric
getEquityPayQrCode() getEquityPayQrCode()
} }
function handlePayQrCodeRefresh() {
getEquityPayQrCode()
}
</script> </script>
<template> <template>
...@@ -305,7 +313,10 @@ function handlePackageSwitch(packageKey: typeof currentSelectPackage.value, pric ...@@ -305,7 +313,10 @@ function handlePackageSwitch(packageKey: typeof currentSelectPackage.value, pric
<div v-show="isPayQrcodeInvalid" class="flex-center absolute inset-0 flex"> <div v-show="isPayQrcodeInvalid" class="flex-center absolute inset-0 flex">
<div class="absolute inset-0 bg-[rgba(0,0,0,0.6)] blur-sm"></div> <div class="absolute inset-0 bg-[rgba(0,0,0,0.6)] blur-sm"></div>
<i class="iconfont icon-huanyihuan font-600 z-1 relative text-[30px] text-[#fff]"></i> <i
class="iconfont icon-huanyihuan font-600 z-1 relative cursor-pointer text-[30px] text-[#fff]"
@click="handlePayQrCodeRefresh"
></i>
</div> </div>
</Transition> </Transition>
</div> </div>
......
...@@ -213,6 +213,10 @@ function onModalAfterLeave() { ...@@ -213,6 +213,10 @@ function onModalAfterLeave() {
clearPayStatusTimer() clearPayStatusTimer()
clearPayInfo() clearPayInfo()
} }
function handlePayQrCodeRefresh() {
getEquityPayQrCode()
}
</script> </script>
<template> <template>
...@@ -319,7 +323,10 @@ function onModalAfterLeave() { ...@@ -319,7 +323,10 @@ function onModalAfterLeave() {
<div v-show="isPayQrcodeInvalid" class="flex-center absolute inset-0 flex"> <div v-show="isPayQrcodeInvalid" class="flex-center absolute inset-0 flex">
<div class="absolute inset-0 bg-[rgba(0,0,0,0.6)] blur-sm"></div> <div class="absolute inset-0 bg-[rgba(0,0,0,0.6)] blur-sm"></div>
<i class="iconfont icon-huanyihuan font-600 z-1 relative text-[30px] text-[#fff]"></i> <i
class="iconfont icon-huanyihuan font-600 z-1 relative cursor-pointer text-[30px] text-[#fff]"
@click="handlePayQrCodeRefresh"
></i>
</div> </div>
</Transition> </Transition>
</div> </div>
......
...@@ -78,12 +78,11 @@ function handlePointRecharge() { ...@@ -78,12 +78,11 @@ function handlePointRecharge() {
</div> </div>
</div> </div>
<div <div class="flex select-none items-center justify-end text-[15px] text-[#0B7DFF]">
class="flex cursor-pointer select-none items-center justify-end text-[15px] text-[#0B7DFF]" <span class="cursor-pointer" @click="handlePointRecharge">
@click="handlePointRecharge" <span>{{ t('equity_module.top_up_immediately') }}</span>
> <i class="iconfont icon-left ml-[2px] inline-block rotate-180 text-[12px]"></i>
<span>{{ t('equity_module.top_up_immediately') }}</span> </span>
<i class="iconfont icon-left ml-[2px] inline-block rotate-180 text-[12px]"></i>
</div> </div>
</section> </section>
<section <section
......
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