Commit 69a7925e by 胡悦

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
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
<!-- <div class="text">{{ LiveStatus[liveDetail.status] == 'live' ? '直播' : '回放' }}</div> --> <!-- <div class="text">{{ LiveStatus[liveDetail.status] == 'live' ? '直播' : '回放' }}</div> -->
<!-- <div class="text">{{ LiveProps[liveDetail.status].status }}</div> --> <!-- <div class="text">{{ LiveProps[liveDetail.status].status }}</div> -->
<div class="text">直播</div> <div class="text">{{ LiveProps[liveDetail.status].status }}</div>
</div> </div>
</div> </div>
<!-- @click="openFullscreen" --> <!-- @click="openFullscreen" -->
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
v-show="!videoFullscreen && !isSmallBox" v-show="!videoFullscreen && !isSmallBox"
@click="isSmallBox = true"></div> @click="isSmallBox = true"></div>
<div :class="{ videoShort: detail.activityStatus != 3 && detail.buyFlag != 2 }"> <div :class="{ videoShort: isAction }">
<div class="mask"> <div class="mask">
<div class="status flex"> <div class="status flex">
<!-- <div v-if="LiveStatus[liveDetail.status] == 'live'" class="live-line"> --> <!-- <div v-if="LiveStatus[liveDetail.status] == 'live'" class="live-line"> -->
...@@ -37,23 +37,29 @@ ...@@ -37,23 +37,29 @@
<div class="center side"></div> <div class="center side"></div>
<div class="side"></div> <div class="side"></div>
</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">{{ LiveStatus[liveDetail.status] == 'live' ? '正在直播' : '直播回放' }}</div> -->
<div class="text">{{ LiveProps[liveDetail.status].text }}</div> <div class="text">{{ LiveProps[liveDetail.status].text }}</div>
</div> </div>
<template v-if="isShowGif"> <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="LiveStatus[liveDetail.status] == 'live'" src="https://wimg.588ku.com/gif620/20/04/23/79a7882dfb0c59497976fd8b3bfe60ef.gif" alt="" /> -->
<img v-if="LiveProps[liveDetail.status].isLive" <img class="coverGif"
src="https://wimg.588ku.com/gif620/20/04/23/79a7882dfb0c59497976fd8b3bfe60ef.gif" :src="LiveProps[liveDetail.status].covergif"
alt="" />
<img v-else
src="https://wimg.588ku.com/gif620/20/04/23/79a7882dfb0c59497976fd8b3bfe60ef.gif"
alt="" /> alt="" />
<!-- <img v-else
:src="IMAGES.COVER_REPLAY"
alt="" /> -->
</template> </template>
</div> </div>
<div class="fullscreen-btn" <div class="fullscreen-btn"
@click="openFullscreen(false)"> @click="openFullscreen(false)">
<img <img :src="IMAGES.FULL_SCREEN" />
src="https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/fullscreen.png" />
</div> </div>
<div class="poster-btn" <div class="poster-btn"
@click="showKf = true"> @click="showKf = true">
...@@ -67,16 +73,18 @@ ...@@ -67,16 +73,18 @@
:detail="detail" /> :detail="detail" />
</div> </div>
<action :bgBlack="true" <action :bgBlack="true"
v-show="videoFullscreen && detail.activityStatus != 3 && detail.buyFlag != 2"> class="BgAction"
</action> v-show="videoFullscreen && isAction"></action>
</div> </div>
</div> </div>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import { wxConfig } from '@/api' import { wxConfig } from '@/api'
const IMAGES = Object.freeze({ 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', 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', 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" GROUP: "https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/gift.gif"
}) })
...@@ -94,7 +102,7 @@ const TCPlayerConfig = Object.freeze({ ...@@ -94,7 +102,7 @@ const TCPlayerConfig = Object.freeze({
const LiveProps = Object.freeze({ const LiveProps = Object.freeze({
'0': { isShowBox: false }, '0': { isShowBox: false },
'1': { status: '直播', text: '正在直播', isLive: true, covergif: IMAGES.COVER_LIVE, isShowBox: true }, '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' const PLAYERDOMID = 'player-container-id'
export default { export default {
...@@ -306,20 +314,21 @@ export default { ...@@ -306,20 +314,21 @@ export default {
} }
} }
.live-box { .live-box {
box-sizing: border-box;
position: fixed; position: fixed;
top: 23%; top: 23%;
left: calc(98% - 86px); left: calc(98% - 86px);
z-index: 7; z-index: 7;
width: 86px; width: 82.5px;
height: 148px; height: 150px;
border-radius: 4px; border-radius: 4px;
// overflow: hidden; overflow: hidden;
user-select: auto; user-select: auto;
transition: all 0.2s ease;
.icon-live-close { .icon-live-close {
position: absolute; position: absolute;
top: 0; top: 2px;
right: 0; right: 2px;
// left: -100px; // left: -100px;
z-index: 3; z-index: 3;
} }
...@@ -334,7 +343,7 @@ export default { ...@@ -334,7 +343,7 @@ export default {
border-radius: 4px; border-radius: 4px;
box-sizing: border-box; box-sizing: border-box;
img { .coverGif {
object-fit: contain; object-fit: contain;
height: 126px; height: 126px;
} }
...@@ -350,6 +359,11 @@ export default { ...@@ -350,6 +359,11 @@ export default {
color: #ffffff; color: #ffffff;
box-sizing: border-box; box-sizing: border-box;
padding: 0 9px; padding: 0 9px;
.live-replayIcon {
display: inline-block;
width: 10px;
height: 10px;
}
.text { .text {
margin-left: auto; margin-left: auto;
} }
...@@ -394,7 +408,8 @@ export default { ...@@ -394,7 +408,8 @@ export default {
border: none !important; border: none !important;
background: #000000; background: #000000;
.videoShort { .videoShort {
height: calc(100vh - 13.333vh) !important; // height: calc(100vh - 13.333vh) !important;
height: 100%;
} }
.mask { .mask {
display: none; display: none;
...@@ -403,8 +418,15 @@ export default { ...@@ -403,8 +418,15 @@ export default {
.poster-btn { .poster-btn {
display: block; display: block;
} }
/deep/.vjs-control-bar { /deep/.vjs-control-bar {
opacity: 1 !important; 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> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!