| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <template>
- <widget-card :bodyStyle="bodyStyle">
- <i class="fa-fw fas fa-user fa-3x" style="color: #40c9c6;"></i>
- <div class="info">
- <div class="text">官方购买人数/二手市场(人)</div>
- <div class="num">{{ info.officialNum }}/{{ info.transferNum }}</div>
- </div>
- </widget-card>
- </template>
- <script>
- import WidgetCard from './WidgetCard';
- import acc from '../mixins/acc';
- export default {
- props: {
- info: {
- type: Object,
- default: () => {
- return {};
- }
- }
- },
- mixins: [acc],
- computed: {
- total() {
- return this.accAdd(this.info.officialNum || 0, this.info.transferNum || 0);
- }
- },
- 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>
|