style(escort): 预约表单行标签加浅底tag,医院下拉补遮罩与收起入口
- 行标题统一 190rpx 浅橙底 tag,整列对齐 - 医院下拉展开时加全屏遮罩,点空白处收起 - 下拉面板改白底橙边,收起文案换箭头图标,列表加高到 6 行 - 各 picker 补下拉箭头,行分隔线改点分线,底部占位加高避开固定栏
This commit is contained in:
@@ -80,7 +80,10 @@
|
||||
<view class="order-row">
|
||||
<text class="order-label">就诊省份</text>
|
||||
<picker class="order-picker" mode="selector" range="{{provinces}}" value="{{provinceIndex}}" bindchange="onProvinceChange">
|
||||
<view class="picker-value {{province ? '' : 'placeholder'}}">{{province || '请选择省份'}}</view>
|
||||
<view class="picker-value-wrap">
|
||||
<text class="picker-value {{province ? '' : 'placeholder'}}">{{province || '请选择省份'}}</text>
|
||||
<view class="picker-chevron"></view>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
|
||||
@@ -97,14 +100,20 @@
|
||||
<view class="order-row">
|
||||
<text class="order-label">陪诊师性别</text>
|
||||
<picker class="order-picker" mode="selector" range="{{genderOptions}}" value="{{genderIndex}}" bindchange="onGenderChange">
|
||||
<view class="picker-value {{gender ? '' : 'placeholder'}}">{{gender || '请选择性别要求'}}</view>
|
||||
<view class="picker-value-wrap">
|
||||
<text class="picker-value {{gender ? '' : 'placeholder'}}">{{gender || '请选择性别要求'}}</text>
|
||||
<view class="picker-chevron"></view>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
|
||||
<view class="order-row">
|
||||
<text class="order-label">预约日期</text>
|
||||
<picker class="order-picker" mode="date" value="{{appointmentDate}}" start="{{minAppointmentDate}}" bindchange="onDateChange">
|
||||
<view class="picker-value {{appointmentDate ? '' : 'placeholder'}}">{{appointmentDate || '请选择预约日期'}}</view>
|
||||
<view class="picker-value-wrap">
|
||||
<text class="picker-value {{appointmentDate ? '' : 'placeholder'}}">{{appointmentDate || '请选择预约日期'}}</text>
|
||||
<view class="picker-chevron"></view>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
|
||||
@@ -112,7 +121,10 @@
|
||||
<view class="order-row">
|
||||
<text class="order-label">预约时间</text>
|
||||
<picker class="order-picker" mode="selector" range="{{timeSlots}}" value="{{timeSlotIndex}}" bindchange="onTimeChange">
|
||||
<view class="picker-value {{appointmentTime ? '' : 'placeholder'}}">{{appointmentTime || '请选择预约时间'}}</view>
|
||||
<view class="picker-value-wrap">
|
||||
<text class="picker-value {{appointmentTime ? '' : 'placeholder'}}">{{appointmentTime || '请选择预约时间'}}</text>
|
||||
<view class="picker-chevron"></view>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ page {
|
||||
/* 陪诊项目:展示沿用原项目卡片,点击卡片展开下拉列表 */
|
||||
.service-picker-row {
|
||||
padding: 24rpx 0;
|
||||
border-bottom: 2rpx solid var(--line);
|
||||
border-bottom: 2rpx dotted var(--line-soft, #E9DECB);
|
||||
}
|
||||
|
||||
.service-picker {
|
||||
@@ -225,12 +225,13 @@ page {
|
||||
font-size: var(--fs-30);
|
||||
}
|
||||
|
||||
/* 行间分隔:点分线(2rpx 才在真机可见,1rpx 会碎成像素噪点) */
|
||||
.order-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 24rpx 0;
|
||||
border-bottom: 2rpx solid var(--line);
|
||||
border-bottom: 2rpx dotted var(--line-soft, #E9DECB);
|
||||
}
|
||||
|
||||
.order-row:last-child {
|
||||
@@ -245,9 +246,21 @@ page {
|
||||
|
||||
.order-label {
|
||||
flex-shrink: 0;
|
||||
box-sizing: border-box;
|
||||
/* 统一宽度:容纳 5 字标题(5×30 + 40 内边距),短标题居中补齐 */
|
||||
min-width: 190rpx;
|
||||
padding: 8rpx 20rpx;
|
||||
color: var(--muted);
|
||||
font-size: var(--fs-30);
|
||||
letter-spacing: 1rpx;
|
||||
text-align: center;
|
||||
background: var(--brand-soft, #FFF4E8);
|
||||
border-radius: 12rpx;
|
||||
}
|
||||
|
||||
/* 竖排行标题不随 stretch 撑满整行,保持 tag 宽度 */
|
||||
.order-row.column .order-label {
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
.order-input,
|
||||
@@ -282,6 +295,23 @@ page {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* 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%;
|
||||
@@ -392,7 +422,7 @@ page {
|
||||
}
|
||||
|
||||
.bottom-placeholder {
|
||||
height: 152rpx;
|
||||
height: 200rpx;
|
||||
}
|
||||
|
||||
.bottom-bar {
|
||||
|
||||
Reference in New Issue
Block a user