Commit cdc28195 authored by 黄奎's avatar 黄奎

页面修改

parent b16aa1dd
......@@ -67,7 +67,7 @@
预计用时10分钟
</view>
<view class="wordBtn"
@click="jumpPage(`/pages/word/word?CourseId=${pageData.Words.CourseId}&&ChapterId=${pageData.Words.NextCourseNo}&&PrevChapterId=${pageData.Words.ReviewCourseNo}`)">
@click="jumpPage(`/pages/word/word?CourseId=${pageData.Words.CourseId}&&ChapterId=${pageData.Words.NextCourseNo}&&ReviewChapterId=${pageData.Words.ReviewCourseNo}`)">
开始学习
</view>
</view>
......
......@@ -35,9 +35,9 @@
} = getCurrentInstance();
let data = reactive({
msg: {
ChapterId: 0,
ChapterId: 0, //当前章节编号
CourseId: 0,
PrevChapterId: 0,
ReviewChapterId: 0,//复习章节编号
},
StudyList: [],
ReviewList: [],
......@@ -104,13 +104,14 @@
};
},
onLoad(options) {
console.log("options",options);
uni.setNavigationBarTitle({
title: '单词学习'
});
this.msg.ChapterId = options.ChapterId??0
this.msg.CourseId = options.CourseId??0
this.msg.PrevChapterId = options.PrevChapterId??0
if(options.ChapterId&&options.CourseId&&options.PrevChapterId){
this.msg.ReviewChapterId = options.ReviewChapterId??0
if(options.ChapterId&&options.CourseId&&options.ReviewChapterId){
this.getData()
}
const userInfo = uni.getStorageSync('userInfo');
......
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