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
37eef46f
Commit
37eef46f
authored
Aug 05, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复匹配用户跳转两次内容BUG
修复内容页签约成功后未刷新页面BUG
parent
13488bd2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
book-content.vue
vedio/page-subs/sub_A/book-content/book-content.vue
+7
-3
home.vue
vedio/pages/home.vue
+7
-6
No files found.
vedio/page-subs/sub_A/book-content/book-content.vue
View file @
37eef46f
...
@@ -131,6 +131,10 @@
...
@@ -131,6 +131,10 @@
addReadRecord
(
this
.
bookId
)
addReadRecord
(
this
.
bookId
)
}
}
if
(
this
.
isVip
())
{
this
.
unlockBook
()
}
// this.showVipOpen = data.openVips
// this.showVipOpen = data.openVips
// // 用户变动,需要刷新数据
// // 用户变动,需要刷新数据
// this.$nextTick(() => {
// this.$nextTick(() => {
...
@@ -265,7 +269,7 @@
...
@@ -265,7 +269,7 @@
})
})
},
},
paySuccess
()
{
paySuccess
()
{
this
.
$set
(
this
.
bookData
,
"isUnlock"
,
true
);
//
this.$set(this.bookData, "isUnlock", true);
},
},
// 点击底部按钮
// 点击底部按钮
tapBottomItem
(
e
)
{
tapBottomItem
(
e
)
{
...
@@ -282,7 +286,7 @@
...
@@ -282,7 +286,7 @@
}
}
})
})
break
;
break
;
case
'setting'
:
// 设置
case
'setting'
:
// 设置
this
.
showSetting
=
true
;
this
.
showSetting
=
true
;
break
;
break
;
default
:
default
:
...
@@ -321,7 +325,7 @@
...
@@ -321,7 +325,7 @@
this
.
showBean
=
true
;
this
.
showBean
=
true
;
},
},
// 关闭设置弹窗
// 关闭设置弹窗
closePop
(
e
)
{
closePop
(
e
)
{
this
.
showSetting
=
false
;
this
.
showSetting
=
false
;
},
},
// 关闭会员弹窗
// 关闭会员弹窗
...
...
vedio/pages/home.vue
View file @
37eef46f
...
@@ -92,17 +92,18 @@
...
@@ -92,17 +92,18 @@
onShow
()
{
onShow
()
{
try
{
try
{
// 在子组件重写show()代替onShow()
// 在子组件重写show()代替onShow()
if
(
this
.
currentPage
==
0
)
{
// if (this.currentPage == 0) {
this
.
$refs
.
index
.
show
();
// this.$refs.index.show();
}
else
if
(
this
.
currentPage
==
1
)
{
// } else if (this.currentPage == 1) {
this
.
$refs
.
recommend
.
show
();
// this.$refs.recommend.show();
}
else
if
(
this
.
currentPage
==
2
)
{
// } else
if
(
this
.
currentPage
==
2
)
{
this
.
$refs
.
user
.
show
();
this
.
$refs
.
user
.
show
();
}
}
}
catch
(
e
)
{
}
catch
(
e
)
{
}
}
let
that
=
this
let
that
=
this
uni
.
$on
(
'refreshPreviousPage'
,
(
data
)
=>
{
uni
.
$on
(
'refreshPreviousPage'
,
(
data
)
=>
{
if
(
data
.
vipFlag
==
'1'
)
{
if
(
data
.
vipFlag
==
'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