Commit fafeb31f by zhangzhen

细节优化

parent 9d7bf76a
......@@ -1525,45 +1525,29 @@
useStatus = true;
nextStatus = true;
console.log("节点2")
}
if( endStemp > moment(item.startHoldTime).valueOf() && endStemp <= moment(item.endHoldTime).valueOf()){
}else if( endStemp > moment(item.startHoldTime).valueOf() && endStemp <= moment(item.endHoldTime).valueOf()){
useStatus = true;
nextStatus = true;
console.log("节点3")
}
if(startStemp <= moment(item.endHoldTime).valueOf() && endStemp >= moment(item.startHoldTime).valueOf()){
}else if(startStemp <= moment(item.endHoldTime).valueOf() && endStemp >= moment(item.startHoldTime).valueOf()){
useStatus = true;
nextStatus = true;
console.log("节点4")
}
} else if(this.orderType == 2){
// if( m <= 60 && !(startStemp >= moment(item.endHoldTime).valueOf() && endStemp < end) ){
// useStatus = true;
// nextStatus = true;
// console.log("节点5")
// }
} else if(this.orderType == 2){
if( startStemp > moment(item.startHoldTime).valueOf() && startStemp < moment(item.endHoldTime).valueOf()){
useStatus = true;
nextStatus = true;
console.log("节点2")
}
if( endStemp >= moment(item.startHoldTime).valueOf() && endStemp <= moment(item.endHoldTime).valueOf()){
} else if(startStemp < moment(item.endHoldTime).valueOf() && endStemp >= moment(item.startHoldTime).valueOf()){
useStatus = true;
nextStatus = true;
console.log("节点3")
}
if(startStemp < moment(item.endHoldTime).valueOf() && endStemp >= moment(item.startHoldTime).valueOf()){
console.log("节点4")
} else if( endStemp >= moment(item.startHoldTime).valueOf() && endStemp <= moment(item.endHoldTime).valueOf()){
useStatus = true;
nextStatus = true;
console.log("节点4")
console.log("节点3")
}
}
}
......@@ -1609,6 +1593,7 @@
startStamp = moment(params.startDateTime).valueOf();
endStamp = startStamp + m*60000;
dateObj.useStatus = this.onUseByStartAndDuration(params.startDateTime,m,2)
console.log(dateObj.useStatus,999)
} else if(params.duration){
dateObj = this.onComputeByDuration(m,2);
......
......@@ -352,7 +352,8 @@
storeId: this.orderInfo.storeId,
roomId: this.orderInfo.roomId,
day: this.orderInfo.endDate,
orderType:2
orderType:2,
orderId: this.orderInfo.id
}).then(res=>{
uni.hideLoading()
if(res.data.code != 200){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment