Commit cdc28195 authored by 黄奎's avatar 黄奎

页面修改

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