Commit a6c7363f authored by qipeng's avatar qipeng

判断优化

parent 4b07f548
...@@ -287,8 +287,10 @@ export default { ...@@ -287,8 +287,10 @@ export default {
// } // }
this.orderRefundRuleListShowMessage = this.orderInfo.orderRefundRuleList this.orderRefundRuleListShowMessage = this.orderInfo.orderRefundRuleList
//判断是否在退票时间内 //判断是否在退票时间内
var orderRefundRuleListShowType = false
this.orderRefundRuleListShowMessage.forEach((item,index)=>{ this.orderRefundRuleListShowMessage.forEach((item,index)=>{
if(item.refundVisitorApply==1){ if(item.refundVisitorApply==1){
orderRefundRuleListShowType = true
var todayTimer = this.$commonjs.today()+' '+this.$commonjs.todayTime() //获取今天时间 var todayTimer = this.$commonjs.today()+' '+this.$commonjs.todayTime() //获取今天时间
var playdateTimer = '' //获取游玩时间开始 var playdateTimer = '' //获取游玩时间开始
if(item.refundDay!=undefined&&item.refundDay!=0){ if(item.refundDay!=undefined&&item.refundDay!=0){
...@@ -339,6 +341,13 @@ export default { ...@@ -339,6 +341,13 @@ export default {
} }
} }
}) })
if(orderRefundRuleListShowType == false&&this.orderInfo.isRefund!=0&&this.orderInfo.orderStatus==2||orderRefundRuleListShowType == false&&this.orderInfo.isRefund!=0&&this.orderInfo.orderStatus==7){
this.isRefund = true
this.orderRefundRuleListShowBtn = true
}else if(orderRefundRuleListShowType == false&&this.orderInfo.isRefund==0){
this.orderRefundRuleListShowBtn = false
this.isRefund = false
}
}else{ }else{
uni.showToast({ uni.showToast({
title: res.message, title: res.message,
......
...@@ -845,8 +845,10 @@ export default { ...@@ -845,8 +845,10 @@ export default {
} }
} }
//判断是否在退票时间内 //判断是否在退票时间内
var orderRefundRuleListShowType = false
this.orderRefundRuleListShowMessage.forEach((item,index)=>{ this.orderRefundRuleListShowMessage.forEach((item,index)=>{
if(item.refundVisitorApply==1){ if(item.refundVisitorApply==1){
orderRefundRuleListShowType = true
var todayTimer = this.$commonjs.today()+' '+this.$commonjs.todayTime() //获取今天时间 var todayTimer = this.$commonjs.today()+' '+this.$commonjs.todayTime() //获取今天时间
var playdateTimer = '' //获取游玩时间开始 var playdateTimer = '' //获取游玩时间开始
if(item.refundDay!=undefined&&item.refundDay!=0){ if(item.refundDay!=undefined&&item.refundDay!=0){
...@@ -885,6 +887,11 @@ export default { ...@@ -885,6 +887,11 @@ export default {
} }
} }
}) })
if(orderRefundRuleListShowType == false&&this.orderInfo.isRefund!=0&&this.orderInfo.orderStatus==2||orderRefundRuleListShowType == false&&this.orderInfo.isRefund!=0&&this.orderInfo.orderStatus==7){
this.orderRefundRuleListShowBtn = true
}else if(orderRefundRuleListShowType == false&&this.orderInfo.isRefund==0){
this.orderRefundRuleListShowBtn = false
}
this.findCouponListFun() this.findCouponListFun()
}else{ }else{
uni.showToast({ uni.showToast({
......
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