Commit 594ea149 authored by zhengke's avatar zhengke

1

parent 2580d761
...@@ -146,8 +146,8 @@ ...@@ -146,8 +146,8 @@
</view> </view>
<view class="Course_Opera">单词</view> <view class="Course_Opera">单词</view>
</view> </view>
<view @click="jumpToExam(item)">
<view> <view>
<view @click="jumpPage(`/pages/word/test?CourseId=0`)">
<img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/ceshi.png" <img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/ceshi.png"
alt="" /> alt="" />
</view> </view>
...@@ -234,15 +234,18 @@ ...@@ -234,15 +234,18 @@
}) })
data.ChapterList[index].isShow = !data.ChapterList[index].isShow; data.ChapterList[index].isShow = !data.ChapterList[index].isShow;
}, },
jumpPage(url) { jumpToExam(obj) {
if(obj){
let url = `/pages/word/test?CourseId=${obj.CourseId}&&ChapterId=${obj.ChapterNo}&&NextChapterId=${obj.NextChapterNo}`
uni.navigateTo({ uni.navigateTo({
url: url, url: url
}); });
}
}, },
goWordStudy(obj, Type) { goWordStudy(obj, Type) {
if (obj) { if (obj) {
let url = let url =
`/pages/word/wordStudy?CourseId=${obj.ChapterTree.CourseId}&&ChapterId=${obj.ChapterNo}&&ReviewChapterId=${obj.NextChapterNo}&&Type=${Type}&&ClassId=${obj.ClassId}&&CourseName=${this.CourseName}&&TotalHours=${this.TotalHours}` `/pages/word/wordStudy?CourseId=${obj.CourseId}&&ChapterId=${obj.ChapterNo}&&ReviewChapterId=${obj.NextChapterNo}&&Type=${Type}&&ClassId=${obj.ClassId}&&CourseName=${this.CourseName}&&TotalHours=${this.TotalHours}`
uni.navigateTo({ uni.navigateTo({
url: url url: url
}); });
......
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