update:更新了el-statistic的字体移动端适应

This commit is contained in:
lihaoyuan 2025-07-05 14:28:17 +08:00
parent 3d2578a8a4
commit 8d6294c064
2 changed files with 11 additions and 7 deletions

View File

@ -17,7 +17,7 @@ body{
font-size: 12px;
overflow-x: hidden;
/* height: 100vh; */
/* 设置高度,打开注册页面不滚动 */
/* 设置高度,打开注册页面就可以不滚动 */
}
:root {
--bgcolor: #ea4322;

View File

@ -36,7 +36,7 @@
<el-statistic
:value="businessmanValue"
:formatter="formatter"
:value-style="{ fontSize: '35px' }"
/>
</h3>
<p>商家数量</p>
@ -49,7 +49,7 @@
<el-statistic
:value="productValue"
:formatter="formatter2"
:value-style="{ fontSize: '35px' }"
/>
</h3>
<p>商品数量</p>
@ -62,7 +62,7 @@
<el-statistic
:value="memberValue"
:formatter="formatter"
:value-style="{ fontSize: '35px' }"
/>
</h3>
<p>会员数量</p>
@ -75,7 +75,7 @@
<el-statistic
:value="orderValue"
:formatter="formatter2"
:value-style="{ fontSize: '35px' }"
/>
</h3>
<p>订单数量</p>
@ -251,7 +251,9 @@ onMounted(() => {
.counter_wrapper .count_box:hover p {
color: #ffffff;
}
:deep(span.el-statistic__number) {
font-size: 35px;
}
:deep(.count_box:hover .el-statistic__content) {
color: #ffffff;
}
@ -292,7 +294,9 @@ onMounted(() => {
padding-top: 30px;//
display: block;
}
:deep(span.el-statistic__number) {
font-size: 20px;
}
.bg {
display: none;
}