refundRecord.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <template name="refund">
  2. <view class="record-template" v-if="isEmpty">
  3. <!-- 支付记录 -->
  4. <view class="record-content">
  5. <view class="record-title">
  6. <view class="record-title-l">退款记录</view>
  7. <view class="record-title-r">
  8. 已退款:<text class="red">¥{{ returnedPurchaseFee != null ? returnedPurchaseFee.toFixed(2) : '0.00'}}</text>
  9. </view>
  10. </view>
  11. <view class="record-list">
  12. <view class="record-item" v-for="(item,index) in returnedPurchaseList" :key="index">
  13. <view class="item-time">{{item.confirmReturnTime}}</view>
  14. <view class="item-nums">{{item.returnedWay =='4' ? '无支付无退款' : '¥'+item.refundFee.toFixed(2)}}</view>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default{
  22. name:"refund",
  23. props:{
  24. returnedPurchaseList:{
  25. type:Array
  26. },
  27. returnedPurchaseFee:{
  28. type:Number
  29. }
  30. },
  31. data() {
  32. return{
  33. isEmpty:false,
  34. isOpen:false,
  35. }
  36. },
  37. created(){
  38. this.initData(this.returnedPurchaseList)
  39. },
  40. computed: {
  41. },
  42. methods:{
  43. initData(res) {
  44. if(res!=''){
  45. this.isEmpty = true
  46. }else{
  47. this.isEmpty = false
  48. this.refundData = res;
  49. }
  50. },
  51. }
  52. }
  53. </script>
  54. <style lang="scss">
  55. .record-template{
  56. width: 100%;
  57. height: auto;
  58. background: #FFFFFF;
  59. float: left;
  60. margin-top: 24rpx;
  61. padding-bottom: 40rpx;
  62. .record-content{
  63. width: 702rpx;
  64. padding: 20rpx 24rpx;
  65. height: auto;
  66. .record-title{
  67. width: 100%;
  68. font-size: $font-size-28;
  69. color: $text-color;
  70. text-align: left;
  71. line-height: 40rpx;
  72. margin-bottom: 12rpx;
  73. float: left;
  74. .record-title-l{
  75. font-weight: bold;
  76. float: left;
  77. }
  78. .record-title-r{
  79. float: right;
  80. .red{
  81. color: #FF2A2A;
  82. font-weight: bold;
  83. }
  84. }
  85. }
  86. .record-empty{
  87. font-size: $font-size-28;
  88. color: $text-color;
  89. text-align: left;
  90. line-height: 40rpx;
  91. }
  92. .record-list{
  93. width: 100%;
  94. height: auto;
  95. float: left;
  96. margin-top: 12rpx;
  97. .record-item{
  98. height: 40rpx;
  99. width: 100%;
  100. padding: 12rpx 0;
  101. font-size: $font-size-28;
  102. line-height: 40rpx;
  103. float: left;
  104. .item-time{
  105. float: left;
  106. color: #999999;
  107. }
  108. .item-nums{
  109. font-weight: bold;
  110. float: right;
  111. color: $text-color;
  112. }
  113. }
  114. }
  115. }
  116. }
  117. </style>