闫增涛
2024-04-11 78068d49c20a8b90db902d955f558af507eb8b96
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
      }
    },
    // // 格式化时间