优化:统一小程序业务引用选择交互

This commit is contained in:
2026-10-12 22:24:24 +08:00
parent fa1fed006e
commit 3b98e4746a
31 changed files with 1378 additions and 504 deletions
@@ -3,75 +3,81 @@
font-size: 24rpx;
}
.customer-select {
position: relative;
.customer-field {
align-items: stretch;
padding: 18rpx 0;
}
.customer-dropdown {
position: absolute;
top: 214rpx;
right: 0;
left: 180rpx;
z-index: 30;
max-height: 360rpx;
overflow-y: auto;
border: 1rpx solid #e5ded4;
border-radius: 18rpx;
background: #fffdf8;
box-shadow: 0 18rpx 40rpx rgba(58, 48, 34, 0.14);
}
.customer-option {
.customer-field > .field-label {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16rpx;
min-height: 76rpx;
padding: 0 20rpx;
border-bottom: 1rpx solid #f0e9df;
}
.customer-option:last-child {
border-bottom: 0;
.reference-card,
.reference-value {
display: flex;
min-width: 0;
flex: 1;
align-items: center;
gap: 12rpx;
}
.customer-copy {
.reference-card {
min-height: 78rpx;
padding: 13rpx 16rpx;
border: 1rpx solid #e7e0d7;
border-radius: 18rpx;
background: #f8f4ee;
}
.reference-copy {
display: flex;
min-width: 0;
flex: 1;
flex-direction: column;
gap: 6rpx;
}
.customer-name {
min-width: 0;
.reference-title,
.reference-subtitle {
display: block;
overflow: hidden;
color: #2a2521;
font-size: 26rpx;
font-weight: 800;
text-overflow: ellipsis;
white-space: nowrap;
}
.customer-phone {
color: #8c8177;
font-size: 24rpx;
}
.customer-select-tag {
flex: 0 0 auto;
padding: 4rpx 12rpx;
border-radius: 999rpx;
background: #e5eee9;
color: #55786d;
font-size: 22rpx;
.reference-title {
color: #817a72;
font-size: 27rpx;
font-weight: 800;
}
.muted-option {
justify-content: center;
color: #9a9288;
font-size: 24rpx;
.reference-card.filled .reference-title { color: #29241f; }
.reference-subtitle {
margin-top: 6rpx;
color: #9a9289;
font-size: 21rpx;
}
.reference-badge {
flex: 0 0 auto;
padding: 5rpx 11rpx;
border-radius: 999rpx;
background: #e7f0ec;
color: #55786d;
font-size: 19rpx;
font-weight: 800;
}
.reference-value {
justify-content: space-between;
}
.reference-arrow {
flex: 0 0 auto;
color: #a99f95;
font-size: 38rpx;
line-height: 1;
}
.product-value {
@@ -221,6 +227,49 @@
box-shadow: 0 -18rpx 40rpx rgba(41, 31, 23, 0.16);
}
.manual-customer-sheet {
display: flex;
width: 100%;
height: 88vh;
max-height: 88vh;
flex-direction: column;
padding: 28rpx 28rpx calc(28rpx + env(safe-area-inset-bottom));
border-radius: 34rpx 34rpx 0 0;
background: #fffaf4;
box-shadow: 0 -18rpx 40rpx rgba(41, 31, 23, 0.16);
}
.manual-customer-form {
flex: 1;
padding-top: 12rpx;
}
.manual-customer-field {
margin-bottom: 20rpx;
padding: 20rpx 22rpx;
border: 1rpx solid #e7e0d7;
border-radius: 20rpx;
background: #fff;
}
.manual-customer-field text {
display: block;
margin-bottom: 10rpx;
color: #625c55;
font-size: 24rpx;
font-weight: 800;
}
.manual-customer-field input {
height: 64rpx;
color: #29241f;
font-size: 28rpx;
}
.manual-customer-submit {
flex: 0 0 auto;
}
.time-modal {
width: 100%;
max-height: 82vh;