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
547db4d3
Commit
547db4d3
authored
Oct 27, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
48db78d4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
13 deletions
+17
-13
recommendVideo.vue
vedio/pages/recommend/recommendVideo.vue
+8
-6
videoDetail.vue
vedio/pagesC/video/videoDetail.vue
+9
-7
No files found.
vedio/pages/recommend/recommendVideo.vue
View file @
547db4d3
...
...
@@ -63,7 +63,7 @@
mixins
:
[
common
],
data
()
{
return
{
controls
:
tru
e
,
// 控制按钮
controls
:
fals
e
,
// 控制按钮
originList
:
[],
// 源数据
displaySwiperList
:
[],
// swiper需要的数据
displayIndex
:
0
,
// 用于显示swiper的真正的下标数值只有:0,1,2。
...
...
@@ -74,7 +74,6 @@
oid
:
0
,
isplay
:
true
,
// 是否自动播放下一个视频
playCount
:
2
,
// 剩余多少视频加载视频列表
issp
:
false
,
isqp
:
false
,
// 是否全屏
urls
:
"https://xjc.demo.hongcd.com/api/video/videoRecommend?page=1&uid=0"
,
isFirstLoad
:
true
,
...
...
@@ -148,7 +147,9 @@
});
},
tapVideoHover
()
{
this
.
isqp
=
!
this
.
issp
if
(
this
.
controls
)
return
this
.
isqp
=
true
this
.
controls
=
true
},
ended
()
{
// 1.播放当前视频结束时触发,自动切换下一个视频
...
...
@@ -226,12 +227,13 @@
this
.
oid
=
this
.
originIndex
+
1
this
.
initSwiperData
(
this
.
originIndex
);
}
this
.
issp
=
false
this
.
controls
=
false
this
.
isqp
=
false
},
controlstoggle
(
e
)
{
console
.
log
(
e
.
detail
.
show
);
this
.
is
s
p
=
e
.
detail
.
show
if
(
!
this
.
controls
)
return
this
.
is
q
p
=
e
.
detail
.
show
},
detail
(
detail
)
{
navigateTo
(
`/pagesC/video/videoDetail?data=`
+
encodeURIComponent
(
JSON
.
stringify
(
detail
))
+
...
...
vedio/pagesC/video/videoDetail.vue
View file @
547db4d3
...
...
@@ -163,7 +163,7 @@
strShareImageUrl
:
""
},
fenji
:
1
,
controls
:
tru
e
,
controls
:
fals
e
,
originList
:
[],
// 源数据
displaySwiperList
:
[],
// swiper需要的数据
displayIndex
:
0
,
// 用于显示swiper的真正的下标数值只有:0,1,2。
...
...
@@ -174,7 +174,6 @@
oid
:
0
,
isplay
:
true
,
//是否自动播放下一个视频
duration
:
500
,
issp
:
false
,
isqp
:
false
,
mid
:
0
,
safeArea
:
0
,
...
...
@@ -265,7 +264,9 @@
this
.
$refs
.
select
.
open
(
'bottom'
);
},
tapVides
()
{
this
.
isqp
=
!
this
.
issp
if
(
this
.
controls
)
return
this
.
isqp
=
true
this
.
controls
=
true
},
getData
()
{
this
.
originList
=
[]
...
...
@@ -375,7 +376,8 @@
this
.
oid
=
this
.
originIndex
+
1
this
.
initSwiperData
(
this
.
originIndex
);
}
this
.
issp
=
false
this
.
controls
=
false
this
.
isqp
=
false
},
initEpisode
()
{
...
...
@@ -398,8 +400,8 @@
this
.
tabIndex
=
event
.
index
;
},
controlstoggle
(
e
)
{
console
.
log
(
e
.
detail
.
show
);
this
.
is
s
p
=
e
.
detail
.
show
if
(
!
this
.
controls
)
return
this
.
is
q
p
=
e
.
detail
.
show
},
collect
(
vedioId
,
index
)
{
this
.
data
.
collect
=
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