panhui 2 سال پیش
والد
کامیت
06632b4153
2فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 2 1
      src/components/VideoPlayer.vue
  2. 4 1
      src/views/VideoPage.vue

+ 2 - 1
src/components/VideoPlayer.vue

@@ -194,6 +194,7 @@ defineExpose({ getCurrent, play, pause, setCurrent, changeMuted })
 .video {
 .video {
     width: 100%;
     width: 100%;
     height: calc(100vh - 95px - env(safe-area-inset-bottom) - env(safe-area-inset-top));
     height: calc(100vh - 95px - env(safe-area-inset-bottom) - env(safe-area-inset-top));
+    height: calc(100vh - 95px - constant(safe-area-inset-bottom) - constant(safe-area-inset-top));
 }
 }
 
 
 .video-player {
 .video-player {
@@ -221,7 +222,7 @@ defineExpose({ getCurrent, play, pause, setCurrent, changeMuted })
     position: absolute;
     position: absolute;
     left: 0;
     left: 0;
     right: 0;
     right: 0;
-    bottom: 0px;
+    bottom: 10px;
     --van-slider-button-width: 18px;
     --van-slider-button-width: 18px;
     --van-slider-button-height: 18px;
     --van-slider-button-height: 18px;
     z-index: 30;
     z-index: 30;

+ 4 - 1
src/views/VideoPage.vue

@@ -283,7 +283,9 @@ const isNext = computed(() => {
     bottom: 0;
     bottom: 0;
     left: 0;
     left: 0;
     right: 0;
     right: 0;
-    height: 49px;
+    height: calc(env(safe-area-inset-bottom) + 49px);
+    height: calc(constant(safe-area-inset-bottom) + 49px);
+    box-sizing: border-box;
 
 
     .btn {
     .btn {
         --van-button-mini-font-size: 14px;
         --van-button-mini-font-size: 14px;
@@ -296,6 +298,7 @@ const isNext = computed(() => {
     position: fixed;
     position: fixed;
     right: 18px;
     right: 18px;
     bottom: calc(90px + env(safe-area-inset-bottom));
     bottom: calc(90px + env(safe-area-inset-bottom));
+    bottom: calc(90px + constant(safe-area-inset-bottom));
     .right-btn {
     .right-btn {
         display: flex;
         display: flex;
         flex-direction: column;
         flex-direction: column;