Commit a29278d6 by 李伟康

提交代码

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