|
|
|
@ -1,21 +1,12 @@ |
|
|
|
|
<template> |
|
|
|
|
<view class="v-order-cancel"> |
|
|
|
|
<view class="v-card container-fluid"> |
|
|
|
|
<view>退款金额</view> |
|
|
|
|
<view>退款金额: ¥{{homestayOrderRefund.sumRefundPrice}}</view> |
|
|
|
|
<view>退款进度</view> |
|
|
|
|
<view class="v-timeline m-t-24"> |
|
|
|
|
<view class="v-timeline-item"> |
|
|
|
|
<view class="v-timeline-item__content">发起退款申请</view> |
|
|
|
|
<view class="v-timeline-item__timestamp">2024-09-13 16:23:22</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="v-timeline-item"> |
|
|
|
|
<view class="v-timeline-item__content">微信支付已受理</view> |
|
|
|
|
<view class="v-timeline-item__timestamp">2024-09-13 16:23:22</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="v-timeline-item active"> |
|
|
|
|
<view class="v-timeline-item__content">退款已到账</view> |
|
|
|
|
<view class="v-timeline-item__tip">退款已原路退回!</view> |
|
|
|
|
<view class="v-timeline-item__timestamp">2024-09-13 16:23:22</view> |
|
|
|
|
<view class="v-timeline-item" v-for="item in homestayOrderRefund.list"> |
|
|
|
|
<view class="v-timeline-item__content">{{item.refundName}}</view> |
|
|
|
|
<view class="v-timeline-item__timestamp">{{parseTime(item.refundTime,'{y}-{m}-{d} {h}:{i}:{s}')}}</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -23,17 +14,38 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { parseTime } from "@/common/util"; |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
|
|
|
|
|
homestayOrderRefund:{} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onLoad() { |
|
|
|
|
this.getInitPage() |
|
|
|
|
onLoad(option) { |
|
|
|
|
console.log(option.orderId) |
|
|
|
|
this.getInitPage(option.orderId) |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
getInitPage() {} |
|
|
|
|
getInitPage(orderId) { |
|
|
|
|
let data ={ |
|
|
|
|
'orderId':orderId |
|
|
|
|
} |
|
|
|
|
this.$Request.get(this.$config.getHomestayOrderRefund, data, null, null, false, null).then((res) => { |
|
|
|
|
console.log(res) |
|
|
|
|
if(res.code == 0){ |
|
|
|
|
this.homestayOrderRefund = res.data |
|
|
|
|
}else{ |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: res.data, |
|
|
|
|
icon: 'none', |
|
|
|
|
duration: 2000 |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
parseTime(val, par) { |
|
|
|
|
return parseTime(val, par) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -41,7 +53,7 @@ |
|
|
|
|
|
|
|
|
|
<style lang="scss"> |
|
|
|
|
/*每个页面公共css */ |
|
|
|
|
@import '../../static/common.scss'; |
|
|
|
|
@import '@/static/css/common.scss'; |
|
|
|
|
|
|
|
|
|
.v-timeline { |
|
|
|
|
padding:20rpx; |
|
|
|
|