Commit 0c7fc8ef authored by zhengke's avatar zhengke

修改

parent 856df887
......@@ -107,4 +107,16 @@ export function GetQuestionWords(data) {
method: 'post',
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 @@
<view class="Ques_Num">{{TypeObj.listeningFinishCount}}/{{TypeObj.listeningTotalCount}}</view>
<img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/word3.png" alt="" />
</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_Num">{{TypeObj.readingFinishCount}}/{{TypeObj.readingTotalCount}}</view>
<img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/word4.png" alt="" />
......
......@@ -9,19 +9,10 @@
</template>
</van-nav-bar>
<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>
<van-toast id="van-toast" />
</view>
......@@ -54,11 +45,6 @@ export default {
console.log(refs);
let data = reactive({
statusBarHeight: 0,
msg: {
pageIndex: 1,
pageSize: 10 
},
dataList: [],
changeIndex: 0, //大题序号
isOperate: true, //考试状态 判断是考试还是查看答案
......@@ -86,20 +72,20 @@ export default {
if (res) {
if (res.Code == 1) {
this.dataList = res.Data.PageData;
console.log(data.dataList,'数据');
console.log(data.dataList,'数据');
}
}
});
},
async GetMyQuestionReading() {
let res = await GetQuestionReading(data.msg);
if (res) {
if (res.Code == 1) {
console.log(res,'数据');
this.dataList = res.Data.PageData;
}
}
GetMyQuestionReading() {
let res = GetQuestionReading(data.examMsg).then(res=>{
if (res) {
if (res.Code == 1) {
console.log(res,'数据');
this.dataList = res.Data.PageData;
}
}
});
},
//获取答案改变后的数据
getAnswerChange(val, index) {
......@@ -130,7 +116,9 @@ export default {
if(this.Type==1){
this.GetWords();
}
// await this.GetMyQuestionReading();
if(this.Type==4){
this.GetMyQuestionReading();
}
},
};
</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