Commit 88d819cd authored by zhengke's avatar zhengke

修改

parent 80996a17
...@@ -80,14 +80,29 @@ ...@@ -80,14 +80,29 @@
text-align: center; text-align: center;
margin-top:5rpx; margin-top:5rpx;
} }
.loading {
position: fixed;
z-index: 9999;
left:0;
top:0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
}
</style> </style>
<template> <template>
<view class="studyCourse"> <view class="studyCourse">
<view class="Course_Top"> <view class="Course_Top">
<view class="CourseBan">{{CourseName}}</view> <view class="CourseBan">{{CourseName}}</view>
<view class="CourseTotal">{{TotalHours}}</view> <view class="CourseTotal" v-if="TotalHours>0">{{TotalHours}}</view>
</view> </view>
<view class="Course_Bottom"> <div class="loading" v-if="isShowLoad">
<van-loading type="spinner" color="#fff" />
</div>
<view class="Course_Bottom" v-if="ChapterList.length>0">
<view class="Course_List" v-for="(item,index) in ChapterList" :key="index"> <view class="Course_List" v-for="(item,index) in ChapterList" :key="index">
<view class="CourseList_One" @click="getReview(index)"> <view class="CourseList_One" @click="getReview(index)">
<view> <view>
...@@ -124,6 +139,11 @@ ...@@ -124,6 +139,11 @@
</view> </view>
</view> </view>
</view> </view>
<van-empty v-else
class="custom-image"
image="https://img01.yzcdn.cn/vant/custom-empty-image.png"
description="暂无数据"
/>
</view> </view>
</template> </template>
...@@ -167,11 +187,14 @@ ...@@ -167,11 +187,14 @@
CourseId:0 CourseId:0
}, },
CourseName:'', CourseName:'',
TotalHours:0 TotalHours:0,
isShowLoad:false
}) })
let methods = { let methods = {
async getChapterList() { async getChapterList() {
data.isShowLoad=true;
proxy.$request("/AppletIndex/GetMyStudyCourseChapterList", data.msg).then((res) => { proxy.$request("/AppletIndex/GetMyStudyCourseChapterList", data.msg).then((res) => {
data.isShowLoad=false;
if(res.Code==1){ if(res.Code==1){
data.ChapterList = res.Data; data.ChapterList = res.Data;
data.ChapterList.forEach(x=>{ data.ChapterList.forEach(x=>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment