소스 검색

活动页详情添加视频播放功能

yuwenjun1997 2 년 전
부모
커밋
fdd98eb1d2
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      pages/h5/activity/activity-detail.vue

+ 1 - 2
pages/h5/activity/activity-detail.vue

@@ -1,7 +1,7 @@
 <template>
     <view class="detail">
         <template v-if="type === 'video'">
-            <video :src="videoUrl"></video>
+            <video :src="videoUrl" :title="title"></video>
         </template>
         <template v-else>
             <image :src="adsImage" mode="widthFix" show-menu-by-longpress></image>
@@ -44,7 +44,6 @@ export default {
     }
     video {
         width: 100vw;
-        height: 100vh;
         background: #999;
     }
 }