fix: bug

This commit is contained in:
杨航
2025-09-04 09:02:37 +08:00
parent 5185a32424
commit efd34cd239
2 changed files with 26 additions and 8 deletions
+22 -4
View File
@@ -18,7 +18,10 @@
<view class="view-list course-list">
<course-item class="course-item" v-for="itemC in courseList" :key="itemC.crsNum" :itemInfo="itemC" @clickItem="toCourseDetail(itemC)" />
<view class="view-tips" v-show="courseList.length > 0">
{{ showGetMore ? '滚动加载更多' : '全部加载完成' }}
{{ isLoading ? ''
: (showGetMore ? '滚动加载更多' : '全部加载完成') }}
<CommonLoading v-show="isLoading" class="loading-box"/>
</view>
</view>
<!-- <view class="view-result" v-show="courseList.length === 0">暂无数据</view> -->
@@ -60,7 +63,9 @@
<course-item class="course-item" v-for="itemC in courseList" :key="itemC.crsNum" :itemInfo="itemC" @clickItem="toCourseDetail(itemC)" />
</view>
<view class="view-tips" v-if="activeTab === 'course' && courseList.length > 0">
{{ showGetMore ? '滚动加载更多' : '全部加载完成' }}
{{ isLoading ? ''
: (showGetMore ? '滚动加载更多' : '全部加载完成') }}
<CommonLoading v-show="isLoading" class="loading-box"/>
</view>
<view class="view-result" v-show="courseList.length === 0">暂无数据</view>
</view>
@@ -73,7 +78,9 @@
<TaskItem :item="item" v-for="(item, index) in taskList"></TaskItem>
</view>
<view class="view-tips" v-if="activeTab === 'task' && taskList.length > 0">
{{ showGetMore ? '滚动加载更多' : '全部加载完成' }}
{{ isLoading ? ''
: (showGetMore ? '滚动加载更多' : '全部加载完成') }}
<CommonLoading v-show="isLoading" class="loading-box"/>
</view>
<view class="view-result" v-show="taskList.length === 0">暂无数据</view>
</view>
@@ -94,7 +101,9 @@
<ExamItem class="exam-list" :item="item" v-for="item in examList"></ExamItem>
</view>
<view class="view-tips" v-if="activeTab === 'exam' && examList.length > 0">
{{ showGetMore ? '滚动加载更多' : '全部加载完成' }}
{{ isLoading ? ''
: (showGetMore ? '滚动加载更多' : '全部加载完成') }}
<CommonLoading v-show="isLoading" class="loading-box"/>
</view>
<view class="view-result" v-show="examList.length === 0">暂无数据</view>
</view>
@@ -384,6 +393,15 @@ const toCourseDetail = item => {
text-align: center;
color: #999;
font-size: 25rpx;
overflow: hidden;
min-height: 50rpx;
position: relative;
.loading-box{
position: absolute;
left:50%;
top: 50%;
transform: translate(-50%, -50%);
}
}
.model-view {
border: 2px solid #f1f1f1;