Commit ff5351b4 authored by 罗超's avatar 罗超

2

parent 65780cf2
...@@ -10,6 +10,11 @@ ...@@ -10,6 +10,11 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, { }, {
"path": "pages/timetable/timeTable", //课表
"style": {
"navigationStyle": "custom"
}
},{
"path": "pages/study/index", "path": "pages/study/index",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
...@@ -49,12 +54,6 @@ ...@@ -49,12 +54,6 @@
{ {
"path": "chapter" //章节内容 "path": "chapter" //章节内容
}, },
{
"path": "timeTable", //课表
"style": {
"navigationStyle": "custom"
}
},
{ {
"path": "askForLeave" //请假 "path": "askForLeave" //请假
}, },
...@@ -134,7 +133,7 @@ ...@@ -134,7 +133,7 @@
"selectedIconPath": "static/image/study_a.png", "selectedIconPath": "static/image/study_a.png",
"text": "学习" "text": "学习"
}, { }, {
"pagePath": "pages/index/index", "pagePath": "pages/timetable/timeTable",
"iconPath": "static/image/course.png", "iconPath": "static/image/course.png",
"selectedIconPath": "static/image/course_a.png", "selectedIconPath": "static/image/course_a.png",
"text": "课表" "text": "课表"
......
...@@ -4,12 +4,12 @@ ...@@ -4,12 +4,12 @@
<view class="navbar"> <view class="navbar">
<van-nav-bar title="课表" fixed title-class="navTitle"> <van-nav-bar title="课表" fixed title-class="navTitle">
<view slot="left" class="chooseDate flex flex_start_center"> <view slot="left" class="chooseDate flex flex_start_center">
<van-icon <!-- <van-icon
name="arrow-left" name="arrow-left"
size="36rpx" size="36rpx"
style="margin-right: 10rpx" style="margin-right: 10rpx"
@click="back" @click="back"
/> /> -->
<view @click="showdatetime">{{ currentDate }}</view> <view @click="showdatetime">{{ currentDate }}</view>
</view> </view>
</van-nav-bar> </van-nav-bar>
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
<view class="flex flex_center_center" v-if="loading"> <view class="flex flex_center_center" v-if="loading">
<van-loading size="48rpx" type="spinner">加载中...</van-loading> <van-loading size="48rpx" type="spinner">加载中...</van-loading>
</view> </view>
<van-empty description="暂无数据" v-if="dataList.length === 0" /> <van-empty description="暂无课程" v-if="dataList.length === 0" />
<view <view
v-for="(item, index) in dataList" v-for="(item, index) in dataList"
:key="index" :key="index"
...@@ -319,7 +319,9 @@ export default { ...@@ -319,7 +319,9 @@ export default {
}; };
}, },
onLoad(options) { onLoad(options) {
this.msg.ClassId = JSON.parse(options.classId); const indexData=uni.getStorageSync('indexData')
// this.msg.ClassId = JSON.parse(options.classId);
this.msg.ClassId = indexData.ClassId
this.getAllData() this.getAllData()
this.msg.StartTime = getToday(); this.msg.StartTime = getToday();
this.msg.EndTime = getToday(); this.msg.EndTime = getToday();
......
...@@ -120,9 +120,7 @@ ...@@ -120,9 +120,7 @@
this.msg.ChapterId = options.ChapterId ?? 0; this.msg.ChapterId = options.ChapterId ?? 0;
this.msg.CourseId = options.CourseId ?? 0; this.msg.CourseId = options.CourseId ?? 0;
this.msg.ReviewChapterId = options.ReviewChapterId ?? 0; this.msg.ReviewChapterId = options.ReviewChapterId ?? 0;
if (options.ChapterId && options.CourseId && options.ReviewChapterId) { this.getData();
this.getData();
}
const userInfo = uni.getStorageSync('userInfo'); const userInfo = uni.getStorageSync('userInfo');
this.readMsg.Stu_Account_Id = userInfo.Id ?? 0; this.readMsg.Stu_Account_Id = userInfo.Id ?? 0;
this.readMsg.CourseId = options.CourseId ?? 0; this.readMsg.CourseId = options.CourseId ?? 0;
......
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