From f5c6c0547eee59b195f048f083873b9e943fc8fb Mon Sep 17 00:00:00 2001 From: kylin L <452061493@qq.com> Date: Tue, 16 Apr 2024 11:11:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=94=E9=A2=98=E5=88=A4=E6=96=AD=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=94=AF=E6=8C=81=E5=A4=9A=E9=80=89=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/s-video/res-s-video.vue | 3 ++- components/s-video/s-video.vue | 3 ++- pages/my/my.vue | 2 -- 3 files changed, 4 insertions(+), 4 deletions(-) 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;