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
09c6e09e
Commit
09c6e09e
authored
Dec 13, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
6c9cb4d5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
6 deletions
+41
-6
my.vue
vedio/pages/my/my.vue
+2
-2
recommendVideo.vue
vedio/pages/recommend/recommendVideo.vue
+39
-4
No files found.
vedio/pages/my/my.vue
View file @
09c6e09e
...
...
@@ -71,10 +71,10 @@
我的订单
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
</view>
<view
class=
"item arrow"
@
click=
"handleVedio"
>
<
!--
<
view
class=
"item arrow"
@
click=
"handleVedio"
>
我的追剧
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
</view>
</view>
-->
<view
v-if=
"os === 'android' "
class=
"item arrow"
@
click=
"handleDotRecord"
>
看点记录
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
...
...
vedio/pages/recommend/recommendVideo.vue
View file @
09c6e09e
...
...
@@ -48,6 +48,19 @@
</swiper-item>
</swiper>
<view
class=
'fakeTab'
:style=
"
'height:' +
titleBarHeight +
'px;line-height:' +
titleBarHeight +
'px;padding-top:' +
statusBarHeight +
'px;background-color:transparent'
"
>
<text
@
click=
"handleVideoRecord"
style=
"color: #606266;margin-right: 20rpx;"
>
追剧
</text>
<text
style=
"color: white;margin-left: 20rpx;border-bottom: 4rpx solid #ffffff;"
>
推荐
</text>
</view>
</view>
</
template
>
...
...
@@ -58,7 +71,7 @@
navigateTo
,
}
from
'@/utils/fun.js'
;
let
audo
=
uni
.
createInnerAudioContext
()
const
app
=
getApp
();
export
default
{
name
:
"recommendVideo"
,
...
...
@@ -79,7 +92,10 @@
isqp
:
false
,
// 是否全屏
urls
:
"https://xjc.demo.hongcd.com/api/video/videoRecommend?page=1&uid=0"
,
isFirstLoad
:
true
,
videoContext
:
null
videoContext
:
null
,
titleBarHeight
:
app
.
globalData
.
titleBarHeight
,
titleButtonWidth
:
app
.
globalData
.
titleButtonWidth
,
statusBarHeight
:
app
.
globalData
.
statusBarHeight
,
}
},
onLoad
(
e
)
{
...
...
@@ -135,7 +151,6 @@
}
},
stop
()
{
// audo.pause()
this
.
videoContext
?.
pause
()
},
queryList
()
{
...
...
@@ -196,7 +211,6 @@
this
.
oid
=
this
.
originList
.
length
-
1
}
console
.
log
(
'++++++++++++上一条播放数据 Index:'
,
this
.
oid
)
// audo.pause()
this
.
videoContext
=
uni
.
createVideoContext
(
""
+
this
.
originList
[
this
.
oid
].
vedioId
,
this
)
this
.
videoContext
.
pause
()
this
.
videoContext
.
stop
()
...
...
@@ -298,6 +312,9 @@
}
});
},
handleVideoRecord
()
{
navigateTo
(
`/pages/recommend/follow`
)
}
}
}
</
script
>
...
...
@@ -419,4 +436,22 @@
opacity
:
1
;
}
}
.fakeTab
{
width
:
100%
;
position
:
absolute
;
z-index
:
100
;
display
:
flex
;
align-items
:
center
;
overflow
:
hidden
;
justify-content
:
center
;
text
{
text-align
:
center
;
height
:
60rpx
;
line-height
:
60rpx
;
font-size
:
36rpx
;
font-weight
:
bold
;
}
}
</
style
>
\ No newline at end of file
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