|
@@ -3,48 +3,16 @@
|
|
|
<!-- 统计卡片 -->
|
|
<!-- 统计卡片 -->
|
|
|
<el-row :gutter="24" class="td-stat-row">
|
|
<el-row :gutter="24" class="td-stat-row">
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
|
- <div class="td-stat-card">
|
|
|
|
|
- <div class="td-stat-icon" style="background: #1677FF">
|
|
|
|
|
- <i class="el-icon-user-solid"></i>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="td-stat-content">
|
|
|
|
|
- <div class="td-stat-value">{{ teacherStats.serviceFamilyCount }}</div>
|
|
|
|
|
- <div class="td-stat-label">服务家庭</div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <StatCard color="primary" icon="el-icon-user-solid" label="服务家庭" :value="teacherStats.serviceFamilyCount" :thousand="true" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
|
- <div class="td-stat-card">
|
|
|
|
|
- <div class="td-stat-icon" style="background: #52C41A">
|
|
|
|
|
- <i class="el-icon-s-data"></i>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="td-stat-content">
|
|
|
|
|
- <div class="td-stat-value">{{ teacherStats.activeFamilyCount }}</div>
|
|
|
|
|
- <div class="td-stat-label">活跃家庭</div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <StatCard color="success" icon="el-icon-s-data" label="活跃家庭" :value="teacherStats.activeFamilyCount" :thousand="true" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
|
- <div class="td-stat-card">
|
|
|
|
|
- <div class="td-stat-icon" style="background: #FAAD14">
|
|
|
|
|
- <i class="el-icon-coin"></i>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="td-stat-content">
|
|
|
|
|
- <div class="td-stat-value">{{ formatPriceWithSymbol(teacherStats.monthlySales) }}</div>
|
|
|
|
|
- <div class="td-stat-label">本月销售额</div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <StatCard color="warning" icon="el-icon-coin" label="本月销售额" :value="formatPriceWithSymbol(teacherStats.monthlySales)" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
|
- <div class="td-stat-card">
|
|
|
|
|
- <div class="td-stat-icon" style="background: #1677FF">
|
|
|
|
|
- <i class="el-icon-wallet"></i>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="td-stat-content">
|
|
|
|
|
- <div class="td-stat-value">{{ formatPriceWithSymbol(teacherStats.myCommission) }}</div>
|
|
|
|
|
- <div class="td-stat-label">我的佣金</div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <StatCard color="primary" icon="el-icon-wallet" label="我的佣金" :value="formatPriceWithSymbol(teacherStats.myCommission)" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
|
@@ -317,11 +285,6 @@ export default {
|
|
|
/* ===== Teacher Dashboard Styles ===== */
|
|
/* ===== Teacher Dashboard Styles ===== */
|
|
|
.teacher-dashboard-wrapper { padding: 0; }
|
|
.teacher-dashboard-wrapper { padding: 0; }
|
|
|
.td-stat-row { margin-bottom: 24px; }
|
|
.td-stat-row { margin-bottom: 24px; }
|
|
|
-.td-stat-card { display: flex; align-items: center; padding: 20px 24px; background: #FFFFFF; border-radius: 16px; box-shadow: 0 2px 12px rgba(59,130,246,0.08); border: none; transition: all 0.3s; }
|
|
|
|
|
-.td-stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,130,246,0.12); }
|
|
|
|
|
-.td-stat-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-right: 16px; font-size: 24px; color: #FFFFFF; flex-shrink: 0; }
|
|
|
|
|
-.td-stat-value { font-size: 28px; font-weight: 700; color: #1E293B; line-height: 1.2; }
|
|
|
|
|
-.td-stat-label { font-size: 14px; color: #64748B; margin-top: 4px; }
|
|
|
|
|
.td-section-row { margin-bottom: 24px; }
|
|
.td-section-row { margin-bottom: 24px; }
|
|
|
.td-card-header { display: flex; justify-content: space-between; align-items: center; }
|
|
.td-card-header { display: flex; justify-content: space-between; align-items: center; }
|
|
|
.td-card-title { font-size: 16px; font-weight: 600; color: #1E293B; }
|
|
.td-card-title { font-size: 16px; font-weight: 600; color: #1E293B; }
|