1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <template>
- <div>
- <div class="list-header">
- <div class="header-text haeder-account">被邀请账号</div>
- <div class="header-text haeder-pay">付费金额</div>
- <div class="header-text header-time">购买时间</div>
- <div class="header-text header-back">佣金</div>
- </div>
- <div class="record-list">
- <div class="record-item" v-for="(item, index) in data" :key="index">
- <div class="body-text record-account">{{ item.newPhone }}</div>
- <div class="body-text record-pay">{{ item.totalAmount }}</div>
- <div class="body-text record-time">{{ item.finishTime }}</div>
- <div class="body-text record-back">{{ item.rakeBackAmount }}</div>
- </div>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: 'BuyRecordList',
- props: {
- data: {
- type: Array,
- default: () => []
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .list-header{
- background-color: #FFEED7;
- display: flex;
- flex-wrap: nowrap;
- justify-content: space-around;
- .haeder-account,.record-account{
- flex: 0.22;
- }
-
- .haeder-pay.record-pay{
- flex: 0.15;
- }
- .header-time,.record-time{
- flex: 0.37;
- }
- .header-back,.record-back{
- flex: 0.1;
- }
- .header-text{
- text-align: center;
- font-weight: 400;
- font-size: 12px;
- color: #333;
- line-height: 24px;
- }
- }
- .record-list{
- min-height: 165px;
- }
- .record-item{
- display: flex;
- flex-wrap: nowrap;
- justify-content: space-around;
- .body-text{
- text-align: center;
- line-height: 33px;
- }
- }
- </style>
|