Browse Source

视频答题对比不区分大小写

h5_css
蟑螂恶霸 3 years ago
parent
commit
6e0bf2758a
  1. 4
      components/s-video/res-s-video.vue
  2. 2
      components/s-video/s-video.vue

4
components/s-video/res-s-video.vue

@ -65,6 +65,7 @@
isError: false, isError: false,
resCheck: false, resCheck: false,
isResVideo: false, isResVideo: false,
innerAudioContext: null,
failUrl: uni.$http.baseUrl +"/profile//images/fail.gif", failUrl: uni.$http.baseUrl +"/profile//images/fail.gif",
}; };
}, },
@ -106,6 +107,7 @@
this.videoContext = uni.createVideoContext("video_play"); this.videoContext = uni.createVideoContext("video_play");
this.videoContext.requestFullScreen(); this.videoContext.requestFullScreen();
// this.queryQAByFreId(); // this.queryQAByFreId();
}, },
methods: { methods: {
@ -182,7 +184,7 @@
// 先提交所选答案 // 先提交所选答案
if(null!=obj) { 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'); this.$set(obj, 'choose', 'true');
isCorrect = 1 isCorrect = 1

2
components/s-video/s-video.vue

@ -199,7 +199,7 @@
// 先提交所选答案 // 先提交所选答案
if (null != obj) { 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'); this.$set(obj, 'choose', 'true');
isCorrect = 1 isCorrect = 1

Loading…
Cancel
Save