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
05346ec2
Commit
05346ec2
authored
Aug 02, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
c87e33cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
14 deletions
+17
-14
home.vue
vedio/pages/home.vue
+11
-8
vipPay.vue
vedio/pagesA/vipPay/vipPay.vue
+6
-6
No files found.
vedio/pages/home.vue
View file @
05346ec2
...
@@ -102,6 +102,17 @@
...
@@ -102,6 +102,17 @@
// } catch (e) {
// } catch (e) {
// }
// }
let
that
=
this
uni
.
$on
(
'refreshPreviousPage'
,
(
data
)
=>
{
console
.
log
(
'AAAAAAAAAAA'
)
if
(
data
.
vipFlag
==
'1'
)
{
// 开通vip刷新状态
if
(
that
.
currentPage
==
2
)
{
that
.
$refs
.
user
.
show
();
}
}
});
},
},
mounted
()
{
mounted
()
{
// 渲染完成 初始化首页数据
// 渲染完成 初始化首页数据
...
@@ -114,15 +125,7 @@
...
@@ -114,15 +125,7 @@
})
})
}
}
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 @
05346ec2
...
@@ -193,11 +193,11 @@
...
@@ -193,11 +193,11 @@
extraData
:
wxData
.
params
,
extraData
:
wxData
.
params
,
success
(
res
)
{
success
(
res
)
{
message
.
notify
(
'支付成功'
)
message
.
notify
(
'支付成功'
)
uni
.
$emit
(
'refreshPreviousPage'
,
{
vipFlag
:
'1'
});
setTimeout
(()
=>
{
setTimeout
(()
=>
{
uni
.
$emit
(
'refreshPreviousPage'
,
{
vipFlag
:
'1'
});
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
,
delta
:
1
,
});
});
...
@@ -221,11 +221,11 @@
...
@@ -221,11 +221,11 @@
paySign
:
wxParams
.
paySign
,
paySign
:
wxParams
.
paySign
,
success
(
res
)
{
success
(
res
)
{
message
.
notify
(
'支付成功'
)
message
.
notify
(
'支付成功'
)
uni
.
$emit
(
'refreshPreviousPage'
,
{
vipFlag
:
'1'
});
setTimeout
(()
=>
{
setTimeout
(()
=>
{
uni
.
$emit
(
'refreshPreviousPage'
,
{
vipFlag
:
'1'
});
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
,
delta
:
1
,
});
});
...
...
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