shaogen1995 3 lat temu
rodzic
commit
e561ce2a2d
2 zmienionych plików z 8 dodań i 3 usunięć
  1. 3 0
      webM/src/assets/base.css
  2. 5 3
      webM/src/views/stair/index.vue

+ 3 - 0
webM/src/assets/base.css

@@ -144,3 +144,6 @@ body {
   display: none !important;
 }
 
+video{
+  width: 100%;
+}

+ 5 - 3
webM/src/views/stair/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="stair">
+  <div class="stair" :style="`height:${maxHei}px;`">
     <!-- 左上浏览量 -->
     <div class="upleft">
       <div class="back" @click="$router.push('/')">返回</div>
@@ -71,6 +71,7 @@ export default {
       ],
       btnDataAc: null,
       isShowGood: false,
+      maxHei:0
     };
   },
   //监听属性 类似于data概念
@@ -103,7 +104,9 @@ export default {
     this.lookNum = res.data.visit;
   },
   //生命周期 - 挂载完成(可以访问DOM元素)
-  mounted() {},
+  mounted() {
+    this.maxHei =document.documentElement.clientHeight
+  },
   beforeCreate() {}, //生命周期 - 创建之前
   beforeMount() {}, //生命周期 - 挂载之前
   beforeUpdate() {}, //生命周期 - 更新之前
@@ -120,7 +123,6 @@ export default {
   margin: 0 auto;
   padding: 10px 0 0 3px;
   width: 100vw;
-  height: 100vh;
   background: url("../../assets/img/cBg/1.png");
   background-size: 100% 100%;
   .upleft {