Commit 573815ef by lijiabin

【需求 20331】 styles: 优化样式

parent 19beb9bd
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
<video <video
:src="articleDetail.articleVideoUrl" :src="articleDetail.articleVideoUrl"
controls controls
class="w-80% aspect-video" class="w-80% aspect-video bg-black"
:poster="`${articleDetail.articleVideoUrl}?x-oss-process=video/snapshot,t_1000,f_jpg`" :poster="`${articleDetail.articleVideoUrl}?x-oss-process=video/snapshot,t_1000,f_jpg`"
/> />
</div> </div>
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
/> />
</div> </div>
<div v-if="articleDetail.type === ArticleTypeEnum.VIDEO" class="flex justify-center"> <div v-if="articleDetail.type === ArticleTypeEnum.VIDEO" class="flex justify-center">
<video :src="articleDetail.videoUrl" controls class="w-80% aspect-video" /> <video :src="articleDetail.videoUrl" controls class="w-80% aspect-video bg-black" />
</div> </div>
</div> </div>
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
<video <video
:src="articleDetail.articleVideoUrl" :src="articleDetail.articleVideoUrl"
controls controls
class="w-80% aspect-video" class="w-80% aspect-video bg-black"
:poster="`${articleDetail.articleVideoUrl}?x-oss-process=video/snapshot,t_1000,f_jpg`" :poster="`${articleDetail.articleVideoUrl}?x-oss-process=video/snapshot,t_1000,f_jpg`"
/> />
</div> </div>
......
...@@ -24,11 +24,12 @@ ...@@ -24,11 +24,12 @@
</div> </div>
</div> </div>
<!-- 视频 16/ 9 -->
<div class="w-full bg-black aspect-video"> <div class="w-full bg-black aspect-video">
<video <video
ref="videoRef" ref="videoRef"
:src="videoDetail?.videoUrl" :src="videoDetail?.videoUrl"
class="w-full h-full object-contain" class="w-full aspect-video object-contain"
controls controls
@play="handlePlay" @play="handlePlay"
@pause="handlePause" @pause="handlePause"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment