前端-胡立永 3 weeks ago
parent
commit
eef9b3c1ce
1 changed files with 18 additions and 0 deletions
  1. +18
    -0
      pages/myOrdersManage/components/timelineService.vue

+ 18
- 0
pages/myOrdersManage/components/timelineService.vue View File

@ -185,6 +185,24 @@
console.log(item); console.log(item);
//
const today = new Date();
const serviceDate = new Date(item.serviceDate);
//
today.setHours(0, 0, 0, 0);
serviceDate.setHours(0, 0, 0, 0);
if (serviceDate > today) {
//
uni.showToast({
title: '服务日期未到,无法打卡',
icon: 'none',
duration: 2000
});
return;
}
// //
const paths = [ const paths = [
`/otherPages/myOrdersManage/clock/index?id=${item.id}`, `/otherPages/myOrdersManage/clock/index?id=${item.id}`,


Loading…
Cancel
Save