This commit is contained in:
zlwu committed 2026-07-17 21:59:47 +08:00
1 parent 8be55c08e9
commit a903fcf6d4
75 files changed
+9547 -124

No files matched your search

+2
View File
@@ -3,6 +3,8 @@
// ============================================
@import './variables.scss';
@import './mp-shell.scss';
@import './mp-biz.scss';
// ============================================
// Reset
+636
View File
@@ -0,0 +1,636 @@
// 业务列表 / 详情 Pattern(对齐 mobile-ui/shanxia-mp-base.css)
.mp-page--sub {
padding-bottom: calc(32rpx + env(safe-area-inset-bottom, 0px));
}
.mp-header__row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24rpx;
}
.mp-subpage-back {
color: #fff;
font-size: 26rpx;
opacity: 0.95;
min-height: 44rpx;
line-height: 44rpx;
}
.mp-header__action {
min-height: 64rpx;
padding: 0 24rpx;
border-radius: 999rpx;
border: 1rpx solid rgba(255, 255, 255, 0.38);
display: inline-flex;
align-items: center;
font-size: 24rpx;
color: #fff;
background: transparent;
}
.mp-header__search {
margin-top: 20rpx;
min-height: 72rpx;
background: #fff;
border-radius: 999rpx;
display: flex;
align-items: center;
padding: 0 28rpx;
gap: 16rpx;
}
.mp-header__search-dot {
width: 28rpx;
height: 28rpx;
border-radius: 50%;
border: 4rpx solid #c5d5cd;
flex-shrink: 0;
}
.mp-header__search-input {
flex: 1;
font-size: 26rpx;
color: var(--mp-text);
height: 72rpx;
}
.mp-tabs {
display: flex;
gap: 16rpx;
white-space: nowrap;
}
.mp-tab {
flex-shrink: 0;
min-height: 64rpx;
padding: 0 28rpx;
border-radius: 999rpx;
border: 1rpx solid var(--mp-border);
background: var(--mp-surface);
color: var(--mp-muted);
font-size: 24rpx;
display: inline-flex;
align-items: center;
}
.mp-tab--active {
background: var(--mp-brand-green-soft);
border-color: #b7e6d0;
color: var(--mp-brand-green-dark);
font-weight: 600;
}
.mp-list {
display: flex;
flex-direction: column;
gap: 20rpx;
}
.mp-card {
background: var(--mp-surface);
border: 1rpx solid var(--mp-border);
border-radius: var(--mp-radius-lg);
padding: 28rpx;
box-shadow: 0 8rpx 24rpx rgba(10, 159, 109, 0.06);
}
.mp-card__head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16rpx;
margin-bottom: 16rpx;
}
.mp-card__title {
font-size: 28rpx;
font-weight: 600;
color: var(--mp-text);
line-height: 1.35;
}
.mp-card__sub {
font-size: 24rpx;
color: var(--mp-muted);
margin-top: 4rpx;
}
.mp-card__row {
display: flex;
justify-content: space-between;
gap: 24rpx;
font-size: 24rpx;
color: var(--mp-muted);
margin-bottom: 12rpx;
}
.mp-card__row-val {
color: var(--mp-text);
text-align: right;
flex: 1;
min-width: 0;
}
.mp-card__foot {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 16rpx;
margin-top: 16rpx;
padding-top: 16rpx;
border-top: 1rpx solid var(--mp-border-light);
}
.mp-tag {
flex-shrink: 0;
min-height: 44rpx;
padding: 0 20rpx;
border-radius: 999rpx;
font-size: 22rpx;
font-weight: 600;
display: inline-flex;
align-items: center;
}
.mp-tag--success {
background: #e9f9f2;
color: #189b65;
}
.mp-tag--warning {
background: #fff4dd;
color: #cf8a19;
}
.mp-tag--danger {
background: #fef2f2;
color: #d14343;
}
.mp-tag--info {
background: #eff6ff;
color: #3b82f6;
}
.mp-tag--muted {
background: #f1f5f3;
color: var(--mp-muted);
}
.mp-btn {
min-height: 64rpx;
padding: 0 28rpx;
border-radius: 999rpx;
font-size: 24rpx;
font-weight: 600;
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 1;
}
.mp-btn--primary {
background: var(--mp-brand-green);
color: #fff;
border: none;
}
.mp-btn--ghost {
background: #fff;
color: var(--mp-brand-green-dark);
border: 1rpx solid #b7e6d0;
}
.mp-btn--danger {
background: #fef2f2;
color: #d14343;
border: 1rpx solid #fecaca;
}
.mp-btn--sm {
min-height: 56rpx;
padding: 0 22rpx;
font-size: 22rpx;
}
.mp-list-end,
.mp-list-loading {
text-align: center;
font-size: 22rpx;
color: var(--mp-muted);
padding: 24rpx 0 8rpx;
}
.mp-empty {
padding: 80rpx 32rpx;
text-align: center;
}
.mp-empty__icon {
width: 140rpx;
height: 140rpx;
margin: 0 auto 24rpx;
border-radius: 50%;
background: linear-gradient(145deg, #edf5f1, #dcebe4);
}
.mp-empty__text {
font-size: 28rpx;
color: var(--mp-muted);
}
.mp-detail-hero {
margin: 24rpx 32rpx 0;
background: var(--mp-surface);
border: 1rpx solid var(--mp-border);
border-radius: var(--mp-radius-lg);
padding: 28rpx;
box-shadow: 0 8rpx 24rpx rgba(10, 159, 109, 0.06);
}
.mp-detail-hero__top {
display: flex;
justify-content: space-between;
gap: 16rpx;
align-items: flex-start;
}
.mp-detail-hero__title {
font-size: 32rpx;
font-weight: 700;
color: var(--mp-text);
}
.mp-detail-hero__sub {
margin-top: 8rpx;
font-size: 24rpx;
color: var(--mp-muted);
}
.mp-detail-hero__meta {
display: flex;
flex-wrap: wrap;
gap: 12rpx;
margin-top: 20rpx;
}
.mp-detail-hero__chip {
font-size: 22rpx;
color: var(--mp-brand-green-dark);
background: var(--mp-brand-green-soft);
padding: 6rpx 16rpx;
border-radius: 999rpx;
}
.mp-block {
margin: 24rpx 32rpx 0;
}
.mp-block__title {
font-size: 28rpx;
font-weight: 700;
color: var(--mp-text);
margin-bottom: 16rpx;
}
.mp-block__panel {
background: var(--mp-surface);
border: 1rpx solid var(--mp-border);
border-radius: var(--mp-radius-lg);
overflow: hidden;
}
.mp-kv {
display: flex;
justify-content: space-between;
gap: 24rpx;
padding: 24rpx 28rpx;
border-bottom: 1rpx solid var(--mp-border-light);
font-size: 26rpx;
}
.mp-kv:last-child {
border-bottom: none;
}
.mp-kv__label {
color: var(--mp-muted);
flex-shrink: 0;
}
.mp-kv__value {
color: var(--mp-text);
text-align: right;
flex: 1;
min-width: 0;
word-break: break-all;
}
.mp-bottom-bar {
position: fixed;
left: 0;
right: 0;
bottom: 0;
display: flex;
gap: 16rpx;
padding: 16rpx 32rpx calc(16rpx + env(safe-area-inset-bottom, 0px));
background: #fff;
border-top: 1rpx solid var(--mp-border);
z-index: 50;
}
.mp-bottom-bar .mp-btn {
flex: 1;
}
.mp-page--with-bottom {
padding-bottom: calc(120rpx + env(safe-area-inset-bottom, 0px));
}
.mp-form-panel {
margin: 24rpx 32rpx;
background: var(--mp-surface);
border: 1rpx solid var(--mp-border);
border-radius: var(--mp-radius-lg);
overflow: hidden;
}
.mp-form-row {
padding: 24rpx 28rpx;
border-bottom: 1rpx solid var(--mp-border-light);
}
.mp-form-row:last-child {
border-bottom: none;
}
.mp-form-label {
display: block;
font-size: 24rpx;
color: var(--mp-muted);
margin-bottom: 12rpx;
}
.mp-form-label--req::after {
content: ' *';
color: #d14343;
}
.mp-form-input,
.mp-form-textarea,
.mp-form-picker {
width: 100%;
font-size: 28rpx;
color: var(--mp-text);
min-height: 48rpx;
}
.mp-form-picker {
padding: 8rpx 0;
color: var(--mp-text);
}
.mp-form-textarea {
min-height: 160rpx;
}
.mp-load-more {
text-align: center;
padding: 24rpx;
font-size: 24rpx;
color: var(--mp-muted);
}
.mp-form-picker--link {
color: var(--mp-brand-green-dark);
}
/* 底部选人 Sheet */
.mp-sheet-mask {
position: fixed;
inset: 0;
z-index: 1000;
background: rgba(15, 30, 25, 0.45);
display: flex;
align-items: flex-end;
}
.mp-sheet {
width: 100%;
max-height: 78vh;
background: #fff;
border-radius: 32rpx 32rpx 0 0;
padding-bottom: env(safe-area-inset-bottom, 0px);
display: flex;
flex-direction: column;
}
.mp-sheet__head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 28rpx 32rpx 16rpx;
border-bottom: 1rpx solid var(--mp-border-light);
}
.mp-sheet__title {
font-size: 30rpx;
font-weight: 600;
color: var(--mp-text);
}
.mp-sheet__cancel {
font-size: 28rpx;
color: var(--mp-muted);
min-width: 80rpx;
}
.mp-sheet__ok {
font-size: 28rpx;
color: var(--mp-brand-green-dark);
font-weight: 600;
min-width: 80rpx;
text-align: right;
}
.mp-sheet__search {
padding: 16rpx 32rpx;
}
.mp-sheet__search-input {
background: var(--mp-bg);
border-radius: 16rpx;
padding: 16rpx 24rpx;
font-size: 28rpx;
}
.mp-sheet__body {
flex: 1;
max-height: 52vh;
padding: 0 16rpx 16rpx;
}
.mp-sheet__hint {
text-align: center;
padding: 48rpx;
color: var(--mp-muted);
font-size: 26rpx;
}
.mp-sheet__row {
display: flex;
align-items: center;
gap: 20rpx;
padding: 24rpx 16rpx;
border-bottom: 1rpx solid var(--mp-border-light);
min-height: 88rpx;
}
.mp-sheet__check {
width: 40rpx;
height: 40rpx;
border-radius: 50%;
border: 2rpx solid var(--mp-border);
flex-shrink: 0;
box-sizing: border-box;
}
.mp-sheet__check--on {
border-color: var(--mp-brand-green);
background: var(--mp-brand-green);
box-shadow: inset 0 0 0 6rpx #fff;
}
.mp-sheet__meta {
flex: 1;
min-width: 0;
}
.mp-sheet__name {
display: block;
font-size: 28rpx;
color: var(--mp-text);
font-weight: 500;
}
.mp-sheet__sub {
display: block;
margin-top: 4rpx;
font-size: 22rpx;
color: var(--mp-muted);
}
.mp-sheet__foot {
padding: 16rpx 32rpx 24rpx;
font-size: 24rpx;
color: var(--mp-muted);
border-top: 1rpx solid var(--mp-border-light);
}
/* 报销模块 Header:大麦黄主调(对齐 shanxia-mp-bx-demo) */
.mp-header--bx {
background: linear-gradient(145deg, #a67c28 0%, #d6a343 72%, #0a9f6d 165%);
box-shadow: 0 16rpx 40rpx rgba(166, 124, 40, 0.14);
}
.mp-card__amount {
font-size: 30rpx;
font-weight: 700;
color: var(--mp-text);
}
.mp-photo-row {
display: flex;
flex-wrap: wrap;
gap: 16rpx;
}
.mp-photo-item {
width: 160rpx;
height: 160rpx;
border-radius: 16rpx;
overflow: hidden;
position: relative;
background: var(--mp-border-light);
}
.mp-photo-item image {
width: 100%;
height: 100%;
}
.mp-photo-add {
width: 160rpx;
height: 160rpx;
border-radius: 16rpx;
border: 2rpx dashed #b7e6d0;
display: flex;
align-items: center;
justify-content: center;
color: var(--mp-brand-green-dark);
font-size: 24rpx;
background: #f7fcf9;
}
.mp-photo-del {
position: absolute;
top: 4rpx;
right: 4rpx;
width: 40rpx;
height: 40rpx;
border-radius: 50%;
background: rgba(0, 0, 0, 0.5);
color: #fff;
font-size: 22rpx;
display: flex;
align-items: center;
justify-content: center;
}
/* 地磅模块 Header(对齐 shanxia-mp-db-demo) */
.mp-header--db {
background: linear-gradient(145deg, #1d6b63 0%, #2b8a7e 72%, #0a9f6d 165%);
box-shadow: 0 16rpx 40rpx rgba(29, 107, 99, 0.14);
}
/* 运输模块:默认品牌绿(对齐 shanxia-mp-pl-demo) */
.mp-header--pl {
background: var(--mp-header-gradient);
box-shadow: 0 16rpx 40rpx rgba(10, 159, 109, 0.12);
}
.mp-stats {
margin: -24rpx 32rpx 24rpx;
background: var(--mp-surface);
border: 1rpx solid var(--mp-border);
border-radius: var(--mp-radius-lg);
display: grid;
grid-template-columns: repeat(3, 1fr);
padding: 28rpx 16rpx;
box-shadow: 0 8rpx 24rpx rgba(10, 159, 109, 0.06);
position: relative;
z-index: 2;
}
.mp-stats--4 {
grid-template-columns: repeat(4, 1fr);
}
.mp-stat {
text-align: center;
padding: 0 8rpx;
}
.mp-stat__num {
display: block;
font-size: 36rpx;
font-weight: 700;
color: var(--mp-brand-green-dark);
line-height: 1.2;
}
.mp-stat__label {
display: block;
font-size: 22rpx;
color: var(--mp-muted);
margin-top: 8rpx;
}
+327
View File
@@ -0,0 +1,327 @@
// 山峡小程序壳层样式(对齐 mobile-ui/shanxia-mp-base.css 工作台 / Header / 占位)
page {
--mp-brand-green: #0a9f6d;
--mp-brand-green-dark: #087f57;
--mp-brand-green-soft: #e9f9f2;
--mp-barley: #d6a343;
--mp-bg: #f5f8f7;
--mp-surface: #ffffff;
--mp-text: #1f2a26;
--mp-muted: #6b7b74;
--mp-border: #dcebe4;
--mp-border-light: #edf5f1;
--mp-danger: #d14343;
--mp-radius-lg: 32rpx;
--mp-radius-xl: 44rpx;
--mp-header-gradient: linear-gradient(145deg, #087f57 0%, #0a9f6d 72%, #d6a343 165%);
background-color: var(--mp-bg);
color: var(--mp-text);
}
.mp-page {
min-height: 100vh;
background: var(--mp-bg);
box-sizing: border-box;
}
.mp-page--tab {
padding-bottom: calc(24rpx + env(safe-area-inset-bottom, 0px));
}
.mp-header {
background: var(--mp-header-gradient);
color: #fff;
padding: calc(28rpx + env(safe-area-inset-top, 0px)) 32rpx 32rpx;
border-bottom-left-radius: var(--mp-radius-xl);
border-bottom-right-radius: var(--mp-radius-xl);
box-shadow: 0 16rpx 40rpx rgba(10, 159, 109, 0.12);
}
.mp-header__title {
display: block;
font-size: 36rpx;
font-weight: 700;
line-height: 1.3;
}
.mp-header__meta {
margin-top: 8rpx;
font-size: 24rpx;
opacity: 0.9;
line-height: 1.4;
}
.mp-section {
padding: 24rpx 32rpx;
}
.mp-module-block {
background: var(--mp-surface);
border: 1rpx solid var(--mp-border);
border-radius: var(--mp-radius-lg);
overflow: hidden;
box-shadow: 0 8rpx 24rpx rgba(10, 159, 109, 0.06);
}
.mp-module-block + .mp-module-block {
margin-top: 24rpx;
}
.mp-module-block__head {
display: flex;
align-items: center;
gap: 20rpx;
padding: 24rpx 28rpx;
border-bottom: 1rpx solid var(--mp-border-light);
background: #fafcfb;
}
.mp-module-block__icon {
width: 64rpx;
height: 64rpx;
border-radius: 16rpx;
color: #fff;
font-size: 20rpx;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.mp-module-block--crm .mp-module-block__icon {
background: linear-gradient(145deg, #0a9f6d, #11b37a);
}
.mp-module-block--bx .mp-module-block__icon {
background: linear-gradient(145deg, #c9922f, #d6a343);
}
.mp-module-block--db .mp-module-block__icon {
background: linear-gradient(145deg, #247a70, #2b8a7e);
}
.mp-module-block--pl .mp-module-block__icon {
background: linear-gradient(145deg, #066b49, #087f57);
}
.mp-module-block__title-wrap {
flex: 1;
min-width: 0;
}
.mp-module-block__title {
display: block;
font-size: 30rpx;
font-weight: 700;
color: var(--mp-text);
}
.mp-module-block__desc {
display: block;
margin-top: 4rpx;
font-size: 22rpx;
color: var(--mp-muted);
}
.mp-menu-grid {
display: flex;
flex-wrap: wrap;
background: var(--mp-border-light);
}
.mp-menu-card {
width: 33.333%;
box-sizing: border-box;
min-height: 156rpx;
background: var(--mp-surface);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12rpx;
padding: 20rpx 12rpx;
text-align: center;
border-right: 1rpx solid var(--mp-border-light);
border-bottom: 1rpx solid var(--mp-border-light);
}
.mp-menu-card:nth-child(3n) {
border-right: none;
}
.mp-menu-card:active {
background: #f4fbf8;
}
.mp-menu-card__icon {
width: 60rpx;
height: 60rpx;
border-radius: 16rpx;
background: linear-gradient(145deg, #e8f5ef, #d9efe5);
}
.mp-module-block--bx .mp-menu-card__icon {
background: linear-gradient(145deg, #faf0dc, #f3e4c4);
}
.mp-module-block--db .mp-menu-card__icon {
background: linear-gradient(145deg, #dff0ee, #cce5e2);
}
.mp-module-block--pl .mp-menu-card__icon {
background: linear-gradient(145deg, #dff1e8, #c8e8d8);
}
.mp-menu-card__name {
font-size: 22rpx;
color: #3f4f48;
line-height: 1.35;
}
.mp-menu-card--disabled {
opacity: 0.45;
pointer-events: none;
}
.mp-placeholder {
min-height: 60vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 80rpx 48rpx;
text-align: center;
}
.mp-placeholder__icon {
width: 176rpx;
height: 176rpx;
border-radius: 50%;
background: linear-gradient(145deg, #edf5f1, #dcebe4);
margin-bottom: 32rpx;
}
.mp-placeholder__title {
font-size: 32rpx;
font-weight: 600;
color: var(--mp-text);
margin-bottom: 12rpx;
}
.mp-placeholder__desc {
font-size: 26rpx;
color: var(--mp-muted);
line-height: 1.6;
}
.mp-profile-hero {
background: var(--mp-header-gradient);
color: #fff;
padding: calc(40rpx + env(safe-area-inset-top, 0px)) 32rpx 48rpx;
border-bottom-left-radius: var(--mp-radius-xl);
border-bottom-right-radius: var(--mp-radius-xl);
}
.mp-profile-hero__user {
display: flex;
align-items: center;
gap: 24rpx;
}
.mp-profile-hero__avatar {
width: 112rpx;
height: 112rpx;
border-radius: 50%;
background: rgba(255, 255, 255, 0.22);
border: 4rpx solid rgba(255, 255, 255, 0.35);
flex-shrink: 0;
overflow: hidden;
}
.mp-profile-hero__avatar image {
width: 100%;
height: 100%;
}
.mp-profile-hero__name {
font-size: 36rpx;
font-weight: 700;
}
.mp-profile-hero__dept {
margin-top: 8rpx;
font-size: 24rpx;
opacity: 0.9;
}
.mp-profile-panel {
margin: 24rpx 32rpx;
background: var(--mp-surface);
border: 1rpx solid var(--mp-border);
border-radius: var(--mp-radius-lg);
overflow: hidden;
}
.mp-form-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24rpx;
padding: 28rpx 32rpx;
border-bottom: 1rpx solid var(--mp-border-light);
}
.mp-form-item:last-child {
border-bottom: none;
}
.mp-form-item__label {
font-size: 28rpx;
color: var(--mp-muted);
flex-shrink: 0;
}
.mp-form-item__value {
font-size: 28rpx;
color: var(--mp-text);
text-align: right;
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.mp-profile-actions {
padding: 8rpx 32rpx 48rpx;
display: flex;
flex-direction: column;
gap: 20rpx;
}
.mp-btn {
height: 88rpx;
line-height: 88rpx;
border-radius: 16rpx;
font-size: 30rpx;
text-align: center;
}
.mp-btn--primary {
background: var(--mp-brand-green);
color: #fff;
}
.mp-btn--ghost {
background: #fff;
color: var(--mp-danger);
border: 1rpx solid #fecaca;
}
.mp-btn--block {
width: 100%;
}
.mp-hint {
margin: 0 32rpx 24rpx;
font-size: 22rpx;
color: var(--mp-muted);
text-align: center;
}