Commit 9c3828d6 authored by 潘永坪's avatar 潘永坪

联票电子门票bug处理

parent 67339ada
...@@ -386,7 +386,7 @@ export default { ...@@ -386,7 +386,7 @@ export default {
break break
case 8:return '全部退货退款' case 8:return '全部退货退款'
break break
case 9:return '取消' case 9:return '取消'
break break
case 10:return '已完成 ' case 10:return '已完成 '
break break
...@@ -523,6 +523,8 @@ export default { ...@@ -523,6 +523,8 @@ export default {
} }
this.$request('order/userOrder/findOrderDetail',data).then((res)=>{ this.$request('order/userOrder/findOrderDetail',data).then((res)=>{
if(res.code=='00'){ if(res.code=='00'){
//防止代码bug进入catch里面,一直请求接口影响性能
try{
this.orderInfo=res.data this.orderInfo=res.data
let orderInfo=res.data let orderInfo=res.data
this.orderInfo.childs.forEach(item=>{ this.orderInfo.childs.forEach(item=>{
...@@ -614,8 +616,6 @@ export default { ...@@ -614,8 +616,6 @@ export default {
//refundDateType退款时间0之前1之后2至(用于区间) //refundDateType退款时间0之前1之后2至(用于区间)
if(item2.refundDateType==0){ if(item2.refundDateType==0){
console.log(nowTimeNumber)
console.log(refundTimeNumber)
if(nowTimeNumber<refundTimeNumber){ if(nowTimeNumber<refundTimeNumber){
this.subRefundBtn=true this.subRefundBtn=true
//增加字段用于弹窗展示该产品是否可退 //增加字段用于弹窗展示该产品是否可退
...@@ -719,6 +719,12 @@ export default { ...@@ -719,6 +719,12 @@ export default {
}) })
} }
} }
}
}catch(e){
uni.showToast({
title: e,
icon: 'none'
})
} }
}else{ }else{
uni.showToast({ uni.showToast({
...@@ -839,6 +845,8 @@ export default { ...@@ -839,6 +845,8 @@ export default {
this.$request('distribution/distribution/getNewFetchInfo',data).then((res)=>{ this.$request('distribution/distribution/getNewFetchInfo',data).then((res)=>{
if(res.code=='00'){ if(res.code=='00'){
if(res.data.length>0){ if(res.data.length>0){
//防止代码bug进入catch里面,一直请求接口影响性能
try{
//显示排号信息 //显示排号信息
item.showSortInfo=true item.showSortInfo=true
let dataObj=res.data[0] let dataObj=res.data[0]
...@@ -873,6 +881,12 @@ export default { ...@@ -873,6 +881,12 @@ export default {
} }
} }
this.$forceUpdate() this.$forceUpdate()
}catch(e){
uni.showToast({
title: e,
icon: 'none'
})
}
} }
}else{ }else{
uni.showToast({ uni.showToast({
...@@ -883,7 +897,7 @@ export default { ...@@ -883,7 +897,7 @@ export default {
}).catch((err)=>{ }).catch((err)=>{
this.numberTimer=setTimeout(()=>{ this.numberTimer=setTimeout(()=>{
this.getSortInfo(item) this.getSortInfo(item)
},1000) },2000)
}) })
}, },
//---点击重新取号,显示弹窗 //---点击重新取号,显示弹窗
......
...@@ -416,7 +416,7 @@ export default { ...@@ -416,7 +416,7 @@ export default {
} }
}, },
onLoad(option) { onLoad(option) {
this.companyId = option.companyId || '' this.companyId=this.$commonjs.getCompanyId(option)|| ''
this.groupId=option.groupId||'' this.groupId=option.groupId||''
this.groupChannelId=option.groupChannelId||'' this.groupChannelId=option.groupChannelId||''
this.orderSource=option.orderSource||'' this.orderSource=option.orderSource||''
......
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