litian
2024-06-26 ccda9ec2fe70d8f51ef184eafc04b78d22dfbabd
packageBookService/pages/bookServices/examination/questionSchedule/index.js
@@ -1,4 +1,3 @@
// pages/bookServices/examination/questionSchedule/questionSchedule.js
Component({
  /**
@@ -25,17 +24,24 @@
      type: String,
      value: ''
    },
    isNight:{
      type:Boolean,
      value:false
    isNight: {
      type: Boolean,
      value: false
    },
    subjectiveGrade: {
      type: Number,
      value: 0
    },
    subjectiveNum: {
      type: Number,
      value: 0
    }
  },
  created(
  ) {
  },
  detached() {
  },
  ) {},
  detached() {},
  /**
   * 组件的初始数据
@@ -70,7 +76,7 @@
      this.setData({
        percentage: (this.data.ready / this.data.questionList.length) * 100
      })
    }
    },
  },
  /**
   * 组件的方法列表
@@ -90,13 +96,17 @@
        } 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 if (typeof data == 'number') {
        return true
      } else {
        return false
      }
    },
    // // 格式化时间
@@ -168,4 +178,4 @@
    // }
  }
})
})