Files
SupplierSystem/miniprogram/pages/home/home.wxss
T
Ubuntu deb3e72750
CI / server typecheck + tests (push) Canceled after 0s
CI / web typecheck + tests + miniprogram syntax (push) Canceled after 0s
CI / eslint (观察项,C7 骨架) (push) Canceled after 0s
CI / npm audit (critical 硬拦) (push) Canceled after 0s
chore: 以 AI 生鲜配送系统 当前版本作为 SupplierSystem 起点
来源仓库:jxc/ai-fresh-delivery
来源提交:f0b1a180e2deb7e4673b9d1c8542619f7bc0f73d
快照树:  09f679334ff38f0ff25e907961c94a8223bcaedd(与来源 HEAD 工作树逐字节一致,3801 个文件)

按约定本仓库不带任何历史提交:来源仓库的历史中含真实凭据
(生产 SSH 私钥 deploy/id_rsa_tencent、server/.env、.env.tencent/.env.production/.env.gitea、
deploy/小程序AppSecret.txt,其中 MP_APPSECRET / S3 AccessKey 经哈希比对与线上同值),
整包推送会把这些凭据永久带入本仓库,故只取「当前版本」的单提交快照。
供应商系统后续开发自本提交开始。
2026-10-08 17:35:43 +08:00

584 lines
10 KiB
Plaintext

