Commit 1098477f authored by zhengke's avatar zhengke

修改

parent 18d31f24
......@@ -24,7 +24,7 @@
}
.Course_Bottom {
min-height: 80vh;
min-height: 89vh;
background-color: #FFFFFF;
border-radius: 24rpx;
margin-top: 32rpx;
......@@ -91,14 +91,15 @@
<view class="Course_List" v-for="(item,index) in ChapterList" :key="index">
<view class="CourseList_One" @click="getReview(index)">
<view>
<van-circle v-model="currentRate" layer-color="#E4E5FB" :size="70" color="#4C50E7" :rate="100" :speed="100" :text="getSpeed(currentRate)" />
<van-circle :value="item.StudyProgress" layer-color="#E4E5FB" :size="75" color="#4C50E7" :rate="100" :speed="100" :text="getSpeed(item.StudyProgress)" />
</view>
<view class="Course_SeName">
<view class="Course_Name">{{item.ChapterTree.ChapterName}}</view>
<view class="Course_Index">{{item.ChapterTree.ChapterNo}}</view>
</view>
<view>
<van-rate v-model="value" :size="20" :disabled="true" color="#ffd21e" :count="3" void-icon="star" void-color="#eee" />
<van-rate :value="item.Score" :size="20" readonly color="#FAC217"
void-color="#b2b2b2" void-icon="star" icon="star" :count="3" />
</view>
</view>
<view class="Course_Two" v-if="item.isShow">
......@@ -138,9 +139,6 @@
onMounted,
provide,
} from "vue";
import {
GetMyStudyCourseChapterList, //课程列表
} from "../../api/study.js";
export default {
components: {},
onLoad(options) {
......@@ -160,11 +158,10 @@
}
},
setup(props) {
let { proxy } = getCurrentInstance();
let data = reactive({
ChapterList: [], //课程列表
statusBarHeight: 0,
currentRate: 90,
value:2,
msg:{
ClassId:0,
CourseId:0
......@@ -174,14 +171,14 @@
})
let methods = {
async getChapterList() {
let res = await GetMyStudyCourseChapterList(data.msg);
if (res.Code == 1) {
console.log(res)
proxy.$request("/AppletIndex/GetMyStudyCourseChapterList", data.msg).then((res) => {
if(res.Code==1){
data.ChapterList = res.Data;
data.ChapterList.forEach(x=>{
x.isShow=false
})
}
});
},
getSpeed(score){
if(score<100){
......@@ -201,7 +198,6 @@
}
}
onMounted(() => {
that.getChapterList() //我的课程章节列表
data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
})
let that = methods;
......
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