绿满眶商城微信小程序-uniapp
peng
2025-08-29 cf39738f5ebdaf51d9725ee9c21b5d3561737828
pages/video/home-page.vue
@@ -50,7 +50,7 @@
          >
            作品{{`(${videoTotal})`}}
          </view>
          <view
         <view
            class="tab-item"
            :class="{active: currentTab === 'collect'}"
            @click="switchTab('collect')"
@@ -65,7 +65,9 @@
          喜欢
        </view>
        </view>
        <!-- 视频列表 -->
      <scroll-view class="video-list" scroll-y :show-scrollbar="false" @scrolltolower="getPage" v-show="currentTab === 'works' && videoList.length > 0">
         <view class="video-container">
@@ -104,7 +106,10 @@
            </view>
         </view>
      </scroll-view>
      <scroll-view class="video-list" scroll-y :show-scrollbar="false" @scrolltolower="getPage" v-show="currentTab === 'collect' && collectVideoList.length > 0">
      <view>
         <mycollect v-show ="currentTab ==='collect'"></mycollect>
      </view>
   <!--    <scroll-view class="video-list" scroll-y :show-scrollbar="false" @scrolltolower="getPage" v-show="currentTab === 'collect' && collectVideoList.length > 0">
         <view class="video-container">
            <view
              class="video-item"
@@ -121,7 +126,7 @@
               :show-center-play-btn="false"
               object-fit="cover"></video>
   
              <!-- <image class="video-cover" :src="getCoverUrl(item)"></image> -->
              <view class="video-info">
                <view class="video-stats">
                  <view class="stat">
@@ -132,7 +137,7 @@
              </view>
            </view>
         </view>
      </scroll-view>
      </scroll-view> -->
      <scroll-view class="video-list" scroll-y :show-scrollbar="false" @scrolltolower="getPage" v-show="currentTab === 'likes' && likeVideoList.length > 0">
         <view class="video-container">
            <view
@@ -195,8 +200,10 @@
import {getAuthorInfo, getAuthorVideoPage, getAuthorCollectVideoPage, getAuthorLikeVideoPage} from '@/api/user.js'
import {subscribe, unSubscribe, delVideo, updateVideo, userDownVideo} from '@/api/video.js'
import mycollect from '@/pages/video/myCollect.vue'
export default {
  components: {DropdownMenu},
  components: {DropdownMenu,
  mycollect},
  data() {
    return {
     options: [