.home-page {
position: relative;
min-height: 100vh;
background: #f3faf6;
overflow: visible;
}
.home-atmosphere {
position: absolute;
left: 0;
right: 0;
top: 0;
height: 340rpx;
pointer-events: none;
z-index: 0;
background:
radial-gradient(ellipse 80% 70% at 10% 0%, rgba(16, 185, 129, 0.18) 0%, transparent 60%),
linear-gradient(180deg, #d1fae5 0%, rgba(243, 250, 246, 0) 100%);
}
.section,
.login-cta {
position: relative;
z-index: 1;
}
.home-purchase-embed {
margin-top: 8rpx;
padding-bottom: calc(120rpx + env(safe-area-inset-bottom));
}
.home-progress-sticky {
position: fixed;
left: 0;
right: 0;
top: 0;
z-index: 45;
background: #f3faf6;
}
.home-progress-dock {
--home-progress-card-height: 120rpx;
padding: 8rpx 24rpx;
background: #f3faf6;
}
.home-progress-dock > view {
box-sizing: border-box;
height: var(--home-progress-card-height);
min-height: var(--home-progress-card-height);
max-height: var(--home-progress-card-height);
overflow: hidden;
}
.kpi-card {
margin: 0;
padding: 8rpx 16rpx;
display: flex;
justify-content: space-between;
align-items: center;
gap: 12rpx;
border-radius: 20rpx;
background: linear-gradient(135deg, #047857 0%, #059669 55%, #10b981 100%);
color: #fff;
box-shadow: 0 8rpx 20rpx rgba(5, 150, 105, 0.22);
}
.purchase-progress-card {
margin: 0;
padding: 8rpx 16rpx;
display: flex;
align-items: center;
justify-content: space-between;
border-radius: 20rpx;
background: linear-gradient(135deg, #047857 0%, #059669 55%, #10b981 100%);
color: #fff;
box-shadow: 0 8rpx 20rpx rgba(5, 150, 105, 0.22);
}
.purchase-progress-card .kpi-left,
.purchase-progress-card .kpi-right {
display: flex;
flex-direction: column;
gap: 2rpx;
}
.purchase-progress-card .kpi-right {
align-items: flex-end;
text-align: right;
}
.purchase-progress-card .kpi-date,
.purchase-progress-card .kpi-progress {
font-size: var(--xd-nav-title-size);
font-weight: var(--xd-nav-title-weight);
line-height: 1.05;
}
.purchase-progress-card .kpi-progress {
font-variant-numeric: tabular-nums;
}
.prep-progress-card {
flex-direction: column;
align-items: stretch;
justify-content: center;
gap: 0;
}
.prep-progress-main {
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
}
.prep-category-row {
display: flex;
flex-wrap: nowrap;
gap: 6rpx;
margin-top: 4rpx;
padding-top: 4rpx;
border-top: 1px solid rgba(255, 255, 255, 0.22);
overflow: hidden;
}
.prep-category-pill {
font-size: 18rpx;
line-height: 1.1;
font-weight: 400;
color: #fff;
padding: 2rpx 10rpx;
border-radius: 999rpx;
background: rgba(255, 255, 255, 0.16);
border: 1px solid rgba(255, 255, 255, 0.32);
max-width: 40%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex-shrink: 0;
}
.prep-category-pill.is-primary {
background: #fff;
color: #047857;
border-color: #fff;
}
.delivery-progress-card {
margin: 0;
padding: 8rpx 12rpx;
display: flex;
align-items: center;
border-radius: 20rpx;
background: linear-gradient(135deg, #047857 0%, #059669 55%, #10b981 100%);
color: #fff;
box-shadow: 0 8rpx 20rpx rgba(5, 150, 105, 0.22);
}
.delivery-progress-card .kpi-cell {
flex: 1;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
gap: 0;
min-height: 0;
}
.order-progress-card .kpi-cell {
margin: 0 2rpx;
padding: 2rpx 2rpx;
border-radius: 10rpx;
border: 2rpx solid transparent;
box-sizing: border-box;
}
.order-progress-card .kpi-cell.is-selected {
background: rgba(255, 255, 255, 0.22);
border-color: rgba(255, 255, 255, 0.85);
}
.order-progress-card .kpi-cell--text {
justify-content: center;
min-height: 0;
}
.order-progress-card .kpi-cell--text .kpi-label {
font-size: var(--xd-nav-title-size);
font-weight: var(--xd-nav-title-weight);
opacity: 1;
line-height: 1.05;
}
.delivery-progress-card .kpi-num {
font-size: var(--xd-nav-title-size);
font-weight: var(--xd-nav-title-weight);
font-variant-numeric: tabular-nums;
line-height: 1.05;
}
.delivery-progress-card .kpi-label {
font-size: var(--xd-nav-title-size);
font-weight: var(--xd-nav-title-weight);
line-height: 1.05;
opacity: 0.95;
}
.delivery-progress-card .kpi-divider {
width: 1px;
height: 28rpx;
background: rgba(255, 255, 255, 0.25);
}
.module-title-card {
justify-content: center;
min-height: 0;
box-sizing: border-box;
}
.module-title-text {
font-size: var(--xd-nav-title-size);
font-weight: var(--xd-nav-title-weight);
line-height: 1.05;
letter-spacing: 0;
}
.kpi-label {
font-size: 18rpx;
opacity: 0.9;
}
.kpi-value-row {
display: flex;
align-items: baseline;
gap: 6rpx;
margin-top: 0;
}
.kpi-value {
font-size: var(--xd-nav-title-size);
font-weight: var(--xd-nav-title-weight);
line-height: 1;
}
.kpi-unit {
font-size: 18rpx;
opacity: 0.9;
}
.kpi-side {
text-align: right;
}
.kpi-side-item {
margin-bottom: 4rpx;
}
.kpi-side-item:last-child {
margin-bottom: 0;
}
.kpi-side-label {
font-size: 18rpx;
opacity: 0.85;
margin-right: 10rpx;
}
.kpi-side-value {
font-size: var(--xd-nav-title-size);
font-weight: var(--xd-nav-title-weight);
}
.home-top-dock-spacer {
width: 100%;
flex-shrink: 0;
}
.home-module-dock {
padding: 8rpx 0 12rpx;
background: #f3faf6;
}
.section-head {
display: flex;
align-items: center;
gap: 12rpx;
padding: 0 32rpx;
margin-bottom: 18rpx;
}
.section-mark {
width: 8rpx;
height: 28rpx;
border-radius: 8rpx;
background: linear-gradient(180deg, #10b981 0%, #047857 100%);
}
.section-title {
font-size: 30rpx;
font-weight: 700;
color: #0a0a0b;
}
.module-grid {
--xd-module-grid-gap: 8rpx;
--xd-module-grid-pad: 4rpx;
display: flex;
flex-wrap: wrap;
padding: 0 8rpx;
row-gap: var(--xd-module-grid-gap);
}
.grid-card {
position: relative;
width: 20%;
box-sizing: border-box;
padding: 0 var(--xd-module-grid-pad);
display: flex;
flex-direction: column;
align-items: stretch;
justify-content: center;
}
.grid-card .grid-title {
box-sizing: border-box;
width: 100%;
margin: 0;
min-height: 56rpx;
padding: 8rpx 2rpx;
border-radius: 8rpx;
background: #f4f4f5;
border: 2rpx solid #d4d4d8;
box-shadow: 0 2rpx 0 #e4e4e7;
font-size: var(--xd-module-grid-size);
font-weight: var(--xd-module-grid-weight);
font-style: normal;
color: #3f3f46;
line-height: 1.2;
text-align: center;
white-space: nowrap;
word-break: keep-all;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
.grid-card.is-active .grid-title {
background: #ecfdf5;
border-color: #059669;
box-shadow: 0 2rpx 0 #047857;
color: #047857;
}
.list-icon {
width: 72rpx;
height: 72rpx;
border-radius: 22rpx;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.menu-badge {
min-width: 28rpx;
height: 28rpx;
padding: 0 6rpx;
border-radius: 999rpx;
background: #ef4444;
color: #fff;
font-size: 18rpx;
display: flex;
align-items: center;
justify-content: center;
font-variant-numeric: tabular-nums;
}
.grid-badge {
position: absolute;
top: 0;
right: 0;
z-index: 1;
min-width: 22rpx;
height: 22rpx;
padding: 0 4rpx;
font-size: 16rpx;
}
.list-section {
margin-top: 36rpx;
}
.list-card {
margin: 0 24rpx;
background: #fff;
border: 1px solid #e7efea;
border-radius: 28rpx;
overflow: hidden;
box-shadow: 0 8rpx 24rpx rgba(15, 23, 42, 0.03);
}
.list-row {
display: flex;
align-items: center;
gap: 20rpx;
padding: 28rpx 24rpx;
border-bottom: 1px solid #f1f5f3;
}
.list-row:last-child {
border-bottom: none;
}
.list-main {
flex: 1;
min-width: 0;
}
.list-title-row {
display: flex;
align-items: center;
gap: 8rpx;
}
.list-title {
font-size: 28rpx;
font-weight: 600;
color: #0a0a0b;
}
.list-sub {
margin-top: 6rpx;
font-size: 22rpx;
color: #8b949e;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
overflow: hidden;
}
.tone-emerald {
background: #ecfdf5;
color: #059669;
}
.tone-teal {
background: #f0fdfa;
color: #0d9488;
}
.tone-sky {
background: #f0f9ff;
color: #0284c7;
}
.tone-lime {
background: #f7fee7;
color: #65a30d;
}
.tone-orange {
background: #fff7ed;
color: #ea580c;
}
.tone-amber {
background: #fffbeb;
color: #d97706;
}
.tone-violet {
background: #f5f3ff;
color: #7c3aed;
}
.login-cta {
margin: 80rpx 40rpx 0;
padding: 24rpx 28rpx 36rpx;
background: #fff;
border-radius: 28rpx;
border: 1px solid #e7efea;
}
/* 未登录工作台:去掉导航栏下大块留白,不影响已登录宫格 */
.home-page--guest .login-cta {
margin: 48rpx 32rpx 0;
padding: 36rpx 28rpx 32rpx;
}
.login-empty {
padding: 8rpx 0 4rpx !important;
}
.login-empty .van-empty__image {
height: 200rpx !important;
width: 200rpx !important;
}
.login-cta-btn {
margin-top: 8rpx !important;
}
.role-mask {
position: fixed;
inset: 0;
background: rgba(15, 23, 42, 0.45);
z-index: 200;
display: flex;
align-items: flex-end;
}
.role-sheet {
width: 100%;
background: #fff;
border-radius: 28rpx 28rpx 0 0;
padding: 16rpx 32rpx calc(32rpx + env(safe-area-inset-bottom));
}
.role-sheet-handle {
width: 64rpx;
height: 8rpx;
border-radius: 8rpx;
background: #e4e4e7;
margin: 0 auto 20rpx;
}
.role-sheet-title {
text-align: center;
font-weight: 700;
font-size: 30rpx;
margin-bottom: 12rpx;
color: #0a0a0b;
}
.role-option {
display: flex;
align-items: center;
justify-content: space-between;
padding: 30rpx 8rpx;
border-top: 1px solid #f1f5f3;
font-size: 30rpx;
color: #3f3f46;
}
.role-option.on {
color: #059669;
font-weight: 600;
}
.role-cancel {
text-align: center;
padding: 28rpx;
margin-top: 12rpx;
color: #52525b;
background: #f4f4f5;
border-radius: 20rpx;
font-weight: 500;
}
.anim-rise {
animation: rise-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.anim-rise--delay {
animation-delay: 0.08s;
}
.anim-rise--delay-2 {
animation-delay: 0.16s;
}
@keyframes rise-in {
from {
opacity: 0;
transform: translateY(20rpx);
}
to {
opacity: 1;
transform: translateY(0);
}
}