Commit 2ed6c8c6 by 李伟康

提交代码

1 parent b4c83a8c
......@@ -4,6 +4,18 @@
class="mask"
@click="videoFullscreen = true"
></div>
<div
class="fullscreen-btn"
@click="videoFullscreen = false"
>
<img src="https://img02.glsx.com.cn/weapp/resource/scrm-mobile/test/zxjg.jpg">
</div>
<div
class="poster-btn"
@click="showKf= true"
>
<img src="https://img02.glsx.com.cn/weapp/resource/scrm-mobile/test/test1.jpg">
</div>
<video
id="player-container-id"
preload="auto"
......@@ -11,16 +23,27 @@
webkit-playsinline
>
</video>
<kf-modal
v-model="showKf"
:detail="detail"
/>
</div>
</template>
<script type='text/ecmascript-6'>
import { KfModal } from './index'
export default {
components: { KfModal },
name: 'LiveBox',
data () {
return {
player: null,
videoFullscreen: false
videoFullscreen: false,
showKf: false,
detail: {
customerServiceQrImg: 'https://img02.glsx.com.cn/weapp/resource/qrcode/company-wx-qrcode2.png'
}
}
},
mounted () {
......@@ -64,6 +87,24 @@ export default {
width: 100%;
height: 100%;
}
.fullscreen-btn {
display: none;
position: absolute;
right: 20px;
top: 20px;
width: 40px;
height: 40px;
z-index: 2;
}
.poster-btn {
display: none;
position: absolute;
left: 20px;
top: 20px;
width: 40px;
height: 40px;
z-index: 2;
}
}
.videoFullscreen {
width: 100vw;
......@@ -73,5 +114,9 @@ export default {
.mask {
display: none;
}
.fullscreen-btn,
.poster-btn {
display: block;
}
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!