<template>
  <el-row :gutter="12">
    <el-col :xl="6" :lg="8" :md="10" :sm="12" :xs="24">
      <el-card class="card-box">
        <mch-user-profile/>
      </el-card>
      <el-card  class="card-box" header="收款账户">
        <mch-account/>
      </el-card>
    </el-col>
    <el-col :xl="18" :lg="16" :md="14" :sm="12" :xs="24">
      <el-scrollbar style="max-height: calc(100vh - 148px);">
        <el-card class="card-box">
          <div class="hello">
            欢迎！<span style="font-size: 20px">{{name}}</span>
          </div>
        </el-card>
        <el-card class="card-box" header="收入统计">
          <mch-recharge-count-report/>
        </el-card>
      </el-scrollbar>
    </el-col>
  </el-row>
</template>

<script>
import MchRechargeCountReport from '@/views/mch/index/components/MchRechargeCountReport.vue'
import { mapGetters } from 'vuex'
import MchUserProfile from '@/views/mch/index/components/MchUserProfile.vue'
import LineField from '@/components/LineField/index.vue'
import MchAccount from '@/views/mch/index/components/MchAccount.vue'

export default {
  name: 'MchIndex',
  components: { MchAccount, LineField, MchUserProfile, MchRechargeCountReport },
  computed: {
    ...mapGetters(['name'])
  }
}
</script>

<style scoped>
.hello {
  font-size: 28px;
}
</style>
