Commit 677c935a authored by zhengke's avatar zhengke

1

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