refundList.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <template>
  2. <view>
  3. <u-navbar title="退费记录"></u-navbar>
  4. <view class="balance">
  5. <view class="balanceHead">
  6. <view class="payPrice">
  7. <span>¥</span><font>15.00</font>
  8. </view>
  9. <view class="tips">
  10. <p>可退费金额(元)</p><u-icon name="question-line" custom-prefix="custom-icon" color="#00B962" size="32"></u-icon>
  11. </view>
  12. </view>
  13. <view class="balanceMain">
  14. <view class="balanceMain-title">
  15. <view class="title">
  16. <u-icon name="todo-fill" custom-prefix="custom-icon" color="#6BC6A7" size="40"></u-icon>
  17. <span>退费记录</span>
  18. </view>
  19. <view class="more">
  20. <span>查看全部</span>
  21. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
  22. </view>
  23. </view>
  24. <view class="refundList">
  25. <view class="refundList-item">
  26. <view class="refundList-row">
  27. <font>退至 微信</font>
  28. <span class="state1">退款中</span>
  29. </view>
  30. <view class="refundList-row">
  31. <p>2021-12-31 09:00</p>
  32. <p>¥15.00</p>
  33. </view>
  34. </view>
  35. <view class="refundList-item">
  36. <view class="refundList-row">
  37. <font>退至 微信</font>
  38. <span class="state2">已退款</span>
  39. </view>
  40. <view class="refundList-row">
  41. <p>2021-12-31 09:00</p>
  42. <p>¥15.00</p>
  43. </view>
  44. </view>
  45. <!-- <view class="refundList-none">
  46. <u-image width="200px" height="200px" src="/static/img/none.svg"></u-image>
  47. </view> -->
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. </template>
  53. <script>
  54. import * as api from "@/apis/refund.js"
  55. export default {
  56. data() {
  57. return {
  58. userId:'',
  59. }
  60. },
  61. onLoad(){
  62. },
  63. onReady(){
  64. if (this.carhelp.getPersonInfo()) {
  65. this.userId = this.carhelp.getPersonInfo().id;
  66. }
  67. api.personAccount().then(function(res){
  68. console.log('个人余额信息'+JSON.stringify(res));
  69. },function(err){
  70. console.log('个人信息余额错误'+JSON.stringify(err));
  71. });
  72. },
  73. methods: {
  74. }
  75. }
  76. </script>
  77. <style lang="scss" scoped>
  78. .refundList-none{
  79. display: flex;
  80. align-items: center;
  81. justify-content: center;
  82. }
  83. .balanceHead{
  84. background-color: #fff;
  85. padding: 24px 0;
  86. display: flex;
  87. flex-direction: column;
  88. align-items: center;
  89. .payPrice{
  90. display: flex;
  91. align-items: flex-end;
  92. justify-content: center;
  93. font{
  94. font-size: 36px;
  95. line-height: 36px;
  96. }
  97. }
  98. .tips{
  99. display: flex;
  100. align-items: center;
  101. margin-top: 4px;
  102. p{
  103. color:#999;
  104. margin-right: 4px;
  105. }
  106. }
  107. }
  108. .balanceMain{
  109. background-color: #fff;
  110. margin-top: 12px;
  111. .balanceMain-title{
  112. display: flex;
  113. align-items: center;
  114. justify-content: space-between;
  115. height: 48px;
  116. border-bottom: 1px solid #f7f7f7;
  117. padding: 0 16PX;
  118. .title{
  119. display: flex;
  120. align-items: center;
  121. span{
  122. margin-left: 8px;
  123. font-size: 16px;
  124. }
  125. }
  126. }
  127. .refundList-item{
  128. padding: 12px 16px;
  129. .refundList-row{
  130. display: flex;
  131. align-items: center;
  132. justify-content: space-between;
  133. p{
  134. font-size: 12px;
  135. color:#888;
  136. margin-top: 3px;
  137. }
  138. .state1{
  139. color:#FF9600;
  140. }
  141. .state2{
  142. color:#00B962;
  143. }
  144. }
  145. }
  146. }
  147. </style>