diff --git a/components/s-video/res-s-video.vue b/components/s-video/res-s-video.vue index 8e860f9..6ebe13a 100644 --- a/components/s-video/res-s-video.vue +++ b/components/s-video/res-s-video.vue @@ -195,7 +195,8 @@ // 先提交所选答案 if(null!=obj) { // 判断答题是否正确 - if(this.correct.toUpperCase() == obj.channel.slice(0, 1).toUpperCase()) { + // if(this.correct.toUpperCase() == obj.channel.slice(0, 1).toUpperCase()) { + if (this.correct.toUpperCase().includes(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 51f6a83..d7b992d 100644 --- a/components/s-video/s-video.vue +++ b/components/s-video/s-video.vue @@ -209,7 +209,8 @@ // 先提交所选答案 if (null != obj) { // 判断答题是否正确 - if (this.correct.toUpperCase() == obj.channel.slice(0, 1).toUpperCase()) { + // if (this.correct.toUpperCase() == obj.channel.slice(0, 1).toUpperCase()) { + if (this.correct.toUpperCase().includes(obj.channel.slice(0, 1).toUpperCase())) { // 控制选中答案单条显示对错 this.$set(obj, 'choose', 'true'); isCorrect = 1 diff --git a/pages/my/my.vue b/pages/my/my.vue index efe1c30..7741f47 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -57,8 +57,6 @@ this.getMyMedalList() this.getChallengeTotal() this.getStatus() - }, - onShow() { this.page = "my" this.name = this.userName; this.avatar = this.avatarUrl;