calendar.wxs 293 B

1234567891011121314
  1. // 获取是否打卡class
  2. function getClass(json) {
  3. if (json) {
  4. if (json.startPunchClock && json.endPunchClock) {
  5. return 'all';
  6. } else if (json.startPunchClock || json.endPunchClock) {
  7. return 'shortage';
  8. }
  9. }
  10. return ''
  11. }
  12. module.exports = {
  13. getClass: getClass
  14. };