Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-fe
Commits
26beecc8
Commit
26beecc8
authored
Dec 17, 2024
by
nick zheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.gsstcloud.com/poc/poc-fe
into beta
parents
dc07bfe7
1241e2db
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
277 additions
and
221 deletions
+277
-221
package.json
package.json
+1
-1
pnpm-lock.yaml
pnpm-lock.yaml
+244
-205
pay-sidebar.vue
src/views/equity/components/pay-sidebar.vue
+19
-8
point-recharge-modal.vue
src/views/equity/components/point-recharge-modal.vue
+8
-1
equity.vue
src/views/equity/equity.vue
+5
-6
No files found.
package.json
View file @
26beecc8
...
...
@@ -40,7 +40,7 @@
"
spark-md5
"
:
"^3.0.2"
,
"
type-fest
"
:
"^4.26.1"
,
"
validator
"
:
"^13.12.0"
,
"
vue
"
:
"^3.5.1
2
"
,
"
vue
"
:
"^3.5.1
3
"
,
"
vue-i18n
"
:
"^9.14.0"
,
"
vue-router
"
:
"^4.4.5"
},
...
...
pnpm-lock.yaml
View file @
26beecc8
This diff is collapsed.
Click to expand it.
src/views/equity/components/pay-sidebar.vue
View file @
26beecc8
<
script
setup
lang=
"ts"
>
import
{
fetchCreateEquityOrder
,
fetchGetEquityPayQrCode
,
fetchGetPayStatus
}
from
'@/apis/equity'
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'
type
VersionName
=
'BasicVersion'
|
'ProfessionalVersion'
|
'FlagshipVersion'
|
'EnterpriseVersion'
|
null
...
...
@@ -70,11 +70,15 @@ watch(currentPackageInfo, (info) => {
}
})
watchEffect
(()
=>
{
if
(
isShowPayQrCode
.
value
)
{
watch
(
isShowPayQrCode
,
(
newVal
)
=>
{
if
(
newVal
)
{
getEquityPayQrCode
()
}
})
},
{
immediate
:
true
},
)
onMounted
(()
=>
{
if
(
currentPackageInfo
.
value
)
{
...
...
@@ -185,7 +189,7 @@ function getPayStatus() {
}
function
clearPayStatusTimer
()
{
if
(
payStatusTimer
)
{
if
(
payStatusTimer
!==
null
)
{
clearInterval
(
payStatusTimer
)
payStatusTimer
=
null
}
...
...
@@ -204,6 +208,10 @@ function handlePackageSwitch(packageKey: typeof currentSelectPackage.value, pric
getEquityPayQrCode
()
}
function
handlePayQrCodeRefresh
()
{
getEquityPayQrCode
()
}
</
script
>
<
template
>
...
...
@@ -305,7 +313,10 @@ function handlePackageSwitch(packageKey: typeof currentSelectPackage.value, pric
<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>
<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>
</Transition>
</div>
...
...
src/views/equity/components/point-recharge-modal.vue
View file @
26beecc8
...
...
@@ -213,6 +213,10 @@ function onModalAfterLeave() {
clearPayStatusTimer
()
clearPayInfo
()
}
function
handlePayQrCodeRefresh
()
{
getEquityPayQrCode
()
}
</
script
>
<
template
>
...
...
@@ -319,7 +323,10 @@ function onModalAfterLeave() {
<
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
>
<
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
>
<
/Transition
>
<
/div
>
...
...
src/views/equity/equity.vue
View file @
26beecc8
...
...
@@ -78,12 +78,11 @@ function handlePointRecharge() {
</div>
</div>
<div
class=
"flex cursor-pointer select-none items-center justify-end text-[15px] text-[#0B7DFF]"
@
click=
"handlePointRecharge"
>
<div
class=
"flex select-none items-center justify-end text-[15px] text-[#0B7DFF]"
>
<span
class=
"cursor-pointer"
@
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>
</div>
</section>
<section
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment