From 893ff90c6e21fa3a5241a8ae9b33836037cd5912 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期四, 29 八月 2024 15:19:17 +0800
Subject: [PATCH] 提交

---
 pages/tabBar/wearhouse/wearhouse.vue |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/pages/tabBar/wearhouse/wearhouse.vue b/pages/tabBar/wearhouse/wearhouse.vue
index 4a4f463..a05728a 100644
--- a/pages/tabBar/wearhouse/wearhouse.vue
+++ b/pages/tabBar/wearhouse/wearhouse.vue
@@ -15,7 +15,7 @@
 		</view>
 		<!-- 页面内容 -->
     <view class="m-p-15">
-      <view class="cardList">
+      <view class="cardList" v-if="quizList && quizList.length>0">
         <scroll-view scroll-y="true" class="scroll-Y" @scrolltoupper="upper"
                      @scrolltolower="lower" lower-threshold="150" @scroll="scrollView" style="height:100%">
           <view style="padding: 20px 0 20px">
@@ -35,6 +35,7 @@
           </view>
         </scroll-view>
       </view>
+      <u-empty style="margin-top: 80px" v-else text="暂无记录" mode="data"></u-empty>
     </view>
 		<tabBar :currentPagePath="page"></tabBar>
 	</view>
@@ -96,7 +97,7 @@
         getQuizHouse(t.classParams).then(res => {
           if(res.code == 200) {
             let list = res.data.list?res.data.list: [];
-            if (res.pageNum != 1) {
+            if (res.data.pageNum != 1) {
               t.quizList = t.quizList.concat(list)
             } else {
               t.quizList = list

--
Gitblit v1.9.2