WithdrawalRecord.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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-item{
  47. display: flex;
  48. flex-wrap: nowrap;
  49. justify-content: space-around;
  50. .record-title,
  51. .record-time{
  52. text-align: center;
  53. line-height: 33px;
  54. }
  55. .record-title{
  56. flex: 0.45;
  57. }
  58. .record-time{
  59. flex: 0.55;
  60. }
  61. }
  62. </style>