WithdrawalRecord.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <div>
  3. <div class="list-header">
  4. <div class="header-text haeder-one">提现日期</div>
  5. <div class="header-text header-two">佣金</div>
  6. </div>
  7. <div class="record-list">
  8. <div class="record-item" v-for="(item, index) in data" :key="index">
  9. <div class="record-title">{{ item.withdrawalTime }}</div>
  10. <div class="record-time">{{ item.withdrawalMoney }}</div>
  11. </div>
  12. </div>
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. name: 'WithdrawalRecord',
  18. props: {
  19. data: {
  20. type: Array,
  21. default: () => []
  22. }
  23. }
  24. }
  25. </script>
  26. <style lang="scss" scoped>
  27. .list-header{
  28. background-color: #FFEED7;
  29. display: flex;
  30. flex-wrap: nowrap;
  31. justify-content: space-around;
  32. .haeder-one{
  33. flex: 0.45;
  34. }
  35. .header-two{
  36. flex: 0.55;
  37. }
  38. .header-text{
  39. text-align: center;
  40. font-weight: 400;
  41. font-size: 12px;
  42. color: #333;
  43. line-height: 24px;
  44. }
  45. }
  46. .record-list{
  47. min-height: 165px;
  48. }
  49. .record-item{
  50. display: flex;
  51. flex-wrap: nowrap;
  52. justify-content: space-around;
  53. .record-title,
  54. .record-time{
  55. text-align: center;
  56. line-height: 33px;
  57. }
  58. .record-title{
  59. flex: 0.45;
  60. }
  61. .record-time{
  62. flex: 0.55;
  63. }
  64. }
  65. </style>