Files
wxapp_escort/pages/escort/itemorder.wxss
T
lik 28793e39f5 feat(escort): 预约页陪诊项目改为卡片下拉选择
点击项目卡片展开下拉列表切换服务,保留原卡片展示;下拉项名称与价格同一行,价格字号与标题一致。
2026-11-05 22:02:01 +08:00

653 lines
12 KiB
Plaintext

/* pages/escort/itemorder.wxss */
page {
--shadow-bar: 0 -2rpx 8rpx rgba(63, 43, 25, 0.07);
background: var(--paper);
}
.page-bg {
min-height: 100vh;
background: var(--paper);
}
.container {
padding: 0 32rpx calc(40rpx + env(safe-area-inset-bottom));
}
.page-header {
padding-top: 32rpx;
}
.header-accent {
width: 64rpx;
height: 8rpx;
border-radius: 4rpx;
background: var(--brand-strong);
}
.header-title {
display: block;
margin-top: 22rpx;
color: var(--ink);
font-size: 48rpx;
font-weight: 700;
letter-spacing: 1rpx;
line-height: 1.3;
}
.header-subtitle {
display: block;
margin-top: 12rpx;
color: var(--muted);
font-size: var(--fs-28);
line-height: 1.6;
}
.booking-form {
margin-top: 32rpx;
padding: 0 28rpx;
border-radius: 28rpx;
background: var(--white);
box-shadow: var(--shadow-card);
}
/* 陪诊项目:展示沿用原项目卡片,点击卡片展开下拉列表 */
.service-picker-row {
padding: 24rpx 0;
border-bottom: 2rpx solid var(--line);
}
.service-picker {
display: block;
margin-top: 16rpx;
}
.service-picker.is-disabled {
opacity: 0.6;
}
.order-service-info {
display: flex;
align-items: center;
padding: 20rpx 24rpx;
border: 2rpx solid var(--brand-line);
border-radius: 20rpx;
background: var(--brand-soft);
}
.order-service-mark {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 80rpx;
height: 80rpx;
}
/* 项目名称与价格同一行,价格靠右,右侧留出更大间距 */
.order-service-text {
display: flex;
flex: 1;
min-width: 0;
align-items: center;
margin: 0 56rpx 0 12rpx;
}
.order-service-title {
flex: 1;
min-width: 0;
overflow: hidden;
color: var(--ink);
font-size: var(--fs-32);
font-weight: 700;
line-height: 1.4;
text-overflow: ellipsis;
white-space: nowrap;
}
.order-service-price {
flex-shrink: 0;
margin-left: 16rpx;
color: var(--brand-ink);
font-size: var(--fs-32);
font-weight: 700;
line-height: 1.4;
}
.service-picker-arrow {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 56rpx;
height: 56rpx;
border: 2rpx solid var(--brand-line);
border-radius: 50%;
background: var(--white);
transition: transform 0.2s ease;
}
.service-picker-arrow.is-open {
transform: rotate(180deg);
}
/* 展开面板:浅橙衬底 + 浅橙描边,与「就诊医院」下拉同款 */
.service-panel {
margin: 12rpx 0 24rpx;
padding: 0 20rpx 8rpx;
border: 2rpx solid var(--brand-line);
border-radius: 20rpx;
background: var(--brand-soft);
}
.service-options {
margin-top: 4rpx;
}
.service-option {
display: flex;
align-items: center;
padding: 16rpx 0;
border-bottom: 2rpx solid var(--sep);
}
.service-option:last-child {
border-bottom: none;
}
.service-option:active {
background: var(--white);
}
.service-option-mark {
display: flex;
flex-shrink: 0;
align-items: center;
justify-content: center;
width: 72rpx;
height: 72rpx;
}
/* 名称与价格同一行:名称左对齐并自适应截断,价格靠右 */
.service-option-name {
flex: 1;
min-width: 0;
margin-left: 12rpx;
overflow: hidden;
color: var(--ink);
font-size: var(--fs-30);
font-weight: 700;
line-height: 1.4;
text-overflow: ellipsis;
white-space: nowrap;
}
.service-option.active .service-option-name {
color: var(--brand-ink);
}
.service-option-sub {
flex-shrink: 0;
margin-left: 16rpx;
color: var(--brand-ink);
font-size: var(--fs-26);
font-weight: 700;
line-height: 1.4;
}
.service-option-selected {
flex-shrink: 0;
margin-left: 16rpx;
color: var(--brand-ink);
font-size: var(--fs-26);
}
.service-empty {
padding: 32rpx 0;
text-align: center;
}
.service-empty-text {
display: block;
color: var(--muted);
font-size: var(--fs-30);
}
.order-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 24rpx 0;
border-bottom: 2rpx solid var(--line);
}
.order-row:last-child {
border-bottom: none;
}
.order-row.column {
flex-direction: column;
align-items: stretch;
justify-content: flex-start;
}
.order-label {
flex-shrink: 0;
color: var(--muted);
font-size: var(--fs-30);
letter-spacing: 1rpx;
}
.order-input,
.order-value {
flex: 1;
min-width: 0;
margin-left: 24rpx;
color: var(--ink);
font-size: var(--fs-30);
font-weight: 700;
text-align: right;
}
.input-placeholder,
.order-value.placeholder,
.picker-value.placeholder {
color: var(--muted);
font-weight: 400;
}
.order-picker {
flex: 1;
min-width: 0;
margin-left: 24rpx;
}
.picker-value {
display: block;
color: var(--ink);
font-size: var(--fs-30);
font-weight: 700;
text-align: right;
}
.order-textarea {
box-sizing: border-box;
width: 100%;
height: 160rpx;
margin-top: 16rpx;
padding: 20rpx;
border: 2rpx solid var(--line);
border-radius: 12rpx;
background: var(--paper);
color: var(--ink);
font-size: var(--fs-30);
line-height: 1.5;
}
.textarea-count {
align-self: flex-end;
margin-top: 10rpx;
color: var(--muted);
font-size: var(--fs-26);
}
.address-tip {
align-self: flex-start;
margin-top: 10rpx;
color: var(--muted);
font-size: var(--fs-26);
line-height: 1.6;
}
.patient-scroll {
width: 100%;
margin-top: 16rpx;
white-space: nowrap;
}
.patient-chips {
display: inline-flex;
gap: 16rpx;
}
.patient-chip {
display: inline-flex;
flex-direction: column;
align-items: center;
justify-content: center;
box-sizing: border-box;
/* 140rpx:只显示姓名,胶囊按名字长度收紧,不再为手机号预留宽度 */
min-width: 140rpx;
padding: 16rpx 24rpx;
border: 2rpx solid var(--line);
border-radius: 16rpx;
background: var(--paper);
transition: opacity 0.15s ease;
}
.patient-chip:active,
.add-profile-tip:active {
opacity: 0.7;
}
.patient-chip.active {
border-color: var(--brand-strong);
background: var(--brand-soft);
}
.patient-chip-name {
color: var(--ink-2);
font-size: var(--fs-28);
font-weight: 700;
}
.patient-chip.active .patient-chip-name,
.patient-chip-add .patient-chip-name {
color: var(--brand-ink);
}
.patient-chip-add {
flex-direction: row;
align-items: center;
justify-content: center;
gap: 4rpx;
/* 虚线描边 + 白底:与「已选就诊人」的实心浅橙底区分开,
一眼看出这是动作入口而不是某个就诊人 */
background: var(--white);
border: 2rpx dashed var(--brand-line);
}
.add-profile-tip {
display: flex;
align-items: center;
box-sizing: border-box;
width: 100%;
margin-top: 16rpx;
padding: 22rpx 24rpx;
border: 2rpx solid var(--brand-line);
border-radius: 16rpx;
background: var(--brand-soft);
transition: opacity 0.15s ease;
}
.add-profile-tip-text {
flex: 1;
min-width: 0;
margin-right: 8rpx;
color: var(--brand-ink);
font-size: var(--fs-26);
font-weight: 700;
}
.bottom-placeholder {
height: 152rpx;
}
.bottom-bar {
position: fixed;
right: 0;
bottom: 0;
left: 0;
z-index: 100;
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 32rpx;
padding-bottom: calc(20rpx + constant(safe-area-inset-bottom));
padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
border-top: 2rpx solid var(--line);
background: var(--white);
box-shadow: var(--shadow-bar);
}
.bottom-price {
display: flex;
align-items: baseline;
}
.bottom-price-label {
margin-right: 8rpx;
color: var(--muted);
font-size: var(--fs-26);
}
.price-sym {
color: var(--brand-strong);
font-size: var(--fs-28);
font-weight: 700;
}
.bottom-price-value {
margin-left: 2rpx;
color: var(--brand-strong);
font-size: 44rpx;
font-weight: 700;
}
.submit-btn {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin: 0;
padding: 22rpx 48rpx;
border: none;
border-radius: 999rpx;
background: var(--brand-strong);
box-shadow: var(--shadow-cta);
color: var(--white);
font-size: var(--fs-30);
font-weight: 700;
letter-spacing: 2rpx;
line-height: 1.4;
transition: transform 0.15s ease;
}
.submit-btn::after,
.page-retry::after {
border: none;
}
.submit-btn:active {
transform: scale(0.98);
}
.page-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
box-sizing: border-box;
min-height: 70vh;
padding: 48rpx 32rpx;
}
.page-state-text {
color: var(--muted);
font-size: var(--fs-28);
line-height: 1.6;
}
.page-retry {
margin: 28rpx 0 0;
padding: 12rpx 36rpx;
border: 2rpx solid var(--brand-strong);
border-radius: 999rpx;
background: transparent;
color: var(--brand-strong);
font-size: var(--fs-28);
font-weight: 500;
line-height: 1.5;
}
/* 支付方式:两张可选卡片,选中态沿用品牌橙 */
.pay-channel-options {
display: flex;
flex-direction: column;
gap: 16rpx;
margin-top: 16rpx;
}
.pay-channel-option {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 24rpx;
border: 2rpx solid var(--line);
border-radius: 18rpx;
background: var(--paper);
}
.pay-channel-option.active {
border-color: var(--brand-line);
background: var(--brand-soft);
}
.pay-channel-text {
display: flex;
flex-direction: column;
gap: 6rpx;
}
.pay-channel-title {
color: var(--ink);
font-size: var(--fs-30);
font-weight: 600;
}
.pay-channel-desc {
color: var(--muted);
font-size: var(--fs-24);
}
.pay-channel-radio {
flex-shrink: 0;
width: 32rpx;
height: 32rpx;
border: 2rpx solid var(--line);
border-radius: 50%;
background: var(--white);
}
.pay-channel-radio.checked {
border-color: var(--brand-strong);
background: var(--brand-strong);
}
.pay-popup-tip {
display: block;
margin-top: 20rpx;
color: var(--muted);
font-size: var(--fs-24);
line-height: 1.6;
}
/* ===== 支付方式底部弹窗 ===== */
.popup-mask {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: 200;
background: rgba(43, 37, 33, 0.45);
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.popup-mask.show {
opacity: 1;
visibility: visible;
}
.popup-content {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 201;
display: flex;
flex-direction: column;
max-height: 70vh;
background: var(--white);
border-radius: 32rpx 32rpx 0 0;
transform: translateY(100%);
transition: transform 0.3s ease-out;
}
.popup-content.show {
transform: translateY(0);
}
.popup-header {
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
padding: 28rpx 32rpx;
border-bottom: 2rpx solid var(--line);
}
.popup-title {
color: var(--ink);
font-size: var(--fs-32);
font-weight: 700;
}
.popup-close {
padding: 8rpx;
margin: -8rpx;
}
.popup-close:active {
opacity: 0.5;
}
.popup-body {
flex: 1;
overflow-y: auto;
padding: 20rpx 32rpx 28rpx;
}
.popup-footer {
display: flex;
gap: 16rpx;
flex-shrink: 0;
padding: 20rpx 32rpx;
padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
border-top: 2rpx solid var(--line);
}
.popup-btn {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 22rpx 0;
border-radius: 999rpx;
font-size: var(--fs-30);
line-height: 1.4;
}
.popup-btn:active {
opacity: 0.7;
}
.popup-btn-ghost {
border: 3rpx solid var(--sep);
color: var(--muted);
}
.popup-btn-primary {
background: var(--brand-strong);
color: var(--white);
font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
.patient-chip,
.add-profile-tip,
.submit-btn {
transition: none;
}
}