Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_vedio
Project
Project
Details
Activity
Releases
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
android
uniapp_vedio
Commits
5b8deb53
Commit
5b8deb53
authored
Jul 26, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开通vip更新我的页面状态
parent
26c71fb4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
30 deletions
+44
-30
home.vue
vedio/pages/home.vue
+38
-29
vipPay.vue
vedio/pagesA/vipPay/vipPay.vue
+6
-1
No files found.
vedio/pages/home.vue
View file @
5b8deb53
...
@@ -106,14 +106,23 @@
...
@@ -106,14 +106,23 @@
mounted
()
{
mounted
()
{
// 渲染完成 初始化首页数据
// 渲染完成 初始化首页数据
this
.
loadComponentData
();
this
.
loadComponentData
();
let
that
=
this
if
(
this
.
localActiviteFlag
==
1
)
{
if
(
this
.
localActiviteFlag
==
1
)
{
let
that
=
this
uni
.
$on
(
'goWareHouse'
,
function
(
data
)
{
uni
.
$on
(
'goWareHouse'
,
function
(
data
)
{
that
.
tabChange
(
1
)
that
.
tabChange
(
1
)
})
})
}
}
uni
.
$on
(
'refreshPreviousPage'
,
(
data
)
=>
{
if
(
data
.
vipFlag
==
'1'
)
{
// 开通vip刷新状态
if
(
that
.
currentPage
==
2
)
{
that
.
$refs
.
user
.
show
();
}
}
});
},
},
methods
:
{
methods
:
{
tabChange
(
index
)
{
tabChange
(
index
)
{
...
...
vedio/pagesA/vipPay/vipPay.vue
View file @
5b8deb53
...
@@ -209,7 +209,12 @@
...
@@ -209,7 +209,12 @@
message
.
notify
(
'支付成功'
)
message
.
notify
(
'支付成功'
)
setTimeout
(()
=>
{
setTimeout
(()
=>
{
navigateBack
();
uni
.
$emit
(
'refreshPreviousPage'
,
{
vipFlag
:
'1'
});
uni
.
navigateBack
({
delta
:
1
,
});
},
1000
);
},
1000
);
},
},
fail
(
res
)
{
fail
(
res
)
{
...
...
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