BuyRecordList.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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-item{
  57. display: flex;
  58. flex-wrap: nowrap;
  59. justify-content: space-around;
  60. .body-text{
  61. text-align: center;
  62. line-height: 33px;
  63. }
  64. }
  65. </style>