Commit 20ab8013 authored by qipeng's avatar qipeng

退款BUG修复

parent 9e8f642e
...@@ -287,6 +287,7 @@ export default { ...@@ -287,6 +287,7 @@ 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){
var todayTimer = this.$commonjs.today()+' '+this.$commonjs.todayTime() //获取今天时间 var todayTimer = this.$commonjs.today()+' '+this.$commonjs.todayTime() //获取今天时间
...@@ -339,7 +340,14 @@ export default { ...@@ -339,7 +340,14 @@ export default {
} }
} }
}) })
}else{ if(orderRefundRuleListShowType == false&&this.orderInfo!=0){
this.isRefund = true
this.orderRefundRuleListShowBtn = true
}else{
this.orderRefundRuleListShowBtn = false
this.isRefund = false
}
}else{
uni.showToast({ uni.showToast({
title: res.message, title: res.message,
icon: 'none' icon: 'none'
......
...@@ -845,6 +845,7 @@ export default { ...@@ -845,6 +845,7 @@ export default {
} }
} }
//判断是否在退票时间内 //判断是否在退票时间内
var orderRefundRuleListShowType = false
this.orderRefundRuleListShowMessage.forEach((item,index)=>{ this.orderRefundRuleListShowMessage.forEach((item,index)=>{
if(item.refundVisitorApply==1){ if(item.refundVisitorApply==1){
var todayTimer = this.$commonjs.today()+' '+this.$commonjs.todayTime() //获取今天时间 var todayTimer = this.$commonjs.today()+' '+this.$commonjs.todayTime() //获取今天时间
...@@ -885,6 +886,11 @@ export default { ...@@ -885,6 +886,11 @@ export default {
} }
} }
}) })
if(orderRefundRuleListShowType == false&&this.orderInfo!=0){
this.orderRefundRuleListShowBtn = true
}else{
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