|
|
@ -10,7 +10,7 @@ |
|
|
<view class="title">恭喜完成本次演练!</view> |
|
|
<view class="title">恭喜完成本次演练!</view> |
|
|
<view class="question-wrap"> |
|
|
<view class="question-wrap"> |
|
|
<view class="question-list"> |
|
|
<view class="question-list"> |
|
|
<view class="question-item" v-for="(item, i) in questionList" :key="i" @click="itemClickHandler(item)"> |
|
|
<view :class="item.correct === 0 ? 'question-item erritem':'question-item'" v-for="(item, i) in questionList" :key="i" @click="itemClickHandler(item)"> |
|
|
<span class="question-num">{{i+1}}</span> |
|
|
<span class="question-num">{{i+1}}</span> |
|
|
</view> |
|
|
</view> |
|
|
<!-- <view class="question-item erritem" v-for="(item, i) in questionList" :key="i" @click="itemClickHandler(item)"> |
|
|
<!-- <view class="question-item erritem" v-for="(item, i) in questionList" :key="i" @click="itemClickHandler(item)"> |
|
|
@ -21,9 +21,11 @@ |
|
|
<view class="answer-content"> |
|
|
<view class="answer-content"> |
|
|
<view class="qucont">{{ask}}</view> |
|
|
<view class="qucont">{{ask}}</view> |
|
|
<view class="youans"><label>您的答案:</label>{{answer}}</view> |
|
|
<view class="youans"><label>您的答案:</label>{{answer}}</view> |
|
|
<view class="corans"><label>正确答案:</label>{{answer}}</view> |
|
|
<view class="corans"><label>正确答案:</label>{{correctAnswer}}</view> |
|
|
|
|
|
<view v-if="analysis!=='' && analysis!==null"> |
|
|
<view class="analys"><label>解析:</label> |
|
|
<view class="analys"><label>解析:</label> |
|
|
<view>解析内容解析内容……</view> |
|
|
<view>{{analysis}}</view> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
@ -76,14 +78,16 @@ |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
"questionFreId":"59088ceb55644b03b8d0c7d48d2f7d39", |
|
|
"questionFreId":"8eefa1161f4643ccaed9404949911a39", |
|
|
"roleId":"5f96b1baae1a47fbb17215a5dc46f5ce", |
|
|
"roleId":"8ad2af376ec64f519147030497086a96", |
|
|
"userId":"", |
|
|
"userId":"", |
|
|
"sceneId": "", |
|
|
"sceneId": "", |
|
|
questionList: [], |
|
|
questionList: [], |
|
|
recordList: [], |
|
|
recordList: [], |
|
|
"ask":"", |
|
|
"ask":"", |
|
|
"answer":"", |
|
|
"answer":"", |
|
|
|
|
|
"correctAnswer":"", |
|
|
|
|
|
"analysis":"", |
|
|
"showLayer":true, |
|
|
"showLayer":true, |
|
|
"showAnlysisc":false, |
|
|
"showAnlysisc":false, |
|
|
"showMedal":true, |
|
|
"showMedal":true, |
|
|
@ -114,9 +118,9 @@ |
|
|
this.showLayer = false |
|
|
this.showLayer = false |
|
|
clearTimeout(this.timer) |
|
|
clearTimeout(this.timer) |
|
|
}, 5000) |
|
|
}, 5000) |
|
|
//this.roleId = options.roleId |
|
|
this.roleId = options.roleId |
|
|
//this.questionFreId = options.questionFreId |
|
|
//this.questionFreId = options.questionFreId |
|
|
this.sceneId = options.sceneId; |
|
|
//this.sceneId = options.sceneId; |
|
|
this.getQuestionList() |
|
|
this.getQuestionList() |
|
|
this.getRecordList() |
|
|
this.getRecordList() |
|
|
this.editUserMedal(); |
|
|
this.editUserMedal(); |
|
|
@ -146,6 +150,8 @@ |
|
|
if (this.questionList.length != 0) { |
|
|
if (this.questionList.length != 0) { |
|
|
this.ask = this.questionList[0].ask; |
|
|
this.ask = this.questionList[0].ask; |
|
|
this.answer = this.questionList[0].answer; |
|
|
this.answer = this.questionList[0].answer; |
|
|
|
|
|
this.correctAnswer = this.questionList[0].correctAnswer; |
|
|
|
|
|
this.analysis = this.questionList[0].analysis |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//uni.$showMsg('数据请求成功!') |
|
|
//uni.$showMsg('数据请求成功!') |
|
|
@ -201,6 +207,8 @@ |
|
|
if (item !== "") { |
|
|
if (item !== "") { |
|
|
this.ask = item.ask |
|
|
this.ask = item.ask |
|
|
this.answer = item.answer |
|
|
this.answer = item.answer |
|
|
|
|
|
this.correctAnswer = item.correctAnswer |
|
|
|
|
|
this.analysis = item.analysis |
|
|
this.showAnlysisc = true |
|
|
this.showAnlysisc = true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|