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
4c1a9fd6
Commit
4c1a9fd6
authored
Nov 13, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化vip解锁逻辑
parent
58f42a10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
18 deletions
+32
-18
newVideoDetail.vue
vedio/pagesC/video/newVideoDetail.vue
+32
-18
No files found.
vedio/pagesC/video/newVideoDetail.vue
View file @
4c1a9fd6
...
...
@@ -18,7 +18,7 @@
<image
@
click
.
stop=
"cancelCollect(data.vedioId,index)"
v-if=
"data.collect==1"
src=
"@/static/home_collect_img_1.png"
/>
<text
style=
"margin: 0 auto;margin-top: 1
1
0rpx;color: #FFFFFF;font-size: 26rpx;font-weight: bold;"
style=
"margin: 0 auto;margin-top: 1
2
0rpx;color: #FFFFFF;font-size: 26rpx;font-weight: bold;"
:class=
"
{'likeNumActive':data.collect!=0}">
{{
data
.
hot
}}
</text>
</view>
<!-- 分享 -->
...
...
@@ -163,7 +163,8 @@
tabs
:
[],
subList
:
[],
showTap
:
false
,
showCoinPop
:
false
showCoinPop
:
false
,
vipBackPage
:
''
};
},
onLoad
(
options
)
{
...
...
@@ -194,8 +195,17 @@
this
.
down
()
},
methods
:
{
paySuccess
()
{
paySuccess
(
largeType
)
{
// largeType=vip 开通vip
// largeType=point 购买看点
console
.
log
(
'AAAAAAA'
+
largeType
)
if
(
largeType
==
'vip'
)
{
this
.
vipBackPage
=
this
.
originIndex
this
.
getData
()
}
else
{
this
.
unlock
(
this
.
originIndex
)
}
},
showPayDialog
()
{
let
isIOS
=
wx
.
getSystemInfoSync
().
platform
;
...
...
@@ -218,11 +228,11 @@
},
timeupdate
(
event
)
{
// 自动播放下一集
if
(
event
.
detail
.
currentTime
>
0
&&
this
.
originList
[
this
.
originIndex
].
lock
)
{
uni
.
createVideoContext
(
''
+
this
.
originList
[
this
.
originIndex
].
vedioIndex
,
this
).
seek
(
0
);
uni
.
createVideoContext
(
''
+
this
.
originList
[
this
.
originIndex
].
vedioIndex
,
this
).
pause
();
this
.
unlock
(
this
.
originIndex
)
}
//
if (event.detail.currentTime > 0 && this.originList[this.originIndex].lock) {
//
uni.createVideoContext('' + this.originList[this.originIndex].vedioIndex, this).seek(0);
//
uni.createVideoContext('' + this.originList[this.originIndex].vedioIndex, this).pause();
//
this.unlock(this.originIndex)
//
}
},
selectThisVideo
(
index
)
{
this
.
down
();
...
...
@@ -321,6 +331,10 @@
data
})
=>
{
that
.
originList
=
data
.
list
if
(
that
.
vipBackPage
!=
''
)
{
that
.
originIndex
=
that
.
vipBackPage
that
.
vipBackPage
=
''
}
else
{
if
(
that
.
isPlayNext
==
1
)
{
that
.
originIndex
=
that
.
data
.
recommendIndex
-
1
}
else
{
...
...
@@ -329,6 +343,7 @@
if
(
that
.
originIndex
>=
that
.
data
.
vedioTotal
||
that
.
originIndex
<
0
)
{
that
.
originIndex
=
0
}
}
that
.
data
=
data
.
vedioMsg
that
.
initSwiperData
(
that
.
originIndex
);
that
.
initEpisode
()
...
...
@@ -378,7 +393,6 @@
this
.
unlock
(
this
.
originIndex
)
}
else
{
setTimeout
(()
=>
{
// audo.play()
uni
.
createVideoContext
(
''
+
this
.
originList
[
originIndex
].
vedioIndex
,
this
).
play
();
this
.
commitVideo
()
},
500
)
...
...
@@ -530,8 +544,8 @@
flex-direction
:
column
;
image
{
width
:
7
0
rpx
;
height
:
7
0
rpx
;
width
:
7
6
rpx
;
height
:
7
6
rpx
;
position
:
absolute
;
right
:
10rpx
;
}
...
...
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