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

页面修改

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