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
ad1f73cb
Commit
ad1f73cb
authored
Nov 22, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改弹窗仍播放问题
parent
8b9408f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
12 deletions
+20
-12
newVideoDetail.vue
vedio/pagesC/video/newVideoDetail.vue
+20
-12
No files found.
vedio/pagesC/video/newVideoDetail.vue
View file @
ad1f73cb
...
@@ -3,13 +3,16 @@
...
@@ -3,13 +3,16 @@
<status-title
style=
"position: absolute;"
iconColor=
"white"
:showBack=
"true"
></status-title>
<status-title
style=
"position: absolute;"
iconColor=
"white"
:showBack=
"true"
></status-title>
<swiper
class=
"swiper"
circular
@
change=
"swiperChange"
:current=
"current"
:vertical=
"true"
>
<swiper
class=
"swiper"
circular
@
change=
"swiperChange"
:current=
"current"
:vertical=
"true"
>
<swiper-item
v-for=
"(list, index) in displaySwiperList"
:key=
"index"
:style=
"'width:100%; height:100%;'"
>
<swiper-item
v-for=
"(list, index) in displaySwiperList"
:key=
"index"
:style=
"'width:100%; height:100%;'"
>
<view
:style=
"'width:100%; height:100%;'"
>
<view
style=
"width:100%; height:100%;"
>
<video
v-if=
"Math.abs(displayIndex-index)==0 && list.vedioUrl"
:id=
"list.vedioIndex"
<video
v-if=
"Math.abs(displayIndex-index)==0 && list.vedioUrl"
:id=
"list.vedioIndex"
@
play=
"play"
:controls=
"controls"
:loop=
"!isplay"
:enable-progress-gesture=
"false"
:show-loading=
"true"
@
ended=
"ended"
:controls=
"controls"
:loop=
"!isplay"
:enable-progress-gesture=
"false"
:show-fullscreen-btn=
"false"
@
ended=
"ended"
@
controlstoggle=
"controlstoggle"
@
click=
"tapVides()"
:show-loading=
"true"
:show-fullscreen-btn=
"false"
@
controlstoggle=
"controlstoggle"
@
timeupdate=
"timeupdate"
style=
"width:100%; height:100%;background: #f56c6c;"
:autoplay=
"true"
@
click=
"tapVides()"
@
timeupdate=
"timeupdate"
style=
"width:100%; height:100%;"
:autoplay=
"!list.lock"
:src=
"list.vedioUrl"
:poster=
"data.coverImage"
class=
"tsvideo"
play-btn-position=
"center"
:src=
"list.vedioUrl"
class=
"tsvideo"
play-btn-position=
"center"
object-fit=
"contain"
>
object-fit=
"contain"
/>
<cover-view
v-if=
"showCover"
style=
"margin:0 auto;"
>
<cover-image
mode=
"widthFix"
:src=
"data.coverImage"
/>
</cover-view>
</video>
<view
v-if=
"!isqp"
class=
"userInfo"
>
<view
v-if=
"!isqp"
class=
"userInfo"
>
<!-- 点赞 -->
<!-- 点赞 -->
<view
class=
"flex"
style=
"opacity: 0.9; margin-top: 10rpx;"
>
<view
class=
"flex"
style=
"opacity: 0.9; margin-top: 10rpx;"
>
...
@@ -164,7 +167,8 @@
...
@@ -164,7 +167,8 @@
subList
:
[],
subList
:
[],
showTap
:
false
,
showTap
:
false
,
showCoinPop
:
false
,
showCoinPop
:
false
,
vipBackPage
:
''
vipBackPage
:
''
,
showCover
:
true
};
};
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
...
@@ -197,9 +201,7 @@
...
@@ -197,9 +201,7 @@
methods
:
{
methods
:
{
paySuccess
(
largeType
)
{
paySuccess
(
largeType
)
{
// largeType=vip 开通vip
// largeType=vip 开通vip
// largeType=point 购买看点
// largeType=point 购买看点
console
.
log
(
'AAAAAAA'
+
largeType
)
if
(
largeType
==
'vip'
)
{
if
(
largeType
==
'vip'
)
{
this
.
vipBackPage
=
this
.
originIndex
this
.
vipBackPage
=
this
.
originIndex
this
.
getData
()
this
.
getData
()
...
@@ -227,7 +229,6 @@
...
@@ -227,7 +229,6 @@
navigateTo
(
`/pagesA/vipPay/vipPay`
)
navigateTo
(
`/pagesA/vipPay/vipPay`
)
},
},
timeupdate
(
event
)
{
timeupdate
(
event
)
{
// 自动播放下一集
// if (event.detail.currentTime > 0 && this.originList[this.originIndex].lock) {
// 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).seek(0);
// uni.createVideoContext('' + this.originList[this.originIndex].vedioIndex, this).pause();
// uni.createVideoContext('' + this.originList[this.originIndex].vedioIndex, this).pause();
...
@@ -350,7 +351,12 @@
...
@@ -350,7 +351,12 @@
}
}
});
});
},
},
play
()
{
this
.
showCover
=
false
},
ended
()
{
ended
()
{
this
.
showCover
=
true
// 1.播放当前视频结束时触发,自动切换下一个视频
// 1.播放当前视频结束时触发,自动切换下一个视频
if
(
this
.
isplay
)
{
if
(
this
.
isplay
)
{
if
(
this
.
displayIndex
<
2
)
{
if
(
this
.
displayIndex
<
2
)
{
...
@@ -366,6 +372,8 @@
...
@@ -366,6 +372,8 @@
* @originIndex 从源数据的哪个开始显示默认0,如从其他页面跳转进来,要显示第n个,这个参数就是他的下标
* @originIndex 从源数据的哪个开始显示默认0,如从其他页面跳转进来,要显示第n个,这个参数就是他的下标
*/
*/
initSwiperData
(
originIndex
=
this
.
originIndex
)
{
initSwiperData
(
originIndex
=
this
.
originIndex
)
{
this
.
showCover
=
true
console
.
log
(
'--------当前数据 Index:'
,
originIndex
)
console
.
log
(
'--------当前数据 Index:'
,
originIndex
)
const
originListLength
=
this
.
originList
.
length
;
// 源数据长度
const
originListLength
=
this
.
originList
.
length
;
// 源数据长度
const
displayList
=
[];
const
displayList
=
[];
...
...
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