diff --git a/components/s-video/s-video.vue b/components/s-video/s-video.vue index 2e7ccd2..75e835e 100644 --- a/components/s-video/s-video.vue +++ b/components/s-video/s-video.vue @@ -6,20 +6,23 @@ -

请选择

-

{{item.channel}}

+ + + + {{item.channel}} +
- + + @@ -40,6 +43,7 @@ question: false, questionFreId: "", preQuestionId: "", + correct: "", }; }, computed: { @@ -70,8 +74,8 @@ this.getBindJson(); }, methods: { - videoEnded() { + debugger this.auto = false; this.question = true; // 出答案 @@ -98,16 +102,15 @@ }) .then(res => { this.questionFreId = res.data; - console.log(this.questionFreId); }).catch((e) => console.log(e)); //捕获异常 } - // 先提交所选答案 if(null!=obj) { var param = { answer : obj.channel, questionFreId : this.questionFreId, - questionId : this.preQuestionId + questionId : this.preQuestionId, + correctAnswer : this.correct } this.$api.addAnswer(param) .then(res => { @@ -135,13 +138,19 @@ for(var i=0; i