refundDet.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <view>
  3. <u-navbar title="退费详情"></u-navbar>
  4. <view class="rechargeDet-head">
  5. <view class="payPrice">
  6. <span>¥</span><font>{{refund.refundRealAmount}}</font>
  7. </view>
  8. <p>退费金额(元)</p>
  9. </view>
  10. <view class="rechargeDet-main">
  11. <view class="rechargeDet-list">
  12. <p>退费订单</p><span>{{refund.refundOrderNo}}</span>
  13. </view>
  14. <view class="rechargeDet-list">
  15. <p>手续费</p><span>¥{{refund.proceduresAmount.toFixed(2)}}</span>
  16. </view>
  17. <view class="rechargeDet-list">
  18. <p>退费时间</p><span>{{refund.applicationTime}}</span>
  19. </view>
  20. <view class="rechargeDet-list">
  21. <p>退费渠道</p><span>{{refund.refundChannelText}}</span>
  22. </view>
  23. <view class="rechargeDet-list">
  24. <p>退费金额</p><span>¥{{refund.refundRealAmount.toFixed(2)}}</span>
  25. </view>
  26. </view>
  27. <view class="rechargeDet-main">
  28. <view class="rechargeDet-list">
  29. <p>状态</p><span>{{refund.statusText}}</span>
  30. </view>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. import * as api from "@/apis/refund.js"
  36. let _self;
  37. export default {
  38. data() {
  39. return {
  40. refund :{}
  41. }
  42. },
  43. onLoad(op){
  44. _self = this;
  45. if(op.id){
  46. let data ={id:op.id};
  47. api.personAccountRefundDetail(data).then(function(res){
  48. console.log('res'+JSON.stringify(res));
  49. if(res.result){
  50. _self.refund = res.data;
  51. if(_self.refund.refundChannel == 'wechat')
  52. _self.refund.refundChannelText = "微信"
  53. else if (_self.refund.refundChannel == 'alipay')
  54. _self.refund.refundChannelText = "支付宝"
  55. if(_self.refund.status == '0')
  56. _self.refund.statusText = "退款中"
  57. else if (_self.refund.status == '1')
  58. _self.refund.statusText = "退款成功"
  59. else if (_self.refund.status == '2')
  60. _self.refund.statusText = "退款拒绝"
  61. else if (_self.refund.status == '3')
  62. _self.refund.statusText = "退款失败"
  63. }
  64. },function(err){
  65. console.log('err'+JSON.stringify(err));
  66. })
  67. //console.log('item'+JSON.stringify(item))
  68. }
  69. },
  70. methods: {
  71. }
  72. }
  73. </script>
  74. <style lang="scss" scoped>
  75. .rechargeDet-head{
  76. background-color: #fff;
  77. padding: 24px 0;
  78. display: flex;
  79. flex-direction: column;
  80. align-items: center;
  81. .payPrice{
  82. display: flex;
  83. align-items: flex-end;
  84. justify-content: center;
  85. font{
  86. font-size: 36px;
  87. line-height: 36px;
  88. }
  89. }
  90. p{
  91. color:#999;
  92. margin-top: 4px;
  93. }
  94. }
  95. .rechargeDet-main{
  96. background-color: #fff;
  97. padding-left: 16px;
  98. margin-top: 12px;
  99. .rechargeDet-list{
  100. display: flex;
  101. align-items: center;
  102. justify-content: space-between;
  103. padding: 12px 16px 12px 0;
  104. border-bottom: 1px solid #f7f7f7;
  105. &:last-child{
  106. border-bottom: none;
  107. }
  108. }
  109. }
  110. </style>