|
@@ -4,30 +4,30 @@
|
|
|
<u-navbar title="退费详情"></u-navbar>
|
|
|
<view class="rechargeDet-head">
|
|
|
<view class="payPrice">
|
|
|
- <span>¥</span><font>15.00</font>
|
|
|
+ <span>¥</span><font>{{refund.refundRealAmount}}</font>
|
|
|
</view>
|
|
|
<p>退费金额(元)</p>
|
|
|
</view>
|
|
|
<view class="rechargeDet-main">
|
|
|
<view class="rechargeDet-list">
|
|
|
- <p>充值订单</p><span>000011112222333344445555</span>
|
|
|
+ <p>退费订单</p><span>{{refund.refundOrderNo}}</span>
|
|
|
</view>
|
|
|
<view class="rechargeDet-list">
|
|
|
- <p>交易单号</p><span>000011112222333344445555</span>
|
|
|
+ <p>手续费</p><span>¥{{refund.proceduresAmount.toFixed(2)}}</span>
|
|
|
</view>
|
|
|
<view class="rechargeDet-list">
|
|
|
- <p>充值时间</p><span>2022-05-01 10:00:00</span>
|
|
|
+ <p>退费时间</p><span>{{refund.applicationTime}}</span>
|
|
|
</view>
|
|
|
<view class="rechargeDet-list">
|
|
|
- <p>充值渠道</p><span>微信</span>
|
|
|
+ <p>退费渠道</p><span>{{refund.refundChannelText}}</span>
|
|
|
</view>
|
|
|
<view class="rechargeDet-list">
|
|
|
- <p>充值金额</p><span>¥15.00</span>
|
|
|
+ <p>退费金额</p><span>¥{{refund.refundRealAmount.toFixed(2)}}</span>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="rechargeDet-main">
|
|
|
<view class="rechargeDet-list">
|
|
|
- <p>状态</p><span>已退款</span>
|
|
|
+ <p>状态</p><span>{{refund.statusText}}</span>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -35,14 +35,43 @@
|
|
|
|
|
|
<script>
|
|
|
import * as api from "@/apis/refund.js"
|
|
|
+ let _self;
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
-
|
|
|
+ refund :{}
|
|
|
}
|
|
|
},
|
|
|
- onLoad(){
|
|
|
-
|
|
|
+ onLoad(op){
|
|
|
+ _self = this;
|
|
|
+ if(op.id){
|
|
|
+ let data ={id:op.id};
|
|
|
+ api.personAccountRefundDetail(data).then(function(res){
|
|
|
+ console.log('res'+JSON.stringify(res));
|
|
|
+ if(res.result){
|
|
|
+ _self.refund = res.data;
|
|
|
+
|
|
|
+ if(_self.refund.refundChannel == 'wechat')
|
|
|
+ _self.refund.refundChannelText = "微信"
|
|
|
+ else if (_self.refund.refundChannel == 'alipay')
|
|
|
+ _self.refund.refundChannelText = "支付宝"
|
|
|
+
|
|
|
+
|
|
|
+ if(_self.refund.status == '0')
|
|
|
+ _self.refund.statusText = "退款中"
|
|
|
+ else if (_self.refund.status == '1')
|
|
|
+ _self.refund.statusText = "退款成功"
|
|
|
+ else if (_self.refund.status == '2')
|
|
|
+ _self.refund.statusText = "退款拒绝"
|
|
|
+ else if (_self.refund.status == '3')
|
|
|
+ _self.refund.statusText = "退款失败"
|
|
|
+ }
|
|
|
+ },function(err){
|
|
|
+ console.log('err'+JSON.stringify(err));
|
|
|
+ })
|
|
|
+ //console.log('item'+JSON.stringify(item))
|
|
|
+
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
|