From fa662bf36ed8db479b42f912d4705c11511db558 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 19 三月 2024 18:45:25 +0800 Subject: [PATCH] 组卷功能完善 --- packageBookService/pages/bookServices/examination/questionSchedule/index.js | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/packageBookService/pages/bookServices/examination/questionSchedule/index.js b/packageBookService/pages/bookServices/examination/questionSchedule/index.js index 311ed8a..458b052 100644 --- a/packageBookService/pages/bookServices/examination/questionSchedule/index.js +++ b/packageBookService/pages/bookServices/examination/questionSchedule/index.js @@ -24,9 +24,15 @@ answerType: { type: String, value: '' + }, + isNight:{ + type:Boolean, + value:false } }, - created() { + created( + + ) { }, detached() { }, @@ -37,7 +43,8 @@ data: { showTime: '', // percentage: 0, - ready: 0 + ready: 0, + scheduleStyle: 'back', }, observers: { 'countdownTime': function (newValue) { @@ -58,12 +65,19 @@ }) } } + }, + 'ready': function (newValue) { + this.setData({ + percentage: (this.data.ready / this.data.questionList.length) * 100 + }) } }, /** * 缁勪欢鐨勬柟娉曞垪琛� */ methods: { + // 澶滈棿鍜屾棩闂存ā寮� + // 鍒ゆ柇鏄惁鏈夌敤鎴风瓟妗� isHaveAnswer(data) { if (typeof data == 'string') { -- Gitblit v1.9.1