Commit 1098477f authored by zhengke's avatar zhengke

修改

parent 18d31f24
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
} }
.Course_Bottom { .Course_Bottom {
min-height: 80vh; min-height: 89vh;
background-color: #FFFFFF; background-color: #FFFFFF;
border-radius: 24rpx; border-radius: 24rpx;
margin-top: 32rpx; margin-top: 32rpx;
...@@ -91,14 +91,15 @@ ...@@ -91,14 +91,15 @@
<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>
<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>
<view class="Course_SeName"> <view class="Course_SeName">
<view class="Course_Name">{{item.ChapterTree.ChapterName}}</view> <view class="Course_Name">{{item.ChapterTree.ChapterName}}</view>
<view class="Course_Index">{{item.ChapterTree.ChapterNo}}</view> <view class="Course_Index">{{item.ChapterTree.ChapterNo}}</view>
</view> </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> </view>
<view class="Course_Two" v-if="item.isShow"> <view class="Course_Two" v-if="item.isShow">
...@@ -138,9 +139,6 @@ ...@@ -138,9 +139,6 @@
onMounted, onMounted,
provide, provide,
} from "vue"; } from "vue";
import {
GetMyStudyCourseChapterList, //课程列表
} from "../../api/study.js";
export default { export default {
components: {}, components: {},
onLoad(options) { onLoad(options) {
...@@ -160,11 +158,10 @@ ...@@ -160,11 +158,10 @@
} }
}, },
setup(props) { setup(props) {
let { proxy } = getCurrentInstance();
let data = reactive({ let data = reactive({
ChapterList: [], //课程列表 ChapterList: [], //课程列表
statusBarHeight: 0, statusBarHeight: 0,
currentRate: 90,
value:2,
msg:{ msg:{
ClassId:0, ClassId:0,
CourseId:0 CourseId:0
...@@ -174,14 +171,14 @@ ...@@ -174,14 +171,14 @@
}) })
let methods = { let methods = {
async getChapterList() { async getChapterList() {
let res = await GetMyStudyCourseChapterList(data.msg); proxy.$request("/AppletIndex/GetMyStudyCourseChapterList", data.msg).then((res) => {
if (res.Code == 1) { if(res.Code==1){
console.log(res)
data.ChapterList = res.Data; data.ChapterList = res.Data;
data.ChapterList.forEach(x=>{ data.ChapterList.forEach(x=>{
x.isShow=false x.isShow=false
}) })
} }
});
}, },
getSpeed(score){ getSpeed(score){
if(score<100){ if(score<100){
...@@ -201,7 +198,6 @@ ...@@ -201,7 +198,6 @@
} }
} }
onMounted(() => { onMounted(() => {
that.getChapterList() //我的课程章节列表
data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight; data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
}) })
let that = methods; 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