Commit b16aa1dd authored by 罗超's avatar 罗超

2

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