ソースを参照

首页视屏模式

wangtao 2 週間 前
コミット
ad8ecca889
2 ファイル変更9 行追加4 行削除
  1. 2 2
      src/components/layout/banner.vue
  2. 7 2
      src/views/index/index.vue

+ 2 - 2
src/components/layout/banner.vue

@@ -29,10 +29,10 @@ if (typeof window !== 'undefined' && typeof window.globalThis.addEventListener =
     :style="{backgroundImage:`url(${columnImage})`}" class="banner-area">
     </div>
 
-    <!-- <video v-if="modelType ==2" webkit-playsinline="webkit-playsinline" playsinline  id="videoPlay" autoplay loop muted preload="auto" :poster="posterImg"
+    <video v-if="modelType ==2" webkit-playsinline="webkit-playsinline" playsinline  id="videoPlay" autoplay loop muted preload="auto" :poster="posterImg"
         style="width:100%;height:100%;object-fit:fill;" :src="columnImage">
         <source type="video/mp4">
-    </video> -->
+    </video>
     <!-- <img v-if="modelType==3" :src="posterImg" alt="" class="posterImg"> -->
 </template>
 <style lang="scss">

+ 7 - 2
src/views/index/index.vue

@@ -61,9 +61,14 @@ export default defineComponent({
 </script>
 <template>
     <div class="pageContain">
-        <section class="common-bradcrumb-section">
+         <!-- <section class="common-bradcrumb-section">
             <banner />
-        </section>
+        </section> -->
+         <div class="video-section" style="height:100vh">
+            <banner />
+             <!-- 下拉 -->
+            <span class="go_down" @click="go_down"></span>
+        </div>
         <!-- 主体内容 -->
         <section v-if="store.state.pageContent.length>0" style="width:100vw;">
             <div class="whyUs-section pt-60 pb-60" v-for="(arr,index) in store.state.pageContent"