Commit cd69a0a2 by zhangzhen

bug优化

parent 98fe9c9a
...@@ -260,12 +260,13 @@ ...@@ -260,12 +260,13 @@
}, },
onGetOrderInfo(){ onGetOrderInfo(){
noLoginGetOrderInfo(this.orderNo).then(res=>{ noLoginGetOrderInfo(this.orderNo).then(res=>{
let nowTime = moment().valueOf(); if(res.data.data.status === 2){
let endTime = moment(res.data.data.endDate).valueOf(); let nowTime = moment().valueOf();
if(nowTime - endTime< 15*60*1000){ let endTime = moment(res.data.data.endDate).valueOf();
this.continStatus = true; if(nowTime - endTime< 15*60*1000){
this.continStatus = true;
}
} }
console.log(this.continStatus,888)
this.orderInfo = { this.orderInfo = {
...res.data.data, ...res.data.data,
roomImages: res.data.data.roomImages.split(','), roomImages: res.data.data.roomImages.split(','),
......
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