Commit 3cedcbdf authored by 潘永坪's avatar 潘永坪

Merge branch 'develop' of http://192.168.0.204/panyongping/uni-pdtravel into develop

parents 4cc0d450 447befe9
...@@ -77,12 +77,14 @@ ...@@ -77,12 +77,14 @@
<view class="apply-textarea general-Box" v-if="causeNum==5"> <view class="apply-textarea general-Box" v-if="causeNum==5">
<u-input v-model="causeInput" type="textarea" placeholder="补充详细退改原因以便商家更快帮您处理" maxlength="200" /> <u-input v-model="causeInput" type="textarea" placeholder="补充详细退改原因以便商家更快帮您处理" maxlength="200" />
</view> </view>
<template v-if="toUploadType == true">
<view class="apply-toButton" v-if="isRefund" @click="confirm()"> <view class="apply-toButton" v-if="isRefund" @click="confirm()">
退款提交 退款提交
</view> </view>
<view class="apply-toButton" v-else> <view class="apply-toButton" v-else>
退款时间为{{orderRefundRuleTimer}}-{{orderRefundRuleEndTimer}} 退款时间为{{orderRefundRuleTimer}}-{{orderRefundRuleEndTimer}}
</view> </view>
</template>
<view class="apply-mask" v-if="orderRefundRuleListShowBtn==false"> <view class="apply-mask" v-if="orderRefundRuleListShowBtn==false">
<view class="mask-box"> <view class="mask-box">
<view class="box-text"> <view class="box-text">
...@@ -169,6 +171,7 @@ export default { ...@@ -169,6 +171,7 @@ export default {
orderRefundRuleDay:'',//退款天 orderRefundRuleDay:'',//退款天
orderRefundRuleListShowMessage:[],//退票规则列表 orderRefundRuleListShowMessage:[],//退票规则列表
orderRefundRuleListShowBtn:true,//退票是否超时 orderRefundRuleListShowBtn:true,//退票是否超时
toUploadType:true,//提交时候隐藏按钮
} }
}, },
onLoad(option) { onLoad(option) {
...@@ -211,6 +214,10 @@ export default { ...@@ -211,6 +214,10 @@ export default {
}) })
return false return false
} }
uni.showLoading({
title: '提交中'
})
this.toUploadType = false
var data = { var data = {
orderId:this.orderInfo.id, orderId:this.orderInfo.id,
userId:this.openId, userId:this.openId,
...@@ -223,22 +230,8 @@ export default { ...@@ -223,22 +230,8 @@ export default {
} }
this.$request('order/userOrder/refundTicket',data).then((res)=>{ this.$request('order/userOrder/refundTicket',data).then((res)=>{
if(res.code == '00'){ if(res.code == '00'){
// if(res.data.errorMessage!=''&&res.data.errorMessage!=undefined&&res.data.refundStatus!=6){ this.toUploadType = true
// uni.showToast({ uni.hideLoading()
// title: res.data.errorMessage,
// icon: 'none'
// })
// }else{
// uni.showToast({
// title: '申请成功',
// icon: 'none'
// })
// setTimeout(()=>{
// uni.reLaunch({
// url: '/pages/my/order/orderList/orderList'
// })
// },1000)
// }
uni.showToast({ uni.showToast({
title: '申请成功', title: '申请成功',
icon: 'none' icon: 'none'
...@@ -248,9 +241,9 @@ export default { ...@@ -248,9 +241,9 @@ export default {
url: '/pages/my/order/orderList/orderList' url: '/pages/my/order/orderList/orderList'
}) })
},1000) },1000)
}else{ }else{
this.toUploadType = true
uni.hideLoading()
uni.showToast({ uni.showToast({
title: res.message, title: res.message,
icon: 'none' icon: 'none'
......
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