From cb15c57d0ff984f5a100cf25d560fb0a69c00984 Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期二, 16 四月 2024 18:21:05 +0800 Subject: [PATCH] 音频bug4 --- packageBookService/pages/bookServices/examination/questionSchedule/index.js | 30 +++++++++++++++++++----------- 1 files changed, 19 insertions(+), 11 deletions(-) diff --git a/packageBookService/pages/bookServices/examination/questionSchedule/index.js b/packageBookService/pages/bookServices/examination/questionSchedule/index.js index 458b052..2c91db6 100644 --- a/packageBookService/pages/bookServices/examination/questionSchedule/index.js +++ b/packageBookService/pages/bookServices/examination/questionSchedule/index.js @@ -1,4 +1,3 @@ - // pages/bookServices/examination/questionSchedule/questionSchedule.js Component({ /** @@ -25,17 +24,24 @@ type: String, value: '' }, - isNight:{ - type:Boolean, - value:false + isNight: { + type: Boolean, + value: false + }, + subjectiveGrade: { + type: Number, + value: 0 + }, + subjectiveNum: { + type: Number, + value: 0 } + }, created( - ) { - }, - detached() { - }, + ) {}, + detached() {}, /** * 缁勪欢鐨勫垵濮嬫暟鎹� @@ -70,7 +76,7 @@ this.setData({ percentage: (this.data.ready / this.data.questionList.length) * 100 }) - } + }, }, /** * 缁勪欢鐨勬柟娉曞垪琛� @@ -90,13 +96,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 } }, // // 鏍煎紡鍖栨椂闂� @@ -168,4 +176,4 @@ // } } -}) +}) \ No newline at end of file -- Gitblit v1.9.1