|
|
@@ -267,7 +267,7 @@ class PunchClocks extends Component {
|
|
|
Taro.hideLoading()
|
|
|
Taro.showToast({ title: '当前时间不在打卡时间范围内,无法打卡', icon: 'none' })
|
|
|
return;
|
|
|
- } else if (dayjs().isAfter(dtails.releaseEnds)) {
|
|
|
+ } else if (dayjs().isAfter(dayjs(dtails.releaseEnds).add(1, 'day'))) {
|
|
|
Taro.hideLoading()
|
|
|
Taro.showToast({ title: '当前时间不在打卡时间范围内,无法打卡', icon: 'none' })
|
|
|
return;
|
|
|
@@ -464,7 +464,7 @@ class PunchClocks extends Component {
|
|
|
const { dtails, distance, data } = this.state
|
|
|
const newClockIn = !!data.prdcList && data.prdcList.length > 0 ? data.prdcList[0] : {};
|
|
|
if ([5, 6].indexOf(dtails.type) > -1) {
|
|
|
- if (!dayjs().isAfter(dtails.releaseEnds)) {
|
|
|
+ if (!dayjs().isAfter(dayjs(dtails.releaseEnds).add(1, 'day'))) {
|
|
|
return [1, 2].includes(newClockIn.status) ? '#72cb78' : '#3f82e8'
|
|
|
} else {
|
|
|
return '#828e83'
|