Commit 0c7fc8ef authored by zhengke's avatar zhengke

修改

parent 856df887
...@@ -107,4 +107,16 @@ export function GetQuestionWords(data) { ...@@ -107,4 +107,16 @@ export function GetQuestionWords(data) {
method: 'post', method: 'post',
data data
}) })
}
/**
* 点击答案提交答题
* @param {JSON参数} data
*/
export function SetStudentPractice(data) {
return request({
url: '/Exam/SetStudentPractice',
method: 'post',
data
})
} }
\ No newline at end of file
This diff is collapsed.
...@@ -216,7 +216,7 @@ ...@@ -216,7 +216,7 @@
<view class="Ques_Num">{{TypeObj.listeningFinishCount}}/{{TypeObj.listeningTotalCount}}</view> <view class="Ques_Num">{{TypeObj.listeningFinishCount}}/{{TypeObj.listeningTotalCount}}</view>
<img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/word3.png" alt="" /> <img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/word3.png" alt="" />
</view> </view>
<view class="Ques_Circle" style="margin-right:0;" @click="goExam()"> <view class="Ques_Circle" style="margin-right:0;" @click="goExam(4)">
<view class="Ques_Top">阅读</view> <view class="Ques_Top">阅读</view>
<view class="Ques_Num">{{TypeObj.readingFinishCount}}/{{TypeObj.readingTotalCount}}</view> <view class="Ques_Num">{{TypeObj.readingFinishCount}}/{{TypeObj.readingTotalCount}}</view>
<img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/word4.png" alt="" /> <img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/word4.png" alt="" />
......
...@@ -9,19 +9,10 @@ ...@@ -9,19 +9,10 @@
</template> </template>
</van-nav-bar> </van-nav-bar>
<view class="exam-con"> <view class="exam-con">
<!-- <view v-for="(item, index) in dataList" :key="index">
<readingCompre
:startIndex="item.startIndex"
:paperData="dataList"
:sort="index"
:isOperate="isOperate"
:ExamStatus="ExamStatus"
@answerChange="getAnswerChange($event, index)"
v-if="item.QuestionTypeKey === 'reading-comprehensio' && index === changeIndex"
/>
</view> -->
<!-- 单词 --> <!-- 单词 -->
<word v-if="Type==1" :paperData="dataList" /> <word :paperData="dataList" v-if="Type==1" />
<!-- 阅读理解 -->
<readingCompre :paperData="dataList" v-if="Type==4"/>
</view> </view>
<van-toast id="van-toast" /> <van-toast id="van-toast" />
</view> </view>
...@@ -54,11 +45,6 @@ export default { ...@@ -54,11 +45,6 @@ export default {
console.log(refs); console.log(refs);
let data = reactive({ let data = reactive({
statusBarHeight: 0, statusBarHeight: 0,
msg: {
pageIndex: 1,
pageSize: 10 
},
dataList: [], dataList: [],
changeIndex: 0, //大题序号 changeIndex: 0, //大题序号
isOperate: true, //考试状态 判断是考试还是查看答案 isOperate: true, //考试状态 判断是考试还是查看答案
...@@ -86,20 +72,20 @@ export default { ...@@ -86,20 +72,20 @@ export default {
if (res) { if (res) {
if (res.Code == 1) { if (res.Code == 1) {
this.dataList = res.Data.PageData; this.dataList = res.Data.PageData;
console.log(data.dataList,'数据'); console.log(data.dataList,'数据');
} }
} }
}); });
}, },
async GetMyQuestionReading() { GetMyQuestionReading() {
let res = await GetQuestionReading(data.msg); let res = GetQuestionReading(data.examMsg).then(res=>{
if (res) { if (res) {
if (res.Code == 1) { if (res.Code == 1) {
console.log(res,'数据'); console.log(res,'数据');
this.dataList = res.Data.PageData; this.dataList = res.Data.PageData;
} }
} }
});
}, },
//获取答案改变后的数据 //获取答案改变后的数据
getAnswerChange(val, index) { getAnswerChange(val, index) {
...@@ -130,7 +116,9 @@ export default { ...@@ -130,7 +116,9 @@ export default {
if(this.Type==1){ if(this.Type==1){
this.GetWords(); this.GetWords();
} }
// await this.GetMyQuestionReading(); if(this.Type==4){
this.GetMyQuestionReading();
}
}, },
}; };
</script> </script>
......
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