diff --git a/components/s-video/res-s-video.vue b/components/s-video/res-s-video.vue index 27cc5e3..c468b78 100644 --- a/components/s-video/res-s-video.vue +++ b/components/s-video/res-s-video.vue @@ -65,6 +65,7 @@ isError: false, resCheck: false, isResVideo: false, + innerAudioContext: null, failUrl: uni.$http.baseUrl +"/profile//images/fail.gif", }; }, @@ -106,6 +107,7 @@ this.videoContext = uni.createVideoContext("video_play"); this.videoContext.requestFullScreen(); + // this.queryQAByFreId(); }, methods: { @@ -182,7 +184,7 @@ // 先提交所选答案 if(null!=obj) { // 判断答题是否正确 - if(this.correct == obj.channel.slice(0, 1)) { + if(this.correct.toUpperCase() == obj.channel.slice(0, 1).toUpperCase()) { // 控制选中答案单条显示对错 this.$set(obj, 'choose', 'true'); isCorrect = 1 diff --git a/components/s-video/s-video.vue b/components/s-video/s-video.vue index 3ccd281..8cb2ff4 100644 --- a/components/s-video/s-video.vue +++ b/components/s-video/s-video.vue @@ -199,7 +199,7 @@ // 先提交所选答案 if (null != obj) { // 判断答题是否正确 - if (this.correct == obj.channel.slice(0, 1)) { + if(this.correct.toUpperCase() == obj.channel.slice(0, 1).toUpperCase()) { // 控制选中答案单条显示对错 this.$set(obj, 'choose', 'true'); isCorrect = 1