Commit 2ed6c8c6 by 李伟康

提交代码

1 parent b4c83a8c
...@@ -4,6 +4,18 @@ ...@@ -4,6 +4,18 @@
class="mask" class="mask"
@click="videoFullscreen = true" @click="videoFullscreen = true"
></div> ></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 <video
id="player-container-id" id="player-container-id"
preload="auto" preload="auto"
...@@ -11,16 +23,27 @@ ...@@ -11,16 +23,27 @@
webkit-playsinline webkit-playsinline
> >
</video> </video>
<kf-modal
v-model="showKf"
:detail="detail"
/>
</div> </div>
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import { KfModal } from './index'
export default { export default {
components: { KfModal },
name: 'LiveBox', name: 'LiveBox',
data () { data () {
return { return {
player: null, player: null,
videoFullscreen: false videoFullscreen: false,
showKf: false,
detail: {
customerServiceQrImg: 'https://img02.glsx.com.cn/weapp/resource/qrcode/company-wx-qrcode2.png'
}
} }
}, },
mounted () { mounted () {
...@@ -64,6 +87,24 @@ export default { ...@@ -64,6 +87,24 @@ export default {
width: 100%; width: 100%;
height: 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 { .videoFullscreen {
width: 100vw; width: 100vw;
...@@ -73,5 +114,9 @@ export default { ...@@ -73,5 +114,9 @@ export default {
.mask { .mask {
display: none; display: none;
} }
.fullscreen-btn,
.poster-btn {
display: block;
}
} }
</style> </style>
\ No newline at end of file \ 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!