|
|
@ -95,7 +95,7 @@ |
|
|
|
<!-- 小程序预定 --> |
|
|
|
<view class="om-btns" v-if="orderInfo.type == 'mini_program'"> |
|
|
|
<view class="ob-view" @click="toOrderInfo">订单详情</view> |
|
|
|
<view class="ob-view red" @click="refundBtn">退款</view> |
|
|
|
<!-- <view class="ob-view red" @click="refundBtn">退款</view> --> |
|
|
|
</view> |
|
|
|
<!-- 课程预定 --> |
|
|
|
<view class="om-btns" v-if="orderInfo.type == 'course_venue'"> |
|
|
@ -172,6 +172,17 @@ export default { |
|
|
|
util.showNone('待开放') |
|
|
|
}, |
|
|
|
refundBtn: util.debounce(function(){ |
|
|
|
util.showModal({ |
|
|
|
title: '提示', |
|
|
|
content: '是否确认退款,退款后释放场地', |
|
|
|
showCancel: true, |
|
|
|
success: mRes => { |
|
|
|
if(mRes.confirm)this.refundReq(); |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
}, 300, true), |
|
|
|
refundReq(){ |
|
|
|
let { orderInfo, queryInfo } = this; |
|
|
|
servers.post({ |
|
|
|
url: API.venue.orderRefund, |
|
|
@ -189,7 +200,7 @@ export default { |
|
|
|
util.showNone(res.data.message || '操作失败!'); |
|
|
|
} |
|
|
|
}) |
|
|
|
}, 300, true), |
|
|
|
}, |
|
|
|
toOrderInfo(){ |
|
|
|
let { orderInfo, queryInfo } = this; |
|
|
|
let _query = {} |
|
|
|