This commit is contained in:
SelfRidicule 2024-03-18 13:39:18 +08:00
parent 362b52f70d
commit a749f02649

View File

@ -108,11 +108,11 @@ Page({
let endTime = _this.data.endTime;
let paramUrl = "?id=" + id + "&startTime=" + selfFormatTimeYMDHMS(startTime) + "&endTime=" + selfFormatTimeYMDHMS(endTime);
// 预约时间不能小于1小时
if ((1000 * 60 * 60) > (endTime - startTime)) {
// 预约时间不能小于30分钟
if ((1000 * 60 * 30) > (endTime - startTime)) {
Notify({
type: 'danger',
message: '预约时间不能小于1小时',
message: '预约时间不能小于30分钟',
duration: 1000,
selector: '#notify',
});