From ecabd20b3dfbd956dad14ffb6ba3dc2efcfdd7c1 Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期一, 25 三月 2024 16:23:32 +0800 Subject: [PATCH] 微信支付 --- packageBookService/pages/bookServices/examination/questionSchedule/index.js | 34 +++++++++++++++++++++++++++++++--- 1 files changed, 31 insertions(+), 3 deletions(-) diff --git a/packageBookService/pages/bookServices/examination/questionSchedule/index.js b/packageBookService/pages/bookServices/examination/questionSchedule/index.js index 311ed8a..903a716 100644 --- a/packageBookService/pages/bookServices/examination/questionSchedule/index.js +++ b/packageBookService/pages/bookServices/examination/questionSchedule/index.js @@ -24,9 +24,24 @@ answerType: { type: String, value: '' + }, + isNight: { + type: Boolean, + value: false + }, + subjectiveGrade: { + type: Number, + value: 0 + }, + subjectiveNum: { + type: Number, + value: 0 } + }, - created() { + created( + + ) { }, detached() { }, @@ -37,7 +52,8 @@ data: { showTime: '', // percentage: 0, - ready: 0 + ready: 0, + scheduleStyle: 'back', }, observers: { 'countdownTime': function (newValue) { @@ -58,12 +74,22 @@ }) } } + }, + 'ready': function (newValue) { + this.setData({ + percentage: (this.data.ready / this.data.questionList.length) * 100 + }) + }, + 'isNight': function (newValue) { + console.log('is', newValue); } }, /** * 缁勪欢鐨勬柟娉曞垪琛� */ methods: { + // 澶滈棿鍜屾棩闂存ā寮� + // 鍒ゆ柇鏄惁鏈夌敤鎴风瓟妗� isHaveAnswer(data) { if (typeof data == 'string') { @@ -76,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