feat(platform-ops): 增加平台运营统计总览页面
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const apiClient = vi.hoisted(() => ({
|
||||
get: vi.fn(),
|
||||
}))
|
||||
|
||||
vi.mock('@/shared/api/client', () => ({ apiClient }))
|
||||
|
||||
import { fetchPlatformOverview } from './platformOps'
|
||||
|
||||
describe('platform ops API', () => {
|
||||
it('loads the read-only platform overview', async () => {
|
||||
const payload = {
|
||||
generated_at: '2026-11-15T20:00:00+08:00',
|
||||
totals: { tenant_count: 2 },
|
||||
sites: [{ tenant_code: 'jieyou' }],
|
||||
trend: [{ date: '2026-11-15' }],
|
||||
}
|
||||
apiClient.get.mockResolvedValueOnce({ data: { data: payload } })
|
||||
|
||||
await expect(fetchPlatformOverview()).resolves.toEqual(payload)
|
||||
expect(apiClient.get).toHaveBeenCalledWith('/admin/platform/overview')
|
||||
})
|
||||
})
|
||||
@@ -0,0 +1,63 @@
|
||||
import { apiClient } from '@/shared/api/client'
|
||||
import type { ApiResponse } from '@/shared/types/types'
|
||||
|
||||
export interface PlatformTotals {
|
||||
tenant_count: number
|
||||
active_tenant_count: number
|
||||
user_count: number
|
||||
verified_users: number
|
||||
today_new_users: number
|
||||
total_listings: number
|
||||
published_listings: number
|
||||
today_new_listings: number
|
||||
pending_reviews: number
|
||||
total_orders: number
|
||||
paid_orders: number
|
||||
renting_orders: number
|
||||
today_orders: number
|
||||
today_gmv_cent: number
|
||||
paid_gmv_cent: number
|
||||
pending_disputes: number
|
||||
pending_handoffs: number
|
||||
pending_returns: number
|
||||
}
|
||||
|
||||
export interface PlatformSiteStats {
|
||||
tenant_id: number
|
||||
tenant_code: string
|
||||
tenant_name: string
|
||||
status: string
|
||||
user_count: number
|
||||
verified_users: number
|
||||
today_new_users: number
|
||||
total_listings: number
|
||||
published_listings: number
|
||||
pending_reviews: number
|
||||
buyer_orders: number
|
||||
buyer_gmv_cent: number
|
||||
source_orders: number
|
||||
source_amount_cent: number
|
||||
renting_orders: number
|
||||
today_orders: number
|
||||
today_gmv_cent: number
|
||||
}
|
||||
|
||||
export interface PlatformTrendPoint {
|
||||
date: string
|
||||
new_users: number
|
||||
new_listings: number
|
||||
orders: number
|
||||
paid_gmv_cent: number
|
||||
}
|
||||
|
||||
export interface PlatformOverview {
|
||||
generated_at: string
|
||||
totals: PlatformTotals
|
||||
sites: PlatformSiteStats[]
|
||||
trend: PlatformTrendPoint[]
|
||||
}
|
||||
|
||||
export async function fetchPlatformOverview() {
|
||||
const { data } = await apiClient.get<ApiResponse<PlatformOverview>>('/admin/platform/overview')
|
||||
return data.data
|
||||
}
|
||||
@@ -8,7 +8,7 @@ import { useRoute, useRouter } from 'vue-router'
|
||||
import { fetchAdminCaptcha, type AdminCaptcha } from '@/features/admin'
|
||||
import { useAdminSessionStore } from '@/stores/adminSession'
|
||||
import { useDistributionSiteStore } from '@/stores/distributionSite'
|
||||
import { ADMIN_DASHBOARD_PATH, isAdminPath } from '@/shared/utils/adminPath'
|
||||
import { ADMIN_DASHBOARD_PATH, PLATFORM_OPS_PATH, isAdminPath } from '@/shared/utils/adminPath'
|
||||
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
@@ -48,7 +48,12 @@ async function handleLogin() {
|
||||
)
|
||||
ElMessage.success('后台登录成功')
|
||||
const redirect = typeof route.query.redirect === 'string' ? route.query.redirect : ''
|
||||
await router.push(isAdminPath(redirect) ? redirect : ADMIN_DASHBOARD_PATH)
|
||||
const destination = siteStore.isPlatformOps
|
||||
? PLATFORM_OPS_PATH
|
||||
: isAdminPath(redirect)
|
||||
? redirect
|
||||
: ADMIN_DASHBOARD_PATH
|
||||
await router.push(destination)
|
||||
} catch (error) {
|
||||
ElMessage.error(readError(error, '后台登录失败'))
|
||||
await loadCaptcha()
|
||||
@@ -67,7 +72,9 @@ async function handleLogin() {
|
||||
<div class="admin-login-left">
|
||||
<div class="brand-lockup">
|
||||
<div class="brand-logo">{{ siteStore.brandMark }}</div>
|
||||
<strong>{{ siteStore.siteName }} · 后台管理</strong>
|
||||
<strong
|
||||
>{{ siteStore.siteName }}{{ siteStore.isPlatformOps ? '' : ' · 后台管理' }}</strong
|
||||
>
|
||||
</div>
|
||||
<div class="admin-login-hero">
|
||||
<h2>高效管理<br />从容掌控</h2>
|
||||
@@ -75,7 +82,9 @@ async function handleLogin() {
|
||||
<div class="login-site-scope">
|
||||
<span>当前登录站点</span>
|
||||
<strong>{{ siteStore.siteName }}</strong>
|
||||
<em>{{ siteStore.isTenant ? '经营站点' : '站点后台' }}</em>
|
||||
<em>{{
|
||||
siteStore.isPlatformOps ? '只读统计' : siteStore.isTenant ? '经营站点' : '站点后台'
|
||||
}}</em>
|
||||
</div>
|
||||
</div>
|
||||
<div class="admin-login-footer">
|
||||
|
||||
@@ -0,0 +1,560 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
Calendar,
|
||||
Coin,
|
||||
DataLine,
|
||||
Refresh,
|
||||
Shop,
|
||||
TrendCharts,
|
||||
User,
|
||||
Warning,
|
||||
} from '@element-plus/icons-vue'
|
||||
import { computed, onMounted, ref } from 'vue'
|
||||
|
||||
import {
|
||||
fetchPlatformOverview,
|
||||
type PlatformOverview,
|
||||
type PlatformTrendPoint,
|
||||
} from '@/features/admin/api/platformOps'
|
||||
import { formatCentWithSymbol } from '@/shared/utils/money'
|
||||
import { formatDateTime } from '@/shared/utils/time'
|
||||
import { readError } from '@/shared/utils/error'
|
||||
|
||||
const loading = ref(false)
|
||||
const error = ref('')
|
||||
const overview = ref<PlatformOverview | null>(null)
|
||||
|
||||
const trendMaxOrders = computed(() =>
|
||||
Math.max(1, ...(overview.value?.trend || []).map(item => item.orders))
|
||||
)
|
||||
const trendMaxGMV = computed(() =>
|
||||
Math.max(1, ...(overview.value?.trend || []).map(item => item.paid_gmv_cent))
|
||||
)
|
||||
|
||||
async function loadOverview() {
|
||||
loading.value = true
|
||||
error.value = ''
|
||||
try {
|
||||
overview.value = await fetchPlatformOverview()
|
||||
} catch (err) {
|
||||
error.value = readError(err, '平台统计加载失败')
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
function barHeight(value: number, max: number) {
|
||||
return `${Math.max(8, Math.round((value / max) * 100))}%`
|
||||
}
|
||||
|
||||
function shortDate(value: string) {
|
||||
return value.length >= 10 ? value.slice(5) : value
|
||||
}
|
||||
|
||||
function trendOrders(row: PlatformTrendPoint) {
|
||||
return row.orders
|
||||
}
|
||||
|
||||
onMounted(loadOverview)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section class="platform-page">
|
||||
<header class="platform-header">
|
||||
<div>
|
||||
<p class="platform-eyebrow">
|
||||
<el-icon><DataLine /></el-icon>
|
||||
PLATFORM OVERVIEW
|
||||
</p>
|
||||
<h1>平台运营总览</h1>
|
||||
<p>汇总大锤商行、解忧商行及后续经营站点的核心经营数据,仅用于查看统计。</p>
|
||||
</div>
|
||||
<div class="platform-header-actions">
|
||||
<span v-if="overview" class="platform-updated">
|
||||
更新于 {{ formatDateTime(overview.generated_at) }}
|
||||
</span>
|
||||
<el-button :icon="Refresh" :loading="loading" @click="loadOverview">刷新统计</el-button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div v-if="loading && !overview" class="platform-state">
|
||||
<el-icon class="is-loading"><DataLine /></el-icon>
|
||||
正在汇总平台数据...
|
||||
</div>
|
||||
|
||||
<div v-else-if="error && !overview" class="platform-state platform-state--error">
|
||||
<el-icon><Warning /></el-icon>
|
||||
<span>{{ error }}</span>
|
||||
<el-button @click="loadOverview">重试</el-button>
|
||||
</div>
|
||||
|
||||
<template v-else-if="overview">
|
||||
<section class="platform-metrics">
|
||||
<article class="platform-metric metric-sites">
|
||||
<el-icon><Shop /></el-icon>
|
||||
<div>
|
||||
<span>经营站点</span>
|
||||
<strong>{{ overview.totals.active_tenant_count }}</strong>
|
||||
<small>共 {{ overview.totals.tenant_count }} 个站点</small>
|
||||
</div>
|
||||
</article>
|
||||
<article class="platform-metric metric-users">
|
||||
<el-icon><User /></el-icon>
|
||||
<div>
|
||||
<span>平台用户</span>
|
||||
<strong>{{ overview.totals.user_count }}</strong>
|
||||
<small
|
||||
>实名 {{ overview.totals.verified_users }} · 今日新增
|
||||
{{ overview.totals.today_new_users }}</small
|
||||
>
|
||||
</div>
|
||||
</article>
|
||||
<article class="platform-metric metric-listings">
|
||||
<el-icon><TrendCharts /></el-icon>
|
||||
<div>
|
||||
<span>在售商品</span>
|
||||
<strong>{{ overview.totals.published_listings }}</strong>
|
||||
<small
|
||||
>商品总数 {{ overview.totals.total_listings }} · 待审核
|
||||
{{ overview.totals.pending_reviews }}</small
|
||||
>
|
||||
</div>
|
||||
</article>
|
||||
<article class="platform-metric metric-gmv">
|
||||
<el-icon><Coin /></el-icon>
|
||||
<div>
|
||||
<span>累计成交额</span>
|
||||
<strong>{{ formatCentWithSymbol(overview.totals.paid_gmv_cent) }}</strong>
|
||||
<small>有效订单 {{ overview.totals.paid_orders }} 笔</small>
|
||||
</div>
|
||||
</article>
|
||||
<article class="platform-metric metric-today">
|
||||
<el-icon><Calendar /></el-icon>
|
||||
<div>
|
||||
<span>今日成交</span>
|
||||
<strong>{{ formatCentWithSymbol(overview.totals.today_gmv_cent) }}</strong>
|
||||
<small>今日订单 {{ overview.totals.today_orders }} 笔</small>
|
||||
</div>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<section class="platform-panel">
|
||||
<div class="platform-panel-head">
|
||||
<div>
|
||||
<h2>分站经营统计</h2>
|
||||
<p>每个经营站点独立统计用户、货源、买入订单和出货订单。</p>
|
||||
</div>
|
||||
<div class="platform-pending">
|
||||
<span>待处理</span>
|
||||
<strong>
|
||||
审核 {{ overview.totals.pending_reviews }} · 申诉
|
||||
{{ overview.totals.pending_disputes }}
|
||||
</strong>
|
||||
<small>
|
||||
交接 {{ overview.totals.pending_handoffs }} · 归还确认
|
||||
{{ overview.totals.pending_returns }}
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<el-table class="platform-site-table" :data="overview.sites" stripe>
|
||||
<el-table-column label="站点" min-width="160" fixed="left">
|
||||
<template #default="{ row }">
|
||||
<div class="platform-site-name">
|
||||
<strong>{{ row.tenant_name }}</strong>
|
||||
<small>{{ row.tenant_code }}</small>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="状态" width="90">
|
||||
<template #default="{ row }">
|
||||
<el-tag :type="row.status === 'active' ? 'success' : 'info'" size="small">
|
||||
{{ row.status === 'active' ? '运营中' : '已停用' }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="用户" min-width="150" align="right">
|
||||
<template #default="{ row }">
|
||||
<strong>{{ row.user_count }}</strong>
|
||||
<span class="platform-cell-sub"
|
||||
>实名 {{ row.verified_users }} · 今日 +{{ row.today_new_users }}</span
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="商品" min-width="170" align="right">
|
||||
<template #default="{ row }">
|
||||
<strong>{{ row.published_listings }}</strong>
|
||||
<span class="platform-cell-sub"
|
||||
>总数 {{ row.total_listings }} · 待审 {{ row.pending_reviews }}</span
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="本站买入" min-width="150" align="right">
|
||||
<template #default="{ row }">
|
||||
<strong>{{ row.buyer_orders }} 单</strong>
|
||||
<span class="platform-cell-sub">{{ formatCentWithSymbol(row.buyer_gmv_cent) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="本站出货" min-width="150" align="right">
|
||||
<template #default="{ row }">
|
||||
<strong>{{ row.source_orders }} 单</strong>
|
||||
<span class="platform-cell-sub">{{
|
||||
formatCentWithSymbol(row.source_amount_cent)
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="今日" min-width="150" align="right">
|
||||
<template #default="{ row }">
|
||||
<strong>{{ row.today_orders }} 单</strong>
|
||||
<span class="platform-cell-sub">{{ formatCentWithSymbol(row.today_gmv_cent) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="租用中" width="100" align="right">
|
||||
<template #default="{ row }">{{ row.renting_orders }}</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</section>
|
||||
|
||||
<section class="platform-panel">
|
||||
<div class="platform-panel-head">
|
||||
<div>
|
||||
<h2>近 7 日平台趋势</h2>
|
||||
<p>新增用户、新增商品、有效订单和成交额按北京时间自然日汇总。</p>
|
||||
</div>
|
||||
<div class="platform-trend-legend">
|
||||
<span><em class="legend-orders" />有效订单</span>
|
||||
<span><em class="legend-gmv" />成交额</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="platform-trend-grid">
|
||||
<article v-for="item in overview.trend" :key="item.date" class="platform-trend-day">
|
||||
<div class="platform-trend-date">{{ shortDate(item.date) }}</div>
|
||||
<div class="platform-trend-bars">
|
||||
<span
|
||||
class="trend-bar trend-orders"
|
||||
:style="{ height: barHeight(trendOrders(item), trendMaxOrders) }"
|
||||
/>
|
||||
<span
|
||||
class="trend-bar trend-gmv"
|
||||
:style="{ height: barHeight(item.paid_gmv_cent, trendMaxGMV) }"
|
||||
/>
|
||||
</div>
|
||||
<strong>{{ item.orders }} 单</strong>
|
||||
<small>{{ formatCentWithSymbol(item.paid_gmv_cent) }}</small>
|
||||
<span class="platform-trend-foot"
|
||||
>用户 +{{ item.new_users }} · 商品 +{{ item.new_listings }}</span
|
||||
>
|
||||
</article>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.platform-page {
|
||||
display: grid;
|
||||
gap: 18px;
|
||||
padding-bottom: 28px;
|
||||
}
|
||||
|
||||
.platform-header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
flex-wrap: wrap;
|
||||
padding: 26px 28px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 12px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.platform-header h1 {
|
||||
margin: 8px 0 7px;
|
||||
color: #0f172a;
|
||||
font-size: 28px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.platform-header p {
|
||||
margin: 0;
|
||||
color: #64748b;
|
||||
font-size: 13px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.platform-eyebrow {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
color: #2563eb !important;
|
||||
font-size: 11px !important;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.platform-header-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.platform-updated {
|
||||
color: #94a3b8;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.platform-state {
|
||||
display: flex;
|
||||
min-height: 240px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 12px;
|
||||
background: #fff;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.platform-state--error {
|
||||
color: #dc2626;
|
||||
}
|
||||
|
||||
.platform-metrics {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.platform-metric {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
min-height: 118px;
|
||||
padding: 18px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-top: 3px solid #2563eb;
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.platform-metric > .el-icon {
|
||||
display: grid;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
flex: none;
|
||||
place-items: center;
|
||||
border-radius: 10px;
|
||||
background: #eff6ff;
|
||||
color: #2563eb;
|
||||
font-size: 21px;
|
||||
}
|
||||
|
||||
.platform-metric > div {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 3px;
|
||||
}
|
||||
|
||||
.platform-metric span {
|
||||
color: #64748b;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.platform-metric strong {
|
||||
color: #0f172a;
|
||||
font-size: 25px;
|
||||
font-weight: 800;
|
||||
line-height: 1.15;
|
||||
}
|
||||
|
||||
.platform-metric small {
|
||||
color: #94a3b8;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.metric-listings,
|
||||
.metric-gmv {
|
||||
border-top-color: #059669;
|
||||
}
|
||||
|
||||
.metric-listings > .el-icon,
|
||||
.metric-gmv > .el-icon {
|
||||
background: #ecfdf5;
|
||||
color: #059669;
|
||||
}
|
||||
|
||||
.metric-today {
|
||||
border-top-color: #d97706;
|
||||
}
|
||||
|
||||
.metric-today > .el-icon {
|
||||
background: #fffbeb;
|
||||
color: #d97706;
|
||||
}
|
||||
|
||||
.platform-panel {
|
||||
overflow: hidden;
|
||||
padding: 20px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 12px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.platform-panel-head {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.platform-panel-head h2 {
|
||||
margin: 0 0 5px;
|
||||
color: #0f172a;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.platform-panel-head p {
|
||||
margin: 0;
|
||||
color: #64748b;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.platform-pending {
|
||||
display: grid;
|
||||
justify-items: end;
|
||||
gap: 2px;
|
||||
color: #64748b;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.platform-pending strong {
|
||||
color: #b45309;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.platform-site-name {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.platform-site-name strong {
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
.platform-site-name small,
|
||||
.platform-cell-sub {
|
||||
color: #94a3b8;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.platform-cell-sub {
|
||||
display: block;
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.platform-trend-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, minmax(90px, 1fr));
|
||||
gap: 10px;
|
||||
overflow-x: auto;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
.platform-trend-legend {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
color: #64748b;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.platform-trend-legend span {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.platform-trend-legend em {
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.legend-orders {
|
||||
background: #3b82f6;
|
||||
}
|
||||
|
||||
.legend-gmv {
|
||||
background: #10b981;
|
||||
}
|
||||
|
||||
.platform-trend-day {
|
||||
display: grid;
|
||||
min-width: 90px;
|
||||
justify-items: center;
|
||||
gap: 5px;
|
||||
padding: 12px 8px;
|
||||
border: 1px solid #eef2f7;
|
||||
border-radius: 8px;
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
.platform-trend-date {
|
||||
color: #64748b;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.platform-trend-bars {
|
||||
display: flex;
|
||||
height: 82px;
|
||||
align-items: flex-end;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.trend-bar {
|
||||
width: 12px;
|
||||
min-height: 6px;
|
||||
border-radius: 3px 3px 0 0;
|
||||
}
|
||||
|
||||
.trend-orders {
|
||||
background: #3b82f6;
|
||||
}
|
||||
|
||||
.trend-gmv {
|
||||
background: #10b981;
|
||||
}
|
||||
|
||||
.platform-trend-day strong {
|
||||
color: #0f172a;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.platform-trend-day small {
|
||||
color: #059669;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.platform-trend-foot {
|
||||
color: #94a3b8;
|
||||
font-size: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.platform-header,
|
||||
.platform-panel {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.platform-trend-grid {
|
||||
grid-template-columns: repeat(7, 96px);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user