Commit cea17c87 by chenwq

样式

1 parent 780abcf6
<template>
<div :class="['live-box', { videoFullscreen: videoFullscreen }]" :style="videoStyle" id="live-box">
<div class="small-box">
<img class="icon-small-live" src="@/assets/images/icon-small-live.png" />
<div class="flex small-content">
<div v-if="liveStatus[liveDetail.status] == 'live'" class="live-line">
<div class="side"></div>
<div class="center side"></div>
<div class="side"></div>
</div>
<div class="text">{{liveStatus[liveDetail.status] == 'live' ? '直播' : '回放' }}</div>
</div>
</div>
<div :class="{ videoShort: detail.activityStatus != 3 && detail.buyFlag != 2 }">
<div class="mask" @click="openFullscreen">
<div class="sprite-icon icon-live-close" @click="handleClose"></div>
......@@ -148,8 +159,9 @@ export default {
changeGifStatus() {
this.isShowGif = !this.isShowGif
},
handleClose() {
this.$emit.liveClose()
handleClose(e) {
// e.stopPropagation()
console.log('关闭--22222222222222222')
}
}
}
......@@ -165,6 +177,25 @@ export default {
border-radius: 4px;
overflow: hidden;
-webkit-user-select: auto;
.small-box {
position: relative;
width: 52px;
height: 21px;
font-size: 12px;
font-weight: 600;
color: #ffffff;
.icon-small-live {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.small-content {
z-index: 9;
line-height: 21px;
}
}
.mask {
width: 100%;
height: 100%;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!