feat: 会员中心全局暗色主题重构
All checks were successful
continuous-integration/drone/push Build is passing

阶段一:全局覆盖
- 新增 dark-override.css (450+ 行),覆盖所有 Element UI 组件暗色样式
  - 输入框、表格、Tabs、弹窗、按钮、分页、复选框、下拉框等
  - 侧边栏、顶栏、主内容区暗色背景
  - 滚动条、日期选择器、消息面板等
- header.php 引入 dark-override.css

阶段二:页面独立 CSS 暗色化(22 个文件)
- 白色背景 #fff → #161b22
- 浅灰背景 #F3F5F9 → #0d1117
- 深色文字 #171725/#1E2736 → #E6E8EB
- 灰色文字 #8692B0 → #8B949E
- 浅色边框 #E6E7EB → rgba(255,255,255,0.06)
- 悬停背景 #F5F7FA → #21262d
This commit is contained in:
yiqiu
2026-03-19 19:49:49 +08:00
parent 63facc24d6
commit 0b845b2075
20 changed files with 789 additions and 193 deletions

View File

@@ -3,7 +3,7 @@
}
.main-card {
max-width: none;
background: #F3F5F9;
background: #0d1117;
}
.main-content {
display: flex;
@@ -17,8 +17,8 @@
flex-wrap: wrap;
box-sizing: border-box;
padding: 0.84rem 0.6rem 0.4rem 1.1rem;
border-right: 1px solid #E6E7EB;
background-color: #fff;
border-right: 1px solid rgba(255,255,255,0.06);
background-color: #161b22;
min-height: 1.88rem;
}
.info-first {
@@ -31,7 +31,7 @@
justify-content: center;
align-items: center;
font-size: 0.36rem;
background: #fff;
background: #161b22;
width: 0.6rem;
height: 0.6rem;
border-radius: 0.03rem;
@@ -45,17 +45,17 @@
margin-left: 0.08rem;
}
.name {
color: #8692B0;
color: #8B949E;
font-size: 0.14rem;
font-weight: 400;
}
.name .id-text {
color: #1E2736;
color: #E6E8EB;
}
.hello {
font-weight: 400;
font-size: 0.16rem;
color: #1E2736;
color: #E6E8EB;
}
.info-second {
height: 0.6rem;
@@ -82,7 +82,7 @@
align-items: center;
column-gap: 0.04rem;
font-size: 0.14rem;
color: #8692B0;
color: #8B949E;
}
.info-three .compny-box .left-icon img,
.info-three .person-box .left-icon img {
@@ -98,11 +98,11 @@
}
.info-three .compny-box .right-text .right-type,
.info-three .person-box .right-text .right-type {
color: #949CB0;
color: #8B949E;
}
.info-three .compny-box .right-text .company-name,
.info-three .person-box .right-text .company-name {
color: #1E2736;
color: #E6E8EB;
}
.info-three .compny-box .right-text .certify-bottom,
.info-three .person-box .right-text .certify-bottom {
@@ -123,7 +123,7 @@
}
.info-three .compny-box .right-text .certify-text,
.info-three .person-box .right-text .certify-text {
color: #292E36;
color: #E6E8EB;
display: inline-block;
max-width: 1.6rem;
overflow: hidden;
@@ -132,7 +132,7 @@
}
.email-box,
.phone-box {
color: #8692B0;
color: #8B949E;
display: flex;
justify-content: space-between;
align-items: center;
@@ -141,7 +141,7 @@
.email-box .phone-number,
.phone-box .phone-number {
margin-left: 0.25rem;
color: #1E2736;
color: #E6E8EB;
}
.info-second > div img {
margin-right: 0.05rem;
@@ -154,7 +154,7 @@
}
.title-text {
font-weight: Bold;
color: #171725;
color: #E6E8EB;
font-size: 0.16rem;
margin-bottom: 0.1rem;
}
@@ -165,7 +165,7 @@
}
.money-box {
flex: 1;
background-color: #fff;
background-color: #161b22;
}
.order-box {
display: flex;
@@ -188,21 +188,21 @@
padding: 0.12rem 0.08rem;
}
.statistics-top .statistics-credit .credit-title {
color: #949cb0;
color: #8B949E;
font-size: 0.12rem;
display: flex;
align-items: center;
column-gap: 0.08rem;
}
.statistics-top .statistics-credit .credit-title .credit-tag {
color: #444B59;
color: #8B949E;
font-size: 0.12rem;
box-sizing: border-box;
padding: 0.02rem 0.04rem;
/* 线条/描边 */
border: 1px solid #dcdfe6;
border: 1px solid rgba(255,255,255,0.08);
border-radius: 2px;
background: #ffffff;
background: #161b22;
}
.statistics-top .statistics-credit .credit-money {
margin-top: 0.1rem;
@@ -211,7 +211,7 @@
column-gap: 0.1rem;
}
.statistics-top .statistics-credit .credit-money .credit-num {
color: #292e36;
color: #E6E8EB;
font-size: 0.18rem;
font-weight: bold;
flex-shrink: 0;
@@ -232,7 +232,7 @@
}
.voucher-box {
padding: 0 0.16rem;
color: #949CB0;
color: #8B949E;
font-size: 0.12rem;
margin-top: 0.06rem;
}
@@ -258,7 +258,7 @@
align-items: center;
flex-wrap: wrap;
justify-content: space-between;
color: #949CB0;
color: #8B949E;
font-size: 0.12rem;
}
.money-total {
@@ -293,7 +293,7 @@
border-radius: 0.03rem;
}
.money-num {
color: #1E2736;
color: #E6E8EB;
font-weight: bold;
font-size: 0.16rem;
}
@@ -347,7 +347,7 @@
padding: 0 0.36rem 0rem 0.8rem;
}
.goods-box {
background-color: #fff;
background-color: #161b22;
}
.goods-table {
border-spacing: 0;
@@ -357,18 +357,18 @@
cursor: pointer;
}
.product-item:hover {
background-color: #F5F7FA;
background-color: #0d1117;
transition: background-color 0.25s ease;
}
.goods-table thead tr td {
font-size: 0.14rem;
color: #8692B0;
color: #8B949E;
width: 25%;
}
.goods-table tbody tr td {
padding: 0.2rem 0;
font-size: 0.14rem;
color: #171725;
color: #E6E8EB;
}
.time-box {
width: 1.6rem;
@@ -380,7 +380,7 @@
box-sizing: border-box;
padding: 0.4rem;
width: 5.9rem;
background-color: #fff;
background-color: #161b22;
}
.recommend-box {
width: 3.65rem;
@@ -390,13 +390,13 @@
}
.recommend-box h2 {
text-align: center;
color: #1E2736;
color: #E6E8EB;
font-size: 0.24rem;
}
.recommend-box p {
margin-top: 0.26rem;
text-align: center;
color: #8692B0;
color: #8B949E;
font-size: 0.14rem;
}
.recommend-box img {
@@ -405,7 +405,7 @@
}
.recommend-people {
margin-top: 0.3rem;
border-top: 1px solid #E6E7EB;
border-top: 1px solid rgba(255,255,255,0.06);
padding-top: 0.3rem;
text-align: left;
}
@@ -427,7 +427,7 @@
margin-left: 0.16rem;
font-weight: bold;
font-size: 0.26rem;
color: #040E34;
color: #E6E8EB;
}
.recommend-people > div {
display: flex;
@@ -448,17 +448,17 @@
cursor: pointer;
display: block;
padding: 0 0.03rem;
background: #EEF4FF;
background: rgba(22,93,255,0.08);
height: 0.24rem;
line-height: 0.24rem;
text-align: center;
border-radius: 0.03rem;
color: #8692B0;
color: #8B949E;
}
.WorkOrder-content {
padding: 0.3rem 0.3rem 0 0.3rem;
border-radius: 0.03rem;
border: 1px solid #E6E7EB;
border: 1px solid rgba(255,255,255,0.06);
}
.WorkOrder-item {
display: flex;
@@ -466,7 +466,7 @@
}
.WorkOrder-item:hover {
cursor: pointer;
background-color: #f5f7fa;
background-color: #0d1117;
transition: background-color 0.25s ease;
}
.replay-div {
@@ -494,7 +494,7 @@
}
.replay-title {
font-size: 0.14rem;
color: #1E2736;
color: #E6E8EB;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
@@ -502,7 +502,7 @@
.replay-name {
font-size: 0.13rem;
font-weight: 500;
color: #8692B0;
color: #8B949E;
}
.notice-box {
margin-top: 0.3rem;
@@ -515,7 +515,7 @@
padding-left: 0.16rem;
}
.notice-item:hover {
background-color: #f5f7fa;
background-color: #0d1117;
transition: background-color 0.25s ease;
}
.progress-box .el-progress-circle {
@@ -535,12 +535,12 @@
}
.notice-time {
font-size: 0.2rem;
color: #1E2736;
color: #E6E8EB;
}
.notice-title {
font-weight: 400;
font-size: 0.14rem;
color: #1E2736;
color: #E6E8EB;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
@@ -548,15 +548,15 @@
.notice-type {
font-size: 0.13rem;
font-weight: 500;
color: #8692B0;
color: #8B949E;
}
.notice-item-right {
color: #8692B0;
color: #8B949E;
width: 0.24rem;
height: 0.24rem;
text-align: center;
line-height: 0.24rem;
background: #EEF4FF;
background: rgba(22,93,255,0.08);
border-radius: 0.03rem;
}
.no-product {
@@ -567,12 +567,12 @@
}
.no-product h2 {
font-weight: 400;
color: #171725;
color: #E6E8EB;
font-size: 0.28rem;
}
.no-product p {
margin: 0.1rem 0 0.2rem 0;
color: #8692B0;
color: #8B949E;
font-size: 0.14rem;
}
.no-product .el-button {
@@ -600,9 +600,9 @@
.recommend-text {
margin: 0 auto;
margin-top: 0.24rem;
color: #8692B0;
color: #8B949E;
font-size: 0.14rem;
background: #EEF4FF;
background: rgba(22,93,255,0.08);
height: 0.32rem;
line-height: 0.32rem;
border-radius: 0.03rem;
@@ -664,7 +664,7 @@
.recommend-box-open .recommend-top .left .row1 .title-text {
font-size: 18px;
font-weight: bold;
color: #171725;
color: #E6E8EB;
margin-right: 0.2rem;
margin-bottom: 0;
}
@@ -687,14 +687,14 @@
.recommend-box-open .recommend-top .left .row2 {
font-size: 16px;
font-weight: bold;
color: #171725;
color: #E6E8EB;
margin-top: 0.3rem;
margin-bottom: 0.13rem;
}
.recommend-box-open .recommend-top .left .row3,
.recommend-box-open .recommend-top .left .row4 {
font-size: 14px;
color: #8692B0;
color: #8B949E;
}
.recommend-box-open .recommend-top .right {
width: 1.5rem;
@@ -703,7 +703,7 @@
.recommend-box-open .url {
width: 5.2rem;
height: 0.46rem;
border: 1px solid #E6E7EB;
border: 1px solid rgba(255,255,255,0.06);
border-radius: 3px;
display: flex;
flex-direction: row;
@@ -714,7 +714,7 @@
.recommend-box-open .url .url-text {
width: 100%;
font-size: 15px;
color: #8692B0;
color: #8B949E;
margin-left: 0.16rem;
overflow: hidden;
white-space: nowrap;
@@ -723,8 +723,8 @@
.recommend-box-open .url .copy-btn {
width: 112px;
height: 100%;
background: #E1F0FF;
border-left: 1px solid #E6E7EB;
background: rgba(22,93,255,0.1);
border-left: 1px solid rgba(255,255,255,0.06);
border-radius: 0px 3px 3px 0px;
font-size: 16px;
color: #0058FF;
@@ -745,8 +745,8 @@
.recommend-box-open .top-statistic .top-item {
width: 2.4rem;
min-height: 1.76rem;
background: #FFFFFF;
box-shadow: 0px 1px 4px rgba(21, 34, 50, 0.08);
background: #161b22;
box-shadow: 0 1px 4px rgba(0,0,0,0.3);
border-radius: 3px;
display: flex;
flex-direction: column;
@@ -760,7 +760,7 @@
.recommend-box-open .top-statistic .top-item .item-top .top-money {
font-size: 0.32rem;
font-weight: bold;
color: #1E2736;
color: #E6E8EB;
display: flex;
flex-direction: row;
align-items: center;
@@ -780,7 +780,7 @@
}
.recommend-box-open .top-statistic .top-item .item-top .top-text {
font-size: 12px;
color: #8692B0;
color: #8B949E;
}
.recommend-box-open .top-statistic .top-item .top-img {
width: 100%;
@@ -804,7 +804,7 @@
height: 0.46rem;
background: #E7E7E7;
border-radius: 3px;
color: #1E2736;
color: #E6E8EB;
}
.wx-code {
width: 60px;