This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
Augcl
/
novel-front-app
generated from
hly/uniapp-shop-templates
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
fix(Walletflow): 修复生命周期钩子函数调用顺序问题
修复Walletflow页面onLoad和onShow生命周期钩子函数调用顺序,确保数据正确加载 修改recharge页面充值成功后的跳转逻辑和样式
master
前端-胡立永
2 weeks ago
parent
acb29181f0
commit
264769cdd6
2 changed files
with
10 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
pages_order/mine/Walletflow.vue
+5
-3
pages_order/mine/recharge.vue
+ 5
- 0
pages_order/mine/Walletflow.vue
View File
@ -93,8 +93,13 @@
}
,
onLoad
(
)
{
this
.
getAccountBalance
(
)
;
}
,
onShow
(
)
{
this
.
getFlowList
(
)
;
}
,
onReachBottom
(
)
{
this
.
loadMore
(
)
}
,
methods
:
{
/
/
获
取
账
户
余
额
getAccountBalance
(
)
{
+ 5
- 3
pages_order/mine/recharge.vue
View File
@ -188,14 +188,16 @@
uni
.
showToast
(
{
title
:
`
充值成功,获得
${
this
.
totalBeans
}
豆豆
`
,
icon
:
'
success
'
icon
:
'
none
'
}
)
/
/
更
新
用
户
信
息
this
.
$store
.
commit
(
'getUserInfo'
)
setTimeout
(
(
)
=>
{
uni
.
navigateBack
(
)
uni
.
reLaunch
(
{
url
:
'/pages/index/center'
}
)
}
,
1500
)
}
catch
(
error
)
{
uni
.
showToast
(
{
@ -268,7 +270,7 @@
}
.
package
-
item
{
width
:
calc
(
50
%
-
8
rpx
)
;
width
:
calc
(
50
%
-
16
rpx
)
;
background
:
#
f8f9ff
;
border
:
2
rpx
solid
#
f0f0f0
;
border
-
radius
:
16
rpx
;
Write
Preview
Loading…
Cancel
Save