Commit 6c4dc420 authored by 黄奎's avatar 黄奎

页面修改

parent 280273c7
<template>
<view class="wordTest">
<button class="">
<button class="" @click="submitWordsTest">
交卷
</button>
<swiper class="swiper" @change="changeSwiper" :current="curTest">
......@@ -42,23 +42,36 @@
ChapterId: 0,
NextChapterId: 0
},
curTest:0,
curTest: 0,
reviewGroupList: [],
prepGroupList: [],
})
let methods = {
getList() {
proxy.$request('/AppletWords/CreateCourseExam', data.msg).then(res => {
data.reviewGroupList=res.Data.reviewGroupList
data.prepGroupList=res.Data.prepGroupList
data.reviewGroupList = res.Data.reviewGroupList
data.prepGroupList = res.Data.prepGroupList
})
},
changeSwiper(val){
data.curTest=val.detail.current
changeSwiper(val) {
data.curTest = val.detail.current
},
next(val,item){
item.IsTrue=val
data.curTest+=1
next(val, item) {
item.IsTrue = val
data.curTest += 1
},
//提交单词测试
submitWordsTest() {
var postMsg = {
ClassId: 1,
CourseId: 1,
ChapterId: 1,
ExamStartTime: "2021-01-12 10:00:00",
Details: data.reviewGroupList
};
proxy.$request('/AppletWords/SubmitWordsExam', postMsg).then(res => {
console.log("SubmitWordsExam", res);
})
}
}
onMounted(() => {
......@@ -75,9 +88,9 @@
title: '单词测试'
});
const userInfo = uni.getStorageSync('userinfo');
this.msg.CourseId=options.CourseId
this.msg.ChapterId=options.ChapterId
this.msg.NextChapterId=options.NextChapterId
this.msg.CourseId = options.CourseId
this.msg.ChapterId = options.ChapterId
this.msg.NextChapterId = options.NextChapterId
this.getList()
},
}
......
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