panhui 3 years ago
parent
commit
e41f669026
1 changed files with 11 additions and 4 deletions
  1. 11 4
      src/views/Home.vue

+ 11 - 4
src/views/Home.vue

@@ -112,7 +112,15 @@
                     </div>
                 </div>
                 <div class="rank-list">
-                    <swiper
+                    <div class="rankSwiper">
+                        <hot-collect
+                            v-for="(item, index) in HotCollects"
+                            :key="index"
+                            :index="index"
+                            :info="item"
+                        ></hot-collect>
+                    </div>
+                    <!-- <swiper
                         class="rankSwiper"
                         @reachEnd="reachEnd"
                         @slidePrevTransitionStart="slidePrevTransitionStart"
@@ -121,10 +129,9 @@
                         free-mode
                     >
                         <swiper-slide v-for="(item, index) in HotCollects" :key="index">
-                            <!-- <rank-info :index="index" v-model:info="hotUsers[index]"></rank-info> -->
-                            <hot-collect :index="index" :info="item"></hot-collect>
+                           <rank-info :index="index" v-model:info="hotUsers[index]"></rank-info> 
                         </swiper-slide>
-                    </swiper>
+                    </swiper> -->
                 </div>
             </div>