Files
wxapp_escort/pages/escort/itemorder.wxss
T
lik 2ba45b515d feat(escort): 新增立即预约页并接入首页主按钮
首页「立即预约」此前跳到服务列表,用户仍需再选一次服务才能下单,
路径偏长。新增 pages/escort/itemorder 作为统一下单页:进来即可选陪诊项目、
选就诊人(姓名/电话由档案只读带入,避免手填出错)、填医院与时间后提交。

提交时按服务配置处理班次(固定班次走选择器,弹性时段走时间选择器),
需要寄件的跑腿类服务额外要求填写收货地址,并用同一幂等键保证重试不重复下单。
2026-11-04 22:18:24 +08:00

384 lines
6.4 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: 28rpx;
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;
}
.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 {
flex: 1;
min-width: 0;
margin: 0 16rpx 0 12rpx;
}
.order-service-title {
display: block;
color: var(--ink);
font-size: 30rpx;
font-weight: 700;
line-height: 1.4;
}
.order-service-price {
display: block;
margin-top: 6rpx;
color: var(--brand-ink);
font-size: 26rpx;
font-weight: 700;
}
.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);
}
.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: 28rpx;
letter-spacing: 1rpx;
}
.order-input,
.order-value {
flex: 1;
min-width: 0;
margin-left: 24rpx;
color: var(--ink);
font-size: 28rpx;
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: 28rpx;
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: 28rpx;
line-height: 1.5;
}
.textarea-count {
align-self: flex-end;
margin-top: 10rpx;
color: var(--muted);
font-size: 24rpx;
}
.address-tip {
align-self: flex-start;
margin-top: 10rpx;
color: var(--muted);
font-size: 24rpx;
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;
box-sizing: border-box;
min-width: 180rpx;
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: 26rpx;
font-weight: 700;
}
.patient-chip.active .patient-chip-name,
.patient-chip-add .patient-chip-name {
color: var(--brand-ink);
}
.patient-chip-phone {
margin-top: 6rpx;
color: var(--muted);
font-size: 24rpx;
}
.patient-chip-add {
justify-content: center;
}
.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: 24rpx;
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: 26rpx;
}
.price-sym {
color: var(--brand-strong);
font-size: 28rpx;
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: 30rpx;
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: 28rpx;
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: 28rpx;
font-weight: 500;
line-height: 1.5;
}
@media (prefers-reduced-motion: reduce) {
.patient-chip,
.add-profile-tip,
.submit-btn {
transition: none;
}
}