Commit b16aa1dd authored by 罗超's avatar 罗超

2

parent 2ce6b814
......@@ -112,6 +112,8 @@
"style": {
"navigationStyle": "custom"
}
},{
"path": "test"
}]
}
],
......
......@@ -132,7 +132,7 @@
<view class="Course_Opera">复习</view>
</view>
<view>
<view>
<view @click="jumpPage(`/pages/word/test?CourseId=0`)">
<img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/ceshi.png" alt="" />
</view>
<view class="Course_Opera">测试</view>
......@@ -182,7 +182,6 @@
let { proxy } = getCurrentInstance();
let data = reactive({
ChapterList: [], //课程列表
statusBarHeight: 0,
msg:{
ClassId:0,
CourseId:0
......@@ -219,10 +218,14 @@
}
})
data.ChapterList[index].isShow=!data.ChapterList[index].isShow;
}
},
jumpPage(url) {
uni.navigateTo({
url: url,
});
},
}
onMounted(() => {
data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
})
let that = methods;
return {
......
......@@ -169,7 +169,7 @@
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/piao4.png" alt="" />
<view class="study_Jiyi">记忆时长</view>
<view class="study_GoCeshi">马上去测试</view>
<view class="study_GoCeshi" @click="goTest(url)">马上去测试</view>
<view class="study_GoLearn">再学习一次</view>
<view class="studyBack" @click="goIndex">返回首页</view>
</view>
......@@ -194,7 +194,8 @@
proxy
} = getCurrentInstance();
let data = reactive({
stars: 2
stars: 2,
url:'',
})
let methods = {
back() {
......@@ -202,14 +203,16 @@
url: '/pages/word/word'
})
},
goIndex(){
goIndex() {
uni.switchTab({
url: '/pages/index/index'
});
},
getTest(){
}
goTest(url) {
uni.navigateTo({
url: url,
});
},
}
onMounted(() => {
......@@ -219,6 +222,10 @@
...toRefs(data),
...methods,
};
},
onLoad(options) {
console.log(226, options)
this.url=`/pages/word/test?CourseId=${options.CourseId}&&ChapterId=${options.ChapterId} &&NextChapterId=${options.NextChapterId}`
}
}
</script>
......@@ -34,7 +34,6 @@
proxy
} = getCurrentInstance();
let data = reactive({
test: [1, 2, 3],
msg: {
ChapterId: 0,
CourseId: 0,
......@@ -42,7 +41,7 @@
},
StudyList: [],
ReviewList: [],
current: 25,
current: 73,
readMsg: {
Id: 0,
ClassId: 1,
......@@ -77,7 +76,7 @@
const total = data.StudyList.length + data.ReviewList.length + 1
if (val.detail.current + 1 == total && total > 1) {
uni.navigateTo({
url: "/pages/word/studyComplete"
url: "/pages/word/studyComplete?CourseId="+data.readMsg.CourseId+'&&ChapterId='+data.readMsg.ChapterId+'&&NextChapterId='+'0'
})
}
},
......@@ -96,7 +95,7 @@
}
onMounted(() => {
})
let that = methods;
return {
......@@ -106,7 +105,7 @@
},
onLoad(options) {
uni.setNavigationBarTitle({
title: '新的标题'
title: '单词学习'
});
this.msg.ChapterId = options.ChapterId??0
this.msg.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