<template>
    <widget-card :bodyStyle="bodyStyle">
        <i class="fa-fw fas fa-shopping-basket fa-3x" style="color: #40c9c6;"></i>
        <div class="info">
            <div class="text">官方交易额/二手市场(万元)</div>
            <div class="num">{{ getNum(info.officialPrice || 0) }}/{{ getNum(info.transferPrice || 0) }}</div>
        </div>
    </widget-card>
</template>
<script>
import WidgetCard from './WidgetCard';
import acc from '../mixins/acc';
export default {
    props: {
        info: {
            type: Object,
            default: () => {
                return {};
            }
        }
    },
    computed: {
        total() {
            return this.accAdd(this.info.officialPrice || 0, this.info.transferPrice || 0);
        }
    },
    mixins: [acc],
    data() {
        return {
            bodyStyle: {
                display: 'flex',
                alignItems: 'center'
            }
        };
    },
    components: {
        WidgetCard
    }
};
</script>
<style lang="less" scoped>
.info {
    flex-grow: 1;
    text-align: right;
    .text {
        color: #999;
        font-size: 16px;
        margin-bottom: 12px;
    }
    .num {
        font-size: 20px;
        color: #333;
    }
}
</style>
