// 判断时间是否超过了16:30 // true: 已超时 // false: 未超时 function timeCompare() { var now = new Date(); var nowTime = now.getTime(); var year = now.getFullYear(); ;//js从0开始取 var date = now.getDate(); var deadlineStr = year + "/" + month + "/" + da…
//判断结束时间一定要大于开始时间 function comparativeTime(){ var isok=true; //早餐配送时间 var breakfastScanTimeMin = $("#breakfastScanTimeMin").val(); var breakfastScanTimeMax = $("#breakfastScanTimeMax").val(); //早餐订餐时间 var breakfastBookTimeMin = $("…
let first = this.data.date //开始时间 let second = e.detail.value //结束时间 var data1 = Date.parse(first.replace(/-/g, "/")); var data2 = Date.parse(second.replace(/-/g, "/")); var datadiff = data2 - data1; var time = 31 * 24 * 60 * 60 * 1000…