From bd3a3057169eb727728f8a322f51fd4fb4b6cf30 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期四, 11 四月 2024 22:08:32 +0800 Subject: [PATCH] 答题器听力题播放功能优化 --- packageBookService/pages/bookServices/examination/questionSchedule/index.js | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 deletions(-) diff --git a/packageBookService/pages/bookServices/examination/questionSchedule/index.js b/packageBookService/pages/bookServices/examination/questionSchedule/index.js index 458b052..903a716 100644 --- a/packageBookService/pages/bookServices/examination/questionSchedule/index.js +++ b/packageBookService/pages/bookServices/examination/questionSchedule/index.js @@ -25,10 +25,19 @@ type: String, value: '' }, - isNight:{ - type:Boolean, - value:false + isNight: { + type: Boolean, + value: false + }, + subjectiveGrade: { + type: Number, + value: 0 + }, + subjectiveNum: { + type: Number, + value: 0 } + }, created( @@ -70,6 +79,9 @@ this.setData({ percentage: (this.data.ready / this.data.questionList.length) * 100 }) + }, + 'isNight': function (newValue) { + console.log('is', newValue); } }, /** @@ -90,13 +102,15 @@ } else { return false } - } else { + } else if (typeof data == 'object') { const answer = data.find((item) => item.length > 0) if (answer) { return true } else { return false } + } else { + return false } }, // // 鏍煎紡鍖栨椂闂� -- Gitblit v1.9.1