소스 검색

修復bug

tremble 3 년 전
부모
커밋
705806cd97
3개의 변경된 파일12개의 추가작업 그리고 7개의 파일을 삭제
  1. 5 3
      src/components/Controls/Panel/Main.vue
  2. 3 0
      src/components/openVideo/index.vue
  3. 4 4
      src/views/Panel.vue

+ 5 - 3
src/components/Controls/Panel/Main.vue

@@ -275,7 +275,7 @@ onMounted(() => {
   width: 100%;
   border-radius: 6px;
   border: 1px solid rgba(255, 255, 255, 0.2);
-  background: rgba(0, 0, 0, 0.5);
+  background: rgba(0, 0, 0, 0.2);
   display: flex;
   justify-content: space-between;
   box-sizing: border-box;
@@ -325,12 +325,13 @@ onMounted(() => {
   border: 1px solid rgba(255, 255, 255, 0.2);
   margin-top: 8px;
   margin-bottom: 30px;
-  background: rgba(0, 0, 0, 0.5);
+  background: rgba(0, 0, 0, 0.2);
   .navigation {
-    padding: 8px 14px;
+    padding: 8px 0;
 
     .h3 {
       font-size: 14px;
+      padding: 0 14px;
     }
     .swiper-container {
       width: 100%;
@@ -338,6 +339,7 @@ onMounted(() => {
       overflow: hidden;
       margin-top: 8px;
       padding-right: 2px;
+      padding-left: 14px;
       position: relative;
 
       &::after {

+ 3 - 0
src/components/openVideo/index.vue

@@ -20,6 +20,9 @@ onMounted(()=>{
 
     nextTick(async ()=>{
         let res = await apis.get_video()
+        if (!res.data) {
+           return emit('close')
+        }
         videourl.value = res.data.videoUrl
         openvideo$.value.addEventListener('ended',()=>{
             emit('close')

+ 4 - 4
src/views/Panel.vue

@@ -125,10 +125,10 @@ onMounted(() => {
         KanKan.Animate.transitions.start((progress) => {
           panelNewTop.value = orgTop - value * progress;
           let opc = (pos.wHeight - panelNewTop.value) / pos.eHeight;
-          if (opc < 0.3) {
-            opc = 0.3;
-          } else if (opc > 0.7) {
-            opc = 0.7;
+          if (opc < 0.2) {
+            opc = 0.2;
+          } else if (opc > 0.5) {
+            opc = 0.5;
           }
           $color.forEach((item) => {
             item.style.backgroundColor = `rgba(0, 0, 0, ${opc})`;