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
48dc5041
Commit
48dc5041
authored
Dec 17, 2024
by
tyyin lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 礼包充值付款二维码未能加载
parent
36405c96
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
12 deletions
+14
-12
pay-sidebar.vue
src/views/equity/components/pay-sidebar.vue
+5
-5
point-recharge-modal.vue
src/views/equity/components/point-recharge-modal.vue
+6
-6
equity.vue
src/views/equity/equity.vue
+3
-1
No files found.
src/views/equity/components/pay-sidebar.vue
View file @
48dc5041
...
...
@@ -37,7 +37,7 @@ const payInfo = ref({
payOrderSn
:
''
,
})
const
isPayQrcodeInvalid
=
ref
(
false
)
const
payStatusTimer
=
ref
<
NodeJS
.
Timeout
|
null
>
(
null
)
let
payStatusTimer
:
NodeJS
.
Timeout
|
null
=
null
const
isShowPayQrCode
=
computed
(()
=>
{
return
!!
(
...
...
@@ -175,15 +175,15 @@ function getPayStatus() {
})
}
payStatusTimer
.
value
=
setInterval
(()
=>
{
payStatusTimer
=
setInterval
(()
=>
{
request
()
},
1000
)
}
function
clearPayStatusTimer
()
{
if
(
payStatusTimer
.
value
)
{
clearInterval
(
payStatusTimer
.
value
)
payStatusTimer
.
value
=
null
if
(
payStatusTimer
)
{
clearInterval
(
payStatusTimer
)
payStatusTimer
=
null
}
}
...
...
src/views/equity/components/point-recharge-modal.vue
View file @
48dc5041
...
...
@@ -41,7 +41,7 @@ const payInfo = ref({
payOrderSn
:
''
,
})
const
isPayQrcodeInvalid
=
ref
(
false
)
const
payStatusTimer
=
ref
<
NodeJS
.
Timeout
|
null
>
(
null
)
let
payStatusTimer
:
NodeJS
.
Timeout
|
null
=
null
const
currentPayPrice
=
ref
(
0
)
watch
(
isShowPointRechargeModal
,
(
newVal
)
=>
{
...
...
@@ -168,13 +168,13 @@ function getPayStatus() {
const
timerId
=
setInterval
(()
=>
{
if
(
!
payInfo
.
value
.
payOrderSn
)
{
clearInterval
(
timerId
)
payStatusTimer
.
value
=
null
payStatusTimer
=
null
return
}
request
()
},
1000
)
payStatusTimer
.
value
=
timerId
payStatusTimer
=
timerId
}
function
handlePaymentMethodSwitch
(
method
:
'alipay'
|
'wechatpay'
)
{
...
...
@@ -200,9 +200,9 @@ function clearPayInfo() {
}
function
clearPayStatusTimer
()
{
if
(
payStatusTimer
.
value
!==
null
)
{
clearInterval
(
payStatusTimer
.
value
)
payStatusTimer
.
value
=
null
if
(
payStatusTimer
!==
null
)
{
clearInterval
(
payStatusTimer
)
payStatusTimer
=
null
}
}
...
...
src/views/equity/equity.vue
View file @
48dc5041
...
...
@@ -71,7 +71,9 @@ function handlePointRecharge() {
</div>
</div>
<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>
</div>
</div>
...
...
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