12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <template>
- <div>
- <div class="list-header">
- <div class="header-text haeder-one">提现日期</div>
- <div class="header-text header-two">佣金</div>
- </div>
- <div class="record-list">
- <div class="record-item" v-for="(item, index) in data" :key="index">
- <div class="record-title">{{ item.withdrawalTime }}</div>
- <div class="record-time">¥{{ item.withdrawalMoney | keepTwo}}</div>
- </div>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: 'WithdrawalRecord',
- props: {
- data: {
- type: Array,
- default: () => []
- }
- },
- filters: {
- // 保留小数2位
- keepTwo(val) {
- if (!val) return ''
- return Number(val).toFixed(2)
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .list-header{
- background-color: #FFEED7;
- display: flex;
- flex-wrap: nowrap;
- justify-content: space-around;
- .haeder-one{
- flex: 0.45;
- }
- .header-two{
- flex: 0.55;
- }
- .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;
- .record-title,
- .record-time{
- text-align: center;
- line-height: 33px;
- }
- .record-title{
- flex: 0.45;
-
- }
- .record-time{
- flex: 0.55;
- }
- }
- </style>
|