黄琪勇 преди 10 месеца
родител
ревизия
3b1642b284
променени са 3 файла, в които са добавени 13 реда и са изтрити 13 реда
  1. 3 3
      src/views/creation/index-share.tsx
  2. 9 9
      src/views/creation/index.module.less
  3. 1 1
      src/views/creation/playCreation/index.module.less

+ 3 - 3
src/views/creation/index-share.tsx

@@ -445,12 +445,12 @@ export default defineComponent({
     }
     onMounted(async () => {
       __init();
-      window.addEventListener('resize', setFullHeight)
+      //window.addEventListener('resize', setFullHeight)
     });
 
     onUnmounted(() => {
       cleanScrollEvent()
-      window.removeEventListener('resize', setFullHeight)
+      //window.removeEventListener('resize', setFullHeight)
       state._plrl?.destroy()
     });
 
@@ -481,7 +481,7 @@ export default defineComponent({
         style={
           {
             '--barheight':state.heightV + "px",
-            "--creationHeight":creationHeight.value ? creationHeight.value+"px" : "100vh"
+            // "--creationHeight":creationHeight.value ? creationHeight.value+"px" : "100vh"
           }
         }
         class={[

+ 9 - 9
src/views/creation/index.module.less

@@ -1,8 +1,8 @@
 .creationBg{
   position: fixed;
   z-index: -1;
-  width: 100vw;
-  height: var(--creationHeight, 100vh);
+  width: 100%;
+  height: 100%;
   min-height: 100vh;
   top: 0;
   left: 0;
@@ -227,7 +227,7 @@
 
 .musicSection {
   width: 100%;
-  min-height: calc(100vh - var(--barheight) - 20px - 14vh - 210px - 55px - 80px);
+  min-height: calc(100% - var(--barheight) - 20px - 14vh - 210px - 55px - 80px);
   display: flex;
   flex-direction: column;
   justify-content: flex-end;
@@ -563,7 +563,7 @@
   }
 }
 .musicShareSection{
-  min-height: calc(100vh - var(--barheight) - 20vh - 210px - 55px);
+  min-height: calc(100% - var(--barheight) - 20vh - 210px - 55px);
 }
 .likeShareItem{
   background-color: initial;
@@ -656,7 +656,7 @@
   }
 }
 .isEmpty{
-  height: calc(100vh - var(--barheight));
+  height: calc(100% - var(--barheight));
   display: flex;
   align-items: center;
 }
@@ -668,10 +668,10 @@
       height: 340px;
     }
     .musicSection{
-      min-height: calc(100vh - var(--barheight) - 20px - 14vh - 340px - 55px - 80px);
+      min-height: calc(100% - var(--barheight) - 20px - 14vh - 340px - 55px - 80px);
     }
     .musicShareSection{
-      min-height: calc(100vh - var(--barheight) - 20vh - 340px - 55px);
+      min-height: calc(100% - var(--barheight) - 20vh - 340px - 55px);
     }
   }
 }
@@ -682,8 +682,8 @@
   top: 0;
   right: 0;
   bottom: 0;
-  width: 100vw;
-  height: var(--creationHeight, 100vh);
+  width: 100%;
+  height: 100%;
   min-height: 100vh;
   display: flex;
   flex-direction: column;

+ 1 - 1
src/views/creation/playCreation/index.module.less

@@ -180,7 +180,7 @@
     z-index: 12;
     display: none;
     &.playIngShow{
-      display: initial;
+      display: block;
     }
   }
   .backBox{