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
88f26997
Commit
88f26997
authored
Aug 02, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
05346ec2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
23 deletions
+13
-23
manifest.json
vedio/manifest.json
+1
-1
home.vue
vedio/pages/home.vue
+11
-12
vipPay.vue
vedio/pagesA/vipPay/vipPay.vue
+1
-10
No files found.
vedio/manifest.json
View file @
88f26997
{
"name"
:
"reader"
,
"appid"
:
"__UNI__
F7F50FF
"
,
"appid"
:
"__UNI__
1EF86FE
"
,
"description"
:
""
,
"versionName"
:
"1.0.0"
,
"versionCode"
:
1000
,
...
...
vedio/pages/home.vue
View file @
88f26997
...
...
@@ -90,22 +90,21 @@
}
},
onShow
()
{
//
try {
//
// 在子组件重写show()代替onShow()
//
if (this.currentPage == 0) {
//
this.$refs.index.show();
//
} else if (this.currentPage == 1) {
//
this.$refs.recommend.show();
//
} else if (this.currentPage == 2) {
//
this.$refs.user.show();
//
}
//
} catch (e) {
try
{
// 在子组件重写show()代替onShow()
if
(
this
.
currentPage
==
0
)
{
this
.
$refs
.
index
.
show
();
}
else
if
(
this
.
currentPage
==
1
)
{
this
.
$refs
.
recommend
.
show
();
}
else
if
(
this
.
currentPage
==
2
)
{
this
.
$refs
.
user
.
show
();
}
}
catch
(
e
)
{
//
}
}
let
that
=
this
uni
.
$on
(
'refreshPreviousPage'
,
(
data
)
=>
{
console
.
log
(
'AAAAAAAAAAA'
)
if
(
data
.
vipFlag
==
'1'
)
{
// 开通vip刷新状态
if
(
that
.
currentPage
==
2
)
{
...
...
vedio/pagesA/vipPay/vipPay.vue
View file @
88f26997
...
...
@@ -192,16 +192,7 @@
path
:
'pages/index/index'
,
extraData
:
wxData
.
params
,
success
(
res
)
{
message
.
notify
(
'支付成功'
)
uni
.
$emit
(
'refreshPreviousPage'
,
{
vipFlag
:
'1'
});
setTimeout
(()
=>
{
uni
.
navigateBack
({
delta
:
1
,
});
},
1000
);
uni
.
navigateBack
()
},
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