This commit is contained in:
qsh
2024-09-20 11:21:05 +08:00
parent a81d21dd3b
commit 83d04e7333
5 changed files with 31 additions and 16 deletions

View File

@@ -67,8 +67,8 @@
</el-row>
</el-skeleton>
</el-card>
<div class="mt-10px flex">
<el-card shadow="never" class="flex-1">
<div class="mt-10px flex" style="flex-wrap: wrap">
<el-card shadow="never" :class="mobile ? 'w-full mb-10px' : 'flex-1'">
<template #header>
<div class="flex justify-between">
<span>成交率</span>
@@ -80,7 +80,7 @@
</el-skeleton>
</el-skeleton>
</el-card>
<el-card shadow="never" class="ml-10px">
<el-card shadow="never" :class="mobile ? 'flex-1' : 'ml-10px'">
<template #header>
<div class="flex justify-between items-center">
<span>跟进榜Top10</span>
@@ -107,7 +107,7 @@
</ul>
</el-skeleton>
</el-card>
<el-card shadow="never" class="ml-10px">
<el-card shadow="never" :class="mobile ? 'flex-1 ml-10px' : 'ml-10px'">
<template #header>
<div class="flex justify-between"> 本月成交榜Top10 </div>
</template>
@@ -142,12 +142,15 @@ import { useUserStore } from '@/store/modules/user'
import avatarImg from '@/assets/imgs/avatar.gif'
import { lineOptions } from './echarts-data'
import * as HomeApi from '@/api/home/index'
import { useAppStore } from '@/store/modules/app'
const { t } = useI18n()
const userStore = useUserStore()
const appStore = useAppStore()
const loading = ref(false)
const avatar = userStore.getUser.avatar ? userStore.getUser.avatar : avatarImg
const username = userStore.getUser.nickname
const mobile = appStore.getMobile
const followDate = ref(1)