闫增涛
2024-03-19 fa662bf36ed8db479b42f912d4705c11511db558
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') {