绿满眶商城微信小程序-uniapp
peng
2025-06-27 3f7acbae32700d7c3c2f883968ea33d436df5219
pages/kitchen/KitchenVideo.vue
@@ -2,7 +2,7 @@
  <view class="video-container">
    <!-- 视频加载 -->
    <zero-loading v-show="videoLoading" type="circle" color="#0ebd57" text=""></zero-loading>
    <view class="showLeft" @click="showDrawer('showLeft')" v-if="!showLeft">
    <view class="showLeft" @click="showDrawer('showLeft')" v-if="!showLeft" :style="{top: buttonHeight+'px'}">
      <uni-icons type="right" size="30"></uni-icons>
    </view>
    <!-- 视频列表 -->
@@ -238,7 +238,7 @@
      </view>
    </uni-popup>
    <uni-drawer ref="showLeft" mode="left" width="120" :cus-style="true" height="80vh"
                @change="change($event,'showLeft')" class="navigationLeft">
                @change="change($event,'showLeft')" class="navigationLeft" :drawerTop="buttonHeight">
      <scroll-view class="typeNavigation" :scroll-y="true" :show-scrollbar="false">
        <view class="typeNavigationItem" :class="{typeNavigationItemCheck:currentCategort ==item.id}"
              @click="chooseCategory(item.id)" v-for="item in categoryList" :key="item.id">
@@ -274,6 +274,7 @@
  },
  data() {
    return {
     buttonHeight:0,
      showLeft:false,
      currentCategort: '',
      categoryList: [],
@@ -364,6 +365,9 @@
    this.startHidenTime = Date.now()
  },
  onLoad() {
     // 获取状态栏高度
     const systemInfo = uni.getSystemInfoSync();
     this.buttonHeight = systemInfo.statusBarHeight;
    this.getKitchenTypeList();
    this.loadVideos();
  },
@@ -939,7 +943,6 @@
.showLeft {
  display: flex;
  top: 50rpx;
  left: 0;
  align-items: center;
  justify-content: flex-start;