Commit 677c935a authored by zhengke's avatar zhengke

1

parent 30b0739c
<style scoped>
.studyCourse {
/* width: 100%; */
/* height: 100vh; */
height: 100vh;
background: #F5F5F5;
padding: 32rpx;
}
......@@ -83,8 +83,8 @@
<template>
<view class="studyCourse">
<view class="Course_Top">
<view class="CourseBan">韩语兴趣入门班</view>
<view class="CourseTotal">226</view>
<view class="CourseBan">{{CourseName}}</view>
<view class="CourseTotal">{{TotalHours}}</view>
</view>
<view class="Course_Bottom">
<view class="Course_List" v-for="(item,index) in ChapterList" :key="index">
......@@ -146,21 +146,34 @@
uni.setNavigationBarTitle({
title: "所有单词",
});
if(options.ClassId&&options.CourseId){
this.msg.ClassId = options.ClassId;
this.msg.CourseId = options.CourseId
this.getChapterList();
}
if(options.CourseName){
this.CourseName = options.CourseName
}
if(options.TotalHours){
this.TotalHours = options.TotalHours
}
},
setup(props) {
let data = reactive({
ChapterList: [], //课程列表
statusBarHeight: 0,
currentRate: 90,
value:2
value:2,
msg:{
ClassId:0,
CourseId:0
},
CourseName:'',
TotalHours:0
})
let methods = {
async getChapterList() {
let msg = {
ClassId:5,
CourseId:1
};
let res = await GetMyStudyCourseChapterList(msg);
let res = await GetMyStudyCourseChapterList(data.msg);
if (res.Code == 1) {
console.log(res)
data.ChapterList = res.Data;
......
......@@ -521,8 +521,12 @@
},
gourl(){//学习列表
let ClassId = data.CourseList[data.current].ClassId;
let CourseId = data.CourseList[data.current].CourseId;
let CourseName = data.CourseList[data.current].CourseName;
let TotalHours = data.CourseList[data.current].TotalHours;
uni.navigateTo({
url:'/pages/study/courseList'
url:'/pages/study/courseList?ClassId='+ClassId+'&CourseId='+CourseId+'&CourseName='+CourseName+'&TotalHours='+TotalHours
})
},
gourlkaoshilist(){
......
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