Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
scrm-wx-merchant-activity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 69a7925e
authored
Sep 26, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev_2.10.1' of
http://192.168.3.233:8090/glsx/scrm-wx-merchant-act…
…ivity into dev_2.10.1
2 parents
9ec02257
dc93f8fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
22 deletions
src/components/LiveBox.vue
src/components/LiveBox.vue
View file @
69a7925
...
...
@@ -15,7 +15,7 @@
</div>
<!--
<div
class=
"text"
>
{{
LiveStatus
[
liveDetail
.
status
]
==
'live'
?
'直播'
:
'回放'
}}
</div>
-->
<!--
<div
class=
"text"
>
{{
LiveProps
[
liveDetail
.
status
].
status
}}
</div>
-->
<div
class=
"text"
>
直播
</div>
<div
class=
"text"
>
{{
LiveProps
[
liveDetail
.
status
].
status
}}
</div>
</div>
</div>
<!-- @click="openFullscreen" -->
...
...
@@ -27,7 +27,7 @@
v-show=
"!videoFullscreen && !isSmallBox"
@
click=
"isSmallBox = true"
></div>
<div
:class=
"
{ videoShort:
detail.activityStatus != 3
&&
detail.buyFlag != 2
}">
<div
:class=
"
{ videoShort:
isAction
}">
<div
class=
"mask"
>
<div
class=
"status flex"
>
<!--
<div
v-if=
"LiveStatus[liveDetail.status] == 'live'"
class=
"live-line"
>
-->
...
...
@@ -37,23 +37,29 @@
<div
class=
"center side"
></div>
<div
class=
"side"
></div>
</div>
<!-- 回放图标 -->
<!-- :src="" -->
<img
v-if=
"!LiveProps[liveDetail.status].isLive"
:src=
"IMAGES.REPLAY_ICON"
class=
"live-replayIcon"
/>
<!--
<div
class=
"text"
>
{{
LiveStatus
[
liveDetail
.
status
]
==
'live'
?
'正在直播'
:
'直播回放'
}}
</div>
-->
<div
class=
"text"
>
{{
LiveProps
[
liveDetail
.
status
].
text
}}
</div>
</div>
<template
v-if=
"isShowGif"
>
<!-- v-if="LiveProps[liveDetail.status].covergif" -->
<!--
<img
v-if=
"LiveStatus[liveDetail.status] == 'live'"
src=
"https://wimg.588ku.com/gif620/20/04/23/79a7882dfb0c59497976fd8b3bfe60ef.gif"
alt=
""
/>
-->
<img
v-if=
"LiveProps[liveDetail.status].isLive"
src=
"https://wimg.588ku.com/gif620/20/04/23/79a7882dfb0c59497976fd8b3bfe60ef.gif"
alt=
""
/>
<img
v-else
src=
"https://wimg.588ku.com/gif620/20/04/23/79a7882dfb0c59497976fd8b3bfe60ef.gif"
<img
class=
"coverGif"
:src=
"LiveProps[liveDetail.status].covergif"
alt=
""
/>
<!--
<img
v-else
:src=
"IMAGES.COVER_REPLAY"
alt=
""
/>
-->
</
template
>
</div>
<div
class=
"fullscreen-btn"
@
click=
"openFullscreen(false)"
>
<img
src=
"https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/fullscreen.png"
/>
<img
:src=
"IMAGES.FULL_SCREEN"
/>
</div>
<div
class=
"poster-btn"
@
click=
"showKf = true"
>
...
...
@@ -64,19 +70,21 @@
playsinline
webkit-playsinline
></video>
<group-modal
v-model=
"showKf"
:detail=
"detail"
/>
:detail=
"detail"
/>
</div>
<action
:bgBlack=
"true"
v-show=
"videoFullscreen && detail.activityStatus != 3 && detail.buyFlag != 2"
>
</action>
class=
"BgAction"
v-show=
"videoFullscreen && isAction"
>
</action>
</div>
</div>
</template>
<
script
type=
"text/ecmascript-6"
>
import
{
wxConfig
}
from
'@/api'
const
IMAGES
=
Object
.
freeze
({
COVER_LIVE
:
'https://wimg.588ku.com/gif620/20/04/23/79a7882dfb0c59497976fd8b3bfe60ef.gif'
,
// COVER_LIVE: 'https://wimg.588ku.com/gif620/20/04/23/79a7882dfb0c59497976fd8b3bfe60ef.gif',
COVER_LIVE
:
'https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/COVER_LIVE.gif'
,
COVER_REPLAY
:
'https://wimg.588ku.com/gif620/20/04/23/79a7882dfb0c59497976fd8b3bfe60ef.gif'
,
REPLAY_ICON
:
'https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/replayIcon.png'
,
FULL_SCREEN
:
'https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/fullscreen.png'
,
GROUP
:
"https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/gift.gif"
})
...
...
@@ -94,7 +102,7 @@ const TCPlayerConfig = Object.freeze({
const
LiveProps
=
Object
.
freeze
({
'0'
:
{
isShowBox
:
false
},
'1'
:
{
status
:
'直播'
,
text
:
'正在直播'
,
isLive
:
true
,
covergif
:
IMAGES
.
COVER_LIVE
,
isShowBox
:
true
},
'2'
:
{
status
:
'回放'
,
text
:
'直播回放'
,
isLive
:
false
,
covergif
:
IMAGES
.
COVER_REPLAY
,
isShowBox
:
true
}
'2'
:
{
status
:
'回放'
,
text
:
'直播回放'
,
isLive
:
false
,
covergif
:
IMAGES
.
COVER_REPLAY
,
isShowBox
:
true
,
icon
:
IMAGES
.
REPLAY_ICON
}
})
const
PLAYERDOMID
=
'player-container-id'
export
default
{
...
...
@@ -306,20 +314,21 @@ export default {
}
}
.live-box
{
box-sizing
:
border-box
;
position
:
fixed
;
top
:
23%
;
left
:
calc
(
98%
-
86px
);
z-index
:
7
;
width
:
8
6
px
;
height
:
1
48
px
;
width
:
8
2.5
px
;
height
:
1
50
px
;
border-radius
:
4px
;
//
overflow
:
hidden
;
overflow
:
hidden
;
user-select
:
auto
;
transition
:
all
0.2s
ease
;
.icon-live-close
{
position
:
absolute
;
top
:
0
;
right
:
0
;
top
:
2px
;
right
:
2px
;
//
left
:
-100px
;
z-index
:
3
;
}
...
...
@@ -334,7 +343,7 @@ export default {
border-radius
:
4px
;
box-sizing
:
border-box
;
img
{
.coverGif
{
object-fit
:
contain
;
height
:
126px
;
}
...
...
@@ -350,6 +359,11 @@ export default {
color
:
#ffffff
;
box-sizing
:
border-box
;
padding
:
0
9px
;
.live-replayIcon
{
display
:
inline-block
;
width
:
10px
;
height
:
10px
;
}
.text
{
margin-left
:
auto
;
}
...
...
@@ -394,7 +408,8 @@ export default {
border
:
none
!important
;
background
:
#000000
;
.videoShort
{
height
:
calc
(
100vh
-
13.333vh
)
!important
;
//
height
:
calc
(
100vh
-
13.333vh
)
!important
;
height
:
100%
;
}
.mask
{
display
:
none
;
...
...
@@ -403,8 +418,15 @@ export default {
.poster-btn
{
display
:
block
;
}
/
deep
/
.vjs-control-bar
{
opacity
:
1
!important
;
bottom
:
15vh
;
background
:
none
!important
;
//
background-color
:
rgba
(
0
,
0
,
0
,
0.3
);
}
.BgAction
{
background
:
linear-gradient
(
0deg
,
rgba
(
0
,
0
,
0
,
0.6
),
rgba
(
0
,
0
,
0
,
0
));
/* 标准的语法(必须放在最后) */
}
}
</
style
>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment