Commit a29278d6 by 李伟康

提交代码

1 parent fb363b62
......@@ -13,9 +13,13 @@ module.exports = {
viewportWidth: 375, // 视窗的宽度,对应的是我们设计稿的宽度,一般是750
unitPrecision: 3, // 指定`px`转换为视窗单位值的小数位数(很多时候无法整除)
viewportUnit: 'vw', // 指定需要转换成的视窗单位,建议使用vw
selectorBlackList: ['.ignore', '.hairlines', 'ign-'], // 指定不转换为视窗单位的类,可以自定义,可以无限添加,建议定义一至两个通用的类名
minPixelValue: 1, // 小于或等于`1px`不转换为视窗单位,你也可以设置为你想要的值
mediaQuery: false // 允许在媒体查询中转换`px`
selectorBlackList: [], // 指定不转换为视窗单位的类,可以自定义,可以无限添加,建议定义一至两个通用的类名
minPixelValue: 0.5, // 小于或等于`1px`不转换为视窗单位,你也可以设置为你想要的值
mediaQuery: false, // 允许在媒体查询中转换`px`
landscape: true,
landscapeUnit: 'vw', // (String) 横屏时使用的单位
landscapeWidth: 812,
// viewportHeight:812,
}
}
}
\ No newline at end of file
......@@ -134,7 +134,7 @@ export default {
top: 0;
z-index: -1;
img {
width: 375px;
width: 100%;
height: 200px;
}
}
......
......@@ -10,13 +10,13 @@
class="fullscreen-btn"
@click="videoFullscreen = false"
>
<img src="https://img02.glsx.com.cn/weapp/resource/scrm-mobile/test/zxjg.jpg">
<img src="https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/fullscreen.png">
</div>
<div
class="poster-btn"
@click="showKf= true"
>
<img src="https://img02.glsx.com.cn/weapp/resource/scrm-mobile/test/test1.jpg">
<img src="https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/gift.gif">
</div>
<video
id="player-container-id"
......@@ -60,7 +60,7 @@ export default {
autoplay: true,
loop: true,
controlBar: {
fullscreenToggle: false,
fullscreenToggle: false
}
})
_this.player.volume(0)
......@@ -83,8 +83,8 @@ export default {
<style scoped lang='scss'>
.live-box {
position: fixed;
top: 187px;
right: 8px;
top: 23%;
right: 2%;
z-index: 7;
width: 82px;
height: 144px;
......@@ -113,23 +113,26 @@ export default {
#player-container-id {
width: 100%;
height: 100%;
video{
object-fit: cover !important;
}
}
.fullscreen-btn {
display: none;
position: absolute;
right: 20px;
top: 20px;
width: 40px;
height: 40px;
right: 8px;
top: 14px;
width: 32px;
height: 32px;
z-index: 2;
}
.poster-btn {
display: none;
position: absolute;
left: 20px;
top: 20px;
width: 40px;
height: 40px;
left: 17px;
top: 17px;
width: 76px;
height: 115px;
z-index: 2;
}
/deep/.vjs-control-bar {
......@@ -137,13 +140,13 @@ export default {
}
}
.videoFullscreen {
width: 100vw;
height: 100vh;
left: 0;
top: 0;
right: 0;
bottom: 0;
border: none;
width: 100vw !important;
height: 100vh !important;
left: 0 !important;
top: 0 !important;
right: 0 !important;
bottom: 0 !important;
border: none !important;
.mask {
display: none;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!