@import "../../styles/service-icons.wxss"; /* pages/escort/itemorder.wxss */ page { background: var(--paper); } .page-bg { min-height: 100vh; background: var(--paper); } .container { padding: 0 32rpx; } .booking-form { padding-top: 8rpx; } .form-section { margin-top: 24rpx; padding: 28rpx 24rpx 8rpx; border: 2rpx solid var(--line); border-radius: 28rpx; background: var(--white); } .form-section-head { display: flex; align-items: baseline; gap: 16rpx; margin-bottom: 12rpx; } .form-section-number { color: var(--brand-ink); font-size: var(--fs-24); font-weight: 500; letter-spacing: 2rpx; } .form-section-title { color: var(--ink); font-size: var(--fs-32); font-weight: 600; } .form-section-optional { margin-left: auto; color: var(--muted); font-size: var(--fs-24); } .selection-check { flex-shrink: 0; box-sizing: border-box; width: 20rpx; height: 12rpx; margin: -6rpx 2rpx 0; border-bottom: 3rpx solid var(--brand-ink); border-left: 3rpx solid var(--brand-ink); transform: rotate(-45deg); } .agreement-check .selection-check { width: 18rpx; height: 10rpx; border-color: var(--white); } .service-fee-note { display: block; padding: 0 0 16rpx; color: var(--muted); font-size: var(--fs-26); line-height: 1.7; } /* 陪诊项目:展示沿用原项目卡片,点击卡片展开下拉列表 */ .service-picker-row { padding: 4rpx 0 12rpx; } .service-picker { display: block; } .service-picker.is-disabled { opacity: 0.6; } .order-service-info { display: flex; align-items: center; padding: 8rpx 0; } .order-service-mark { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 80rpx; height: 80rpx; } /* 项目图标与首页宫格同一套图形(styles/service-icons.wxss),这里只改尺寸 */ .order-service-mark .assist-icon { width: 56rpx; height: 56rpx; } /* 名称与价格上下分层,长服务名也能完整显示。 */ .order-service-text { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; gap: 8rpx; margin: 0 16rpx; } .order-service-title { flex: 1; min-width: 0; color: var(--ink); font-size: var(--fs-32); font-weight: 600; line-height: 1.4; word-break: break-all; } .order-service-price { flex-shrink: 0; color: var(--brand-ink); font-size: var(--fs-28); font-weight: 500; line-height: 1.4; } /* 「更换」做成浅橙胶囊按钮:与就诊人选中胶囊同一套品牌色, 一眼看出这里可点,不再是混在卡片里的灰色小字 */ .service-switch { display: flex; align-items: center; gap: 4rpx; flex-shrink: 0; min-height: 64rpx; padding: 0 20rpx; border: 2rpx solid var(--brand-line); border-radius: 999rpx; background: var(--brand-soft); color: var(--brand-ink); font-size: var(--fs-26); font-weight: 600; } .order-service-info:active .service-switch { opacity: 0.7; } .service-picker-arrow { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36rpx; height: 48rpx; transition: transform 0.2s ease; } .service-picker-arrow.is-open { transform: rotate(180deg); } /* 选项保持 108rpx 行高,与 JS 的可视高度计算一致。 */ .service-panel { margin: 12rpx 0 24rpx; padding: 0 20rpx 8rpx; border: 2rpx solid var(--line); border-radius: 20rpx; background: var(--paper); } .service-options { margin-top: 4rpx; } .service-option { display: flex; align-items: center; box-sizing: border-box; height: 108rpx; 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-mark .assist-icon { width: 52rpx; height: 52rpx; } /* 名称与价格同一行:名称左对齐并自适应截断,价格靠右 */ .service-option-name { flex: 1; min-width: 0; margin-left: 12rpx; overflow: hidden; color: var(--ink); font-size: var(--fs-30); font-weight: 600; 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: 500; 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; min-height: 100rpx; box-sizing: border-box; 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; } /* 字段标签:裸字 muted,与 itemdetail 弹窗、health/profileedit 同一口径。 沿革:浅橙药丸(定宽 190rpx 居中)→ 现在去底去内距。 改因:本页同行里「陪诊项目卡」「就诊人可选胶囊」都是浅橙底, 标签再用浅橙底就没有「哪个能点」的分界;标签是纯说明,不该长得像控件 */ .order-label { line-height: 1.6; 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: 500; text-align: right; line-height: 1.6; word-break: break-all; } .input-placeholder, .order-value.placeholder, .picker-value.placeholder { color: var(--muted); font-weight: 400; } .order-picker { flex: 1; min-width: 0; margin-left: 24rpx; padding: 0; } .picker-value { display: block; color: var(--ink); font-size: var(--fs-30); font-weight: 500; text-align: right; line-height: 1.6; } /* picker 取值 + 下拉箭头:右对齐成一列,与医院选择行的箭头对齐 */ .picker-value-wrap { display: flex; align-items: center; justify-content: flex-end; gap: 12rpx; } .picker-chevron { flex-shrink: 0; width: 16rpx; height: 16rpx; border-right: 2rpx solid var(--muted, #6F655C); border-bottom: 2rpx solid var(--muted, #6F655C); transform: rotate(45deg); } .order-textarea { box-sizing: border-box; width: 100%; height: 136rpx; margin-top: 16rpx; padding: 20rpx; border: 2rpx solid var(--line); border-radius: 16rpx; 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); } .remark-row { padding-top: 12rpx; } .remark-row .order-textarea { margin-top: 0; } .patient-chip-note { display: block; font-size: var(--fs-24); color: var(--muted); line-height: 1.5; } .patient-chip-copy { display: flex; flex-direction: column; } .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: row; gap: 10rpx; align-items: center; justify-content: center; box-sizing: border-box; /* 140rpx:只显示姓名,胶囊按名字长度收紧,不再为手机号预留宽度 */ min-width: 140rpx; min-height: 88rpx; 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: 500; } .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: 600; } .bottom-placeholder { height: calc(164rpx + env(safe-area-inset-bottom)); } .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); gap: 24rpx; } .bottom-summary { min-width: 0; } .bottom-price { display: flex; align-items: baseline; } .bottom-price-label { display: block; margin-bottom: 4rpx; 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; min-height: 100rpx; padding: 24rpx 48rpx; border: none; border-radius: 16rpx; background: var(--brand-strong); color: var(--white); font-size: var(--fs-30); font-weight: 600; 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: 600; } .popup-close { display: flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 88rpx; min-height: 88rpx; margin: -16rpx -16rpx -16rpx 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: 600; } /* ===== 免责协议确认(下单前置勾选) ===== */ .agreement-block { padding: 24rpx 4rpx 0; } .agreement-row { display: flex; align-items: flex-start; gap: 16rpx; padding: 16rpx 0; min-height: 88rpx; box-sizing: border-box; } .agreement-check { display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-sizing: border-box; width: 36rpx; height: 36rpx; margin-top: 2rpx; border: 2rpx solid var(--muted); border-radius: 10rpx; background: var(--white); transition: background 0.15s ease, border-color 0.15s ease; } /* 选中态沿用全站唯一实心主色,白色对勾直接落在主色上 */ .agreement-check.checked { border-color: var(--brand-strong); background: var(--brand-strong); } .agreement-consent { flex: 1; min-width: 0; line-height: 1.6; } .agreement-consent-text { color: var(--muted); font-size: var(--fs-26); } .agreement-link { color: var(--brand-ink); font-size: var(--fs-26); font-weight: 600; } .agreement-block.is-hint .agreement-consent-text { color: var(--ink-2); } .agreement-hint { display: block; margin-top: 10rpx; margin-left: 52rpx; color: var(--brand-strong); font-size: var(--fs-24); line-height: 1.5; } /* ===== 免责协议弹层:正文区可滚动,底部固定同意按钮 ===== */ .agreement-popup { height: 80vh; max-height: 80vh; } .agreement-popup-body { flex: 1; min-height: 0; box-sizing: border-box; padding: 20rpx 32rpx 8rpx; } .agreement-popup-subtitle { display: block; margin-bottom: 24rpx; padding: 16rpx 20rpx; border-radius: 14rpx; background: var(--brand-soft); color: var(--brand-ink); font-size: var(--fs-24); line-height: 1.6; } .agreement-section { margin-bottom: 28rpx; } .agreement-section-title { display: flex; align-items: center; margin-bottom: 12rpx; color: var(--ink); font-size: var(--fs-28); font-weight: 600; line-height: 1.5; } .agreement-section-number { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36rpx; height: 36rpx; margin-right: 12rpx; border: 2rpx solid var(--brand-line); border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-size: var(--fs-24); font-weight: 600; } .agreement-item { display: flex; align-items: flex-start; margin-bottom: 10rpx; } .agreement-item-dot { flex-shrink: 0; width: 10rpx; height: 10rpx; margin: 14rpx 12rpx 0 0; border-radius: 50%; background: var(--brand-strong); } .agreement-item-text { flex: 1; color: var(--ink-2); font-size: var(--fs-26); line-height: 1.7; } .agreement-popup-footer { margin-top: 8rpx; padding: 16rpx 0 24rpx; border-top: 2rpx dotted var(--sep); } .agreement-popup-footer-text { display: block; color: var(--muted); font-size: var(--fs-24); line-height: 1.6; } .agreement-popup-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80rpx 0; } @media (prefers-reduced-motion: reduce) { .patient-chip, .add-profile-tip, .submit-btn, .agreement-check { transition: none; } }