BuyRecordList.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <div>
  3. <div class="list-header">
  4. <div class="header-text haeder-account">被邀请账号</div>
  5. <div class="header-text haeder-pay">付费金额</div>
  6. <div class="header-text header-time">购买时间</div>
  7. <div class="header-text header-back">佣金</div>
  8. </div>
  9. <div class="record-list">
  10. <div class="record-item" v-for="(item, index) in data" :key="index">
  11. <div class="body-text record-account">{{ item.newPhone }}</div>
  12. <div class="body-text record-pay">{{ item.totalAmount }}</div>
  13. <div class="body-text record-time">{{ item.finishTime }}</div>
  14. <div class="body-text record-back">{{ item.rakeBackAmount }}</div>
  15. </div>
  16. </div>
  17. </div>
  18. </template>
  19. <script>
  20. export default {
  21. name: 'BuyRecordList',
  22. props: {
  23. data: {
  24. type: Array,
  25. default: () => []
  26. }
  27. }
  28. }
  29. </script>
  30. <style lang="scss" scoped>
  31. .list-header{
  32. background-color: #FFEED7;
  33. display: flex;
  34. flex-wrap: nowrap;
  35. justify-content: space-around;
  36. .haeder-account,.record-account{
  37. flex: 0.22;
  38. }
  39. .haeder-pay.record-pay{
  40. flex: 0.15;
  41. }
  42. .header-time,.record-time{
  43. flex: 0.37;
  44. }
  45. .header-back,.record-back{
  46. flex: 0.1;
  47. }
  48. .header-text{
  49. text-align: center;
  50. font-weight: 400;
  51. font-size: 12px;
  52. color: #333;
  53. line-height: 24px;
  54. }
  55. }
  56. .record-list{
  57. min-height: 165px;
  58. }
  59. .record-item{
  60. display: flex;
  61. flex-wrap: nowrap;
  62. justify-content: space-around;
  63. .body-text{
  64. text-align: center;
  65. line-height: 33px;
  66. }
  67. }
  68. </style>