Ver código fonte

修复视频商品答题bug

chenxiong 3 anos atrás
pai
commit
441a101105
2 arquivos alterados com 8 adições e 7 exclusões
  1. 5 4
      pages2/class/question_report.vue
  2. 3 3
      pages2/subject/wrongBank.vue

+ 5 - 4
pages2/class/question_report.vue

@@ -1,8 +1,8 @@
 <template>
 	<view>
-		<view :class="reportStatus == 0 ? 'redBtn' : reportStatus == 1 ? 'greenBtn' : 'disNone'">
+		<!-- <view :class="reportStatus == 0 ? 'redBtn' : reportStatus == 1 ? 'greenBtn' : 'disNone'" v-if="reportStatus !== null">
 			{{ reportStatus == 0 ? '测试未通过' : reportStatus == 1 ? '测试通过' : '' }}
-		</view>
+		</view> -->
 		<view class="top">
 
 			<view class="box">
@@ -63,7 +63,8 @@ export default {
 			score:'',
 			totalScore:'',
 			doTime:'',
-			examTime:''
+			examTime:'',
+			reportStatus:null,
 		};
 	},
 	onUnload() {},
@@ -141,7 +142,7 @@ export default {
 		this.doTime = option.doTime;
 		this.reportStatus = option.reportStatus;
 		this.rightQuestionNum = +option.rightQuestionNum;
-		this.doWrongQuestionNum = +option.rightQuestionNum;
+		this.doWrongQuestionNum = +option.doWrongQuestionNum;
 		this.score = +option.score;
 		this.totalScore = +option.totalScore;
 		// this.hideBtns = Boolean(option.hideBtns);

+ 3 - 3
pages2/subject/wrongBank.vue

@@ -628,9 +628,9 @@ export default {
 				let question = this.questionList.find(item => item.questionId == this.questionList[bindex].questionId);
 				if(question) {
 					this.$api.wrongRecordDelete({
-						"examId": this.questionId[bindex].examId,
-						"goodsId": this.questionId[bindex].examId,
-						"questionId": this.questionList[bindex].questionId,
+						"examId": question.examId,
+						"goodsId": question.goodsId,
+						"questionId": question.questionId,
 					}).then(res => {
 						
 					})