From 5ca38e4ef60e35f08e87d6569b72c25433c311ca Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 26 三月 2024 17:05:14 +0800 Subject: [PATCH] 答题器bug修改,添加请求地址 --- 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