style(escort): 服务详情页统一导航与加载态
导航栏改浅色纸面并补 t-loading,页首样式收口到新版字号与圆角档位; 医院选择改由组件弹层承载,删除页面内的锚点滚动;就诊人胶囊补同名提示, 免责协议、医院列表与登录状态失败各自兜底,不再整页空白。
This commit is contained in:
+21
-10
@@ -1,4 +1,6 @@
|
||||
const API = require('../../utils/api.js')
|
||||
const { restoreLightNavigation } = require('../../utils/navigation.js')
|
||||
const { withDuplicateNameHints } = require('../../utils/booking-profiles.js')
|
||||
const { formatDate, LATEST_APPOINTMENT_TIME, buildTimeSlots } = require('../../utils/date.js')
|
||||
const { ensureLogin } = require('../../utils/auth.js')
|
||||
|
||||
@@ -39,8 +41,6 @@ Page({
|
||||
genderIndex: 0,
|
||||
genderOptions: ['不限', '男', '女'],
|
||||
payChannel: 'offline',
|
||||
// 医院下拉展开时,把医院行滚到弹窗滚动容器顶部,避免列表被裁掉
|
||||
popupScrollIntoView: '',
|
||||
// 点击「提交预约」后弹出支付方式选择,默认线下支付
|
||||
showPayPopup: false,
|
||||
// 下单前必须勾选确认《陪诊服务免责协议》
|
||||
@@ -64,11 +64,23 @@ Page({
|
||||
},
|
||||
|
||||
onShow() {
|
||||
restoreLightNavigation()
|
||||
if (this.data.showOrderPopup) this.loadProfiles()
|
||||
},
|
||||
|
||||
async initializePage() {
|
||||
this.setData({ pageLoading: true, pageError: '' })
|
||||
try {
|
||||
await this.loadPageContent()
|
||||
} catch (err) {
|
||||
console.error('服务详情初始化失败', err)
|
||||
this.setData({ pageError: '服务加载失败,请重试' })
|
||||
} finally {
|
||||
this.setData({ pageLoading: false })
|
||||
}
|
||||
},
|
||||
|
||||
async loadPageContent() {
|
||||
// 免责协议与表单并行预加载,避免用户点开协议时再空等
|
||||
this.loadDisclaimer()
|
||||
const services = await getApp().loadServices()
|
||||
@@ -87,6 +99,8 @@ Page({
|
||||
// 列表为空时组件内的「其他医院」入口仍可手填
|
||||
getApp().loadHospitals().then(() => {
|
||||
this.refreshHospitalOptions()
|
||||
}).catch((err) => {
|
||||
console.error('医院列表加载失败', err)
|
||||
})
|
||||
const serviceView = {
|
||||
...service,
|
||||
@@ -122,6 +136,9 @@ Page({
|
||||
disclaimerLoading: false,
|
||||
disclaimerError: !disclaimer
|
||||
})
|
||||
}).catch((err) => {
|
||||
console.error('免责协议加载失败', err)
|
||||
this.setData({ disclaimerLoading: false, disclaimerError: true })
|
||||
})
|
||||
},
|
||||
|
||||
@@ -220,13 +237,13 @@ Page({
|
||||
return API.healthProfile.getMyProfiles({ page: 1, pageSize: 50 })
|
||||
.then((res) => {
|
||||
if (res.code !== 0) throw new Error(res.msg || '就诊人加载失败')
|
||||
const profiles = (res.data?.list || []).map((item) => ({
|
||||
const profiles = withDuplicateNameHints((res.data?.list || []).map((item) => ({
|
||||
_id: item._id,
|
||||
name: item.profile?.name || '',
|
||||
mobile: item.profile?.mobile || '',
|
||||
sex: item.profile?.sex || '',
|
||||
birth: item.profile?.birth || ''
|
||||
}))
|
||||
})))
|
||||
// 默认选中第一个就诊人,信息随档案一键带入
|
||||
const first = profiles[0]
|
||||
if (first && !this.data.selectedProfileId) {
|
||||
@@ -308,12 +325,6 @@ Page({
|
||||
this.setData({ hospital: name, hospitalCustom: manual })
|
||||
},
|
||||
|
||||
// 展开医院下拉:先清空再下一帧设值,保证重复展开也能触发 scroll-into-view
|
||||
onHospitalOpen() {
|
||||
this.setData({ popupScrollIntoView: '' })
|
||||
wx.nextTick(() => this.setData({ popupScrollIntoView: 'hospital-select-anchor' }))
|
||||
},
|
||||
|
||||
onDateChange(e) {
|
||||
this.setData({ appointmentDate: e.detail.value })
|
||||
},
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"t-icon": "tdesign-miniprogram/icon/icon",
|
||||
"t-loading": "tdesign-miniprogram/loading/loading",
|
||||
"hospital-select": "/components/hospital-select/index"
|
||||
},
|
||||
"navigationBarTitleText": "服务详情"
|
||||
"navigationBarTitleText": "服务详情",
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarBackgroundColor": "#FAF8F5"
|
||||
}
|
||||
|
||||
+132
-112
@@ -1,10 +1,9 @@
|
||||
<view class="page-bg">
|
||||
<view class="container" wx:if="{{service.id}}">
|
||||
<view class="container" wx:if="{{!pageLoading && !pageError && service.id}}">
|
||||
|
||||
<!-- 头部:短横色标 + 深墨标题。原顶部 420rpx 大图已去掉:
|
||||
服务图在多条服务间复用同一张占位图,既分不出是哪项服务,又白占掉大半首屏 -->
|
||||
<view class="page-header">
|
||||
<view class="header-accent"></view>
|
||||
<view class="title-row">
|
||||
<text class="header-title">{{ service.title }}</text>
|
||||
<view class="header-tag" wx:if="{{ service.tag }}">{{ service.tag }}</view>
|
||||
@@ -26,7 +25,6 @@
|
||||
<!-- 服务详情 -->
|
||||
<view class="section section-first">
|
||||
<view class="section-head">
|
||||
<view class="section-bar"></view>
|
||||
<text class="section-title">服务详情</text>
|
||||
</view>
|
||||
<text class="detail-text">{{ service.description }}</text>
|
||||
@@ -35,7 +33,6 @@
|
||||
<!-- 注意事项:与指南页同一套圆点语言 -->
|
||||
<view class="section">
|
||||
<view class="section-head">
|
||||
<view class="section-bar"></view>
|
||||
<text class="section-title">注意事项</text>
|
||||
</view>
|
||||
<view class="dot-list">
|
||||
@@ -52,7 +49,6 @@
|
||||
<view class="tab-panel" wx:if="{{activeTab === 'flow'}}">
|
||||
<view class="section section-first">
|
||||
<view class="section-head">
|
||||
<view class="section-bar"></view>
|
||||
<text class="section-title">服务流程</text>
|
||||
</view>
|
||||
<view class="step-list">
|
||||
@@ -87,7 +83,7 @@
|
||||
<view class="popup-mask {{showOrderPopup ? 'show' : ''}}" bindtap="closeOrderPopup"></view>
|
||||
|
||||
<!-- 下单弹窗 -->
|
||||
<view class="popup-content {{showOrderPopup ? 'show' : ''}}">
|
||||
<view class="popup-content booking-popup {{showOrderPopup ? 'show' : ''}}">
|
||||
<view class="popup-header">
|
||||
<text class="popup-title">确认预约信息</text>
|
||||
<view class="popup-close" bindtap="closeOrderPopup" aria-role="button" aria-label="关闭预约弹窗">
|
||||
@@ -95,126 +91,148 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<scroll-view class="popup-body" scroll-y scroll-into-view="{{popupScrollIntoView}}" scroll-with-animation>
|
||||
<!-- 服务信息 -->
|
||||
<view class="order-service-info">
|
||||
<view class="order-service-mark">
|
||||
<view class="assist-icon {{serviceIconClass}}"></view>
|
||||
<scroll-view class="popup-body" scroll-y>
|
||||
<!-- 01 陪诊项目:服务与价格只读确认,分组口径与预约页一致 -->
|
||||
<view class="form-section">
|
||||
<view class="form-section-head">
|
||||
<text class="form-section-number">01</text>
|
||||
<text class="form-section-title">陪诊项目</text>
|
||||
</view>
|
||||
<view class="order-service-text">
|
||||
<text class="order-service-title">{{service.title}}</text>
|
||||
<text class="order-service-price">¥{{service.price}}/次</text>
|
||||
<view class="order-service-info">
|
||||
<view class="order-service-mark">
|
||||
<view class="assist-icon {{serviceIconClass}}"></view>
|
||||
</view>
|
||||
<view class="order-service-text">
|
||||
<text class="order-service-title">{{service.title}}</text>
|
||||
<text class="order-service-price">¥{{service.price}}/次</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="service-fee-note">费用仅含人工服务费,不含就医、药品及快递费用。</text>
|
||||
</view>
|
||||
|
||||
<!-- 选择就诊人:订单必须关联健康档案,就诊人信息全部由此带入 -->
|
||||
<view class="order-row column">
|
||||
<text class="order-label">选择就诊人</text>
|
||||
<scroll-view class="patient-scroll" scroll-x wx:if="{{profiles.length > 0}}">
|
||||
<view class="patient-chips">
|
||||
<view class="patient-chip {{selectedProfileId === item._id ? 'active' : ''}}" wx:for="{{profiles}}" wx:key="_id"
|
||||
data-id="{{item._id}}" bindtap="onSelectProfile">
|
||||
<text class="patient-chip-name">{{item.name}}</text>
|
||||
</view>
|
||||
<view class="patient-chip patient-chip-add" bindtap="goToAddProfile" aria-role="button" aria-label="增加就诊人">
|
||||
<t-icon name="add" size="28rpx" color="#9B4508" />
|
||||
<text class="patient-chip-name">增加</text>
|
||||
<!-- 02 就诊人信息:订单必须关联健康档案,就诊人信息全部由此带入 -->
|
||||
<view class="form-section">
|
||||
<view class="form-section-head">
|
||||
<text class="form-section-number">02</text>
|
||||
<text class="form-section-title">就诊人信息</text>
|
||||
</view>
|
||||
<view class="order-row column">
|
||||
<text class="order-label">选择就诊人</text>
|
||||
<scroll-view class="patient-scroll" scroll-x wx:if="{{profiles.length > 0}}">
|
||||
<view class="patient-chips">
|
||||
<view class="patient-chip {{selectedProfileId === item._id ? 'active' : ''}}" wx:for="{{profiles}}" wx:key="_id"
|
||||
data-id="{{item._id}}" bindtap="onSelectProfile" aria-role="radio" aria-checked="{{selectedProfileId === item._id}}">
|
||||
<view class="selection-check" wx:if="{{selectedProfileId === item._id}}"></view>
|
||||
<view class="patient-chip-copy">
|
||||
<text class="patient-chip-name">{{item.name}}</text>
|
||||
<text class="patient-chip-note" wx:if="{{item.nameHint}}">{{item.nameHint}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="patient-chip patient-chip-add" bindtap="goToAddProfile" aria-role="button" aria-label="增加就诊人">
|
||||
<t-icon name="add" size="28rpx" color="#9B4508" />
|
||||
<text class="patient-chip-name">增加</text>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="add-profile-tip" wx:else bindtap="goToAddProfile">
|
||||
<text class="add-profile-tip-text">还没有就诊人,去添加后可一键带入</text>
|
||||
<t-icon name="chevron-right" size="24rpx" color="#9B4508" />
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="add-profile-tip" wx:else bindtap="goToAddProfile">
|
||||
<text class="add-profile-tip-text">还没有就诊人,去添加后可一键带入</text>
|
||||
<t-icon name="chevron-right" size="24rpx" color="#9B4508" />
|
||||
</view>
|
||||
|
||||
<view class="order-row">
|
||||
<text class="order-label">联系电话</text>
|
||||
<text class="order-value {{patientPhone ? '' : 'placeholder'}}">{{patientPhone || '请先选择就诊人'}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 就诊人姓名/电话:只读,与所选档案严格一致(要改就去「编辑就诊人」) -->
|
||||
<view class="order-row">
|
||||
<text class="order-label">就诊人姓名</text>
|
||||
<text class="order-value {{patientName ? '' : 'placeholder'}}">{{patientName || '请先选择就诊人'}}</text>
|
||||
<!-- 03 就诊安排 -->
|
||||
<view class="form-section">
|
||||
<view class="form-section-head">
|
||||
<text class="form-section-number">03</text>
|
||||
<text class="form-section-title">就诊安排</text>
|
||||
</view>
|
||||
<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-wrap">
|
||||
<text class="picker-value {{province ? '' : 'placeholder'}}">{{province || '请选择省份'}}</text>
|
||||
<view class="picker-chevron"></view>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
|
||||
<!-- 医院选择独立浮层,不改变预约弹窗的滚动位置。 -->
|
||||
<view>
|
||||
<hospital-select
|
||||
label="就诊医院"
|
||||
value="{{hospital}}"
|
||||
options="{{hospitalOptions}}"
|
||||
placeholder="请选择就诊医院"
|
||||
disabled="{{submitting}}"
|
||||
bindchange="onHospitalChange"
|
||||
/>
|
||||
</view>
|
||||
|
||||
<!-- 陪诊师性别要求:先隐藏,下单固定按「不限」提交(js 中 gender 默认值),恢复时取消注释
|
||||
<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-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-wrap">
|
||||
<text class="picker-value {{appointmentDate ? '' : 'placeholder'}}">{{appointmentDate || '请选择预约日期'}}</text>
|
||||
<view class="picker-chevron"></view>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
|
||||
<!-- 预约时间:整点/半点一档,所有服务统一可选到 23:30 -->
|
||||
<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-wrap">
|
||||
<text class="picker-value {{appointmentTime ? '' : 'placeholder'}}">{{appointmentTime || '请选择预约时间'}}</text>
|
||||
<view class="picker-chevron"></view>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 就诊人电话 -->
|
||||
<view class="order-row">
|
||||
<text class="order-label">联系电话</text>
|
||||
<text class="order-value {{patientPhone ? '' : 'placeholder'}}">{{patientPhone || '请先选择就诊人'}}</text>
|
||||
</view>
|
||||
<!-- 04 补充信息:收货地址仅对快递/跑腿服务展示,随订单保存快照 -->
|
||||
<view class="form-section">
|
||||
<view class="form-section-head">
|
||||
<text class="form-section-number">04</text>
|
||||
<text class="form-section-title">补充信息</text>
|
||||
<text class="form-section-optional">选填</text>
|
||||
</view>
|
||||
<view class="order-row column" wx:if="{{requiresAddress}}">
|
||||
<text class="order-label">收货地址(选填)</text>
|
||||
<textarea class="order-textarea" value="{{shippingAddress}}" placeholder="请输入省市区、街道门牌等完整收货地址" maxlength="200" placeholder-class="input-placeholder" bindinput="onShippingAddressChange" />
|
||||
<text class="address-tip">收货人与联系电话使用所选就诊人信息</text>
|
||||
</view>
|
||||
|
||||
<!-- 就诊省份 -->
|
||||
<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>
|
||||
</picker>
|
||||
</view>
|
||||
|
||||
<!-- 就诊医院:自定义搜索选择,支持中文/拼音搜索与手动输入。
|
||||
id 供弹窗滚动容器在展开下拉时定位,保证列表完整可见 -->
|
||||
<view id="hospital-select-anchor">
|
||||
<hospital-select
|
||||
label="就诊医院"
|
||||
value="{{hospital}}"
|
||||
options="{{hospitalOptions}}"
|
||||
placeholder="请选择就诊医院"
|
||||
disabled="{{submitting}}"
|
||||
auto-page-scroll="{{false}}"
|
||||
bindopen="onHospitalOpen"
|
||||
bindchange="onHospitalChange"
|
||||
/>
|
||||
</view>
|
||||
|
||||
<!-- 陪诊师性别要求:先隐藏,下单固定按「不限」提交(js 中 gender 默认值),恢复时取消注释
|
||||
<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>
|
||||
</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>
|
||||
</picker>
|
||||
</view>
|
||||
|
||||
<!-- 预约时间:整点/半点一档,所有服务统一可选到 23:30 -->
|
||||
<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>
|
||||
</picker>
|
||||
</view>
|
||||
|
||||
<!-- 收货地址仅对快递/跑腿服务展示,随订单保存快照 -->
|
||||
<view class="order-row column" wx:if="{{requiresAddress}}">
|
||||
<text class="order-label">收货地址(选填)</text>
|
||||
<textarea class="order-textarea" value="{{shippingAddress}}" placeholder="请输入省市区、街道门牌等完整收货地址" maxlength="200" placeholder-class="input-placeholder" bindinput="onShippingAddressChange" />
|
||||
<text class="address-tip">收货人与联系电话使用所选就诊人信息</text>
|
||||
</view>
|
||||
|
||||
<!-- 备注 -->
|
||||
<view class="order-row column">
|
||||
<text class="order-label">备注说明</text>
|
||||
<textarea class="order-textarea" value="{{remark}}" placeholder="请输入其他需求或备注信息" maxlength="200" placeholder-class="input-placeholder" bindinput="onRemarkChange" />
|
||||
<text class="textarea-count">{{remark.length}}/200</text>
|
||||
<view class="order-row column remark-row">
|
||||
<text class="order-label">备注说明</text>
|
||||
<textarea class="order-textarea" value="{{remark}}" placeholder="请输入其他需求或备注信息" maxlength="200" placeholder-class="input-placeholder" bindinput="onRemarkChange" />
|
||||
<text class="textarea-count">{{remark.length}}/200</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 下单前置确认:勾选后才允许提交预约 -->
|
||||
<view class="agreement-block {{agreementHint ? 'is-hint' : ''}}">
|
||||
<view class="agreement-row" bindtap="onToggleAgreement" aria-role="checkbox" aria-checked="{{agreementAgreed}}">
|
||||
<view class="agreement-check {{agreementAgreed ? 'checked' : ''}}">
|
||||
<t-icon wx:if="{{agreementAgreed}}" name="check" size="22rpx" color="#FFFFFF" />
|
||||
<view wx:if="{{agreementAgreed}}" class="selection-check"></view>
|
||||
</view>
|
||||
<view class="agreement-consent">
|
||||
<text class="agreement-consent-text">我已阅读并同意</text>
|
||||
@@ -226,10 +244,12 @@
|
||||
</scroll-view>
|
||||
|
||||
<view class="popup-footer">
|
||||
<view class="popup-price">
|
||||
<text class="popup-price-label">合计</text>
|
||||
<text class="price-sym">¥</text>
|
||||
<text class="popup-price-value">{{ totalPrice }}</text>
|
||||
<view class="popup-summary">
|
||||
<text class="popup-price-label">服务费用</text>
|
||||
<view class="popup-price">
|
||||
<text class="price-sym">¥</text>
|
||||
<text class="popup-price-value">{{ totalPrice }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<button class="popup-submit-btn" bindtap="submitOrder" disabled="{{submitting}}" loading="{{submitting}}">{{submitting ? '提交中' : '提交预约'}}</button>
|
||||
</view>
|
||||
|
||||
+167
-80
@@ -55,17 +55,51 @@ page {
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* ===== 下单表单分组:沿用 01–04 编号,用发丝线分隔,不叠白卡 ===== */
|
||||
.form-section {
|
||||
padding: 24rpx 0 8rpx;
|
||||
}
|
||||
|
||||
.form-section:first-child {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.form-section + .form-section {
|
||||
margin-top: 8rpx;
|
||||
border-top: 2rpx solid var(--line);
|
||||
}
|
||||
|
||||
.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);
|
||||
}
|
||||
|
||||
/* ===== 头部:短横色标 + 深墨标题 ===== */
|
||||
.page-header {
|
||||
padding: 32rpx 0 0;
|
||||
}
|
||||
|
||||
.header-accent {
|
||||
width: 64rpx;
|
||||
height: 8rpx;
|
||||
border-radius: 4rpx;
|
||||
background: var(--brand-strong);
|
||||
}
|
||||
|
||||
.title-row {
|
||||
display: flex;
|
||||
@@ -73,12 +107,12 @@ page {
|
||||
flex-wrap: wrap;
|
||||
row-gap: 10rpx;
|
||||
column-gap: 16rpx;
|
||||
margin-top: 22rpx;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.header-title {
|
||||
font-size: 44rpx;
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
color: var(--ink);
|
||||
letter-spacing: 1rpx;
|
||||
line-height: 1.3;
|
||||
@@ -93,7 +127,7 @@ page {
|
||||
border: 2rpx solid var(--brand-line);
|
||||
color: var(--brand-ink);
|
||||
font-size: var(--fs-28);
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
letter-spacing: 1rpx;
|
||||
white-space: nowrap;
|
||||
}
|
||||
@@ -129,7 +163,7 @@ page {
|
||||
|
||||
.tab-item.active {
|
||||
color: var(--brand-ink);
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
border-bottom-color: var(--brand-strong);
|
||||
}
|
||||
|
||||
@@ -154,18 +188,11 @@ page {
|
||||
}
|
||||
|
||||
/* 区块标识:单竖条,与首页/清单页同规格 */
|
||||
.section-bar {
|
||||
width: 8rpx;
|
||||
height: 34rpx;
|
||||
border-radius: 4rpx;
|
||||
background: var(--brand-strong);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
margin-left: 16rpx;
|
||||
margin-left: 0;
|
||||
font-size: var(--fs-34);
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
color: var(--ink);
|
||||
letter-spacing: 1rpx;
|
||||
}
|
||||
@@ -209,7 +236,7 @@ page {
|
||||
border: 2rpx solid var(--brand-line);
|
||||
color: var(--brand-ink);
|
||||
font-size: var(--fs-28);
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -222,7 +249,7 @@ page {
|
||||
width: 2rpx;
|
||||
min-height: 16rpx;
|
||||
margin: 8rpx 0;
|
||||
background: rgba(194, 65, 12, 0.28);
|
||||
background: rgba(184, 82, 10, 0.28);
|
||||
}
|
||||
|
||||
.step-body {
|
||||
@@ -239,7 +266,7 @@ page {
|
||||
.step-title {
|
||||
display: block;
|
||||
font-size: var(--fs-30);
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
color: var(--ink);
|
||||
line-height: 1.4;
|
||||
}
|
||||
@@ -344,7 +371,7 @@ page {
|
||||
box-shadow: var(--shadow-cta);
|
||||
color: var(--white);
|
||||
font-size: var(--fs-30);
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
letter-spacing: 2rpx;
|
||||
line-height: 1.4;
|
||||
transition: transform 0.15s ease;
|
||||
@@ -409,7 +436,7 @@ page {
|
||||
|
||||
.popup-title {
|
||||
font-size: var(--fs-32);
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
color: var(--ink);
|
||||
letter-spacing: 1rpx;
|
||||
}
|
||||
@@ -427,70 +454,69 @@ page {
|
||||
|
||||
.popup-body {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
max-height: 60vh;
|
||||
width: auto;
|
||||
padding: 28rpx 32rpx;
|
||||
}
|
||||
|
||||
/* 弹窗内服务信息:浅橙衬底块,与页面的重点面板语言一致 */
|
||||
/* 服务信息:与「立即预约」页同一口径,裸排不加衬底,避免和浅橙可选控件混淆 */
|
||||
.order-service-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 20rpx 24rpx;
|
||||
margin-bottom: 8rpx;
|
||||
border-radius: 20rpx;
|
||||
background: var(--brand-soft);
|
||||
border: 2rpx solid var(--brand-line);
|
||||
padding: 8rpx 0;
|
||||
}
|
||||
|
||||
/* 服务标记:与首页宫格同一套双色调图标(styles/service-icons.wxss)。
|
||||
原占位图是全服务共用的白色线稿,白底白图等于隐形;
|
||||
保留 96×96 定宽让标题列与旧版对齐,只换内容不挪版 */
|
||||
.order-service-mark {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 96rpx;
|
||||
height: 96rpx;
|
||||
flex-shrink: 0;
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
}
|
||||
|
||||
/* 项目图标与首页宫格同一套图形(styles/service-icons.wxss),这里只改尺寸 */
|
||||
.order-service-mark .assist-icon {
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
width: 56rpx;
|
||||
height: 56rpx;
|
||||
}
|
||||
|
||||
/* 名称与价格上下分层,长服务名也能完整显示。 */
|
||||
.order-service-text {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin-left: 20rpx;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 8rpx;
|
||||
margin: 0 16rpx;
|
||||
}
|
||||
|
||||
.order-service-title {
|
||||
display: inline;
|
||||
font-size: var(--fs-32);
|
||||
font-weight: 700;
|
||||
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 {
|
||||
display: inline;
|
||||
margin-left: 16rpx;
|
||||
margin-right: 48rpx;
|
||||
font-size: var(--fs-32);
|
||||
font-weight: 700;
|
||||
color: var(--brand-ink);
|
||||
flex-shrink: 0;
|
||||
color: var(--brand-ink);
|
||||
font-size: var(--fs-28);
|
||||
font-weight: 500;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
/* ===== 表单行 ===== */
|
||||
/* 上下各 24rpx 内边距,行高约 87rpx,贴近 iOS 44pt 触控目标 */
|
||||
.order-row {
|
||||
box-sizing: border-box;
|
||||
min-height: 100rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
@@ -509,6 +535,7 @@ page {
|
||||
}
|
||||
|
||||
.order-label {
|
||||
line-height: 1.6;
|
||||
flex-shrink: 0;
|
||||
font-size: var(--fs-30);
|
||||
color: var(--muted);
|
||||
@@ -521,7 +548,7 @@ page {
|
||||
margin-left: 24rpx;
|
||||
text-align: right;
|
||||
font-size: var(--fs-30);
|
||||
font-weight: 700;
|
||||
font-weight: 500;
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
@@ -532,12 +559,14 @@ page {
|
||||
|
||||
/* 只读值(就诊人姓名/电话):与 .order-input 同形,仅去掉输入框语义 */
|
||||
.order-value {
|
||||
line-height: 1.6;
|
||||
word-break: break-all;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin-left: 24rpx;
|
||||
text-align: right;
|
||||
font-size: var(--fs-30);
|
||||
font-weight: 700;
|
||||
font-weight: 500;
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
@@ -551,14 +580,16 @@ page {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin-left: 24rpx;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.picker-value {
|
||||
display: block;
|
||||
text-align: right;
|
||||
font-size: var(--fs-30);
|
||||
font-weight: 700;
|
||||
color: var(--ink);
|
||||
font-size: var(--fs-30);
|
||||
font-weight: 500;
|
||||
text-align: right;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.picker-value.placeholder {
|
||||
@@ -566,36 +597,56 @@ page {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
/* 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 {
|
||||
width: 100%;
|
||||
height: 160rpx;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 136rpx;
|
||||
margin-top: 16rpx;
|
||||
padding: 20rpx;
|
||||
border-radius: 12rpx;
|
||||
background: var(--paper);
|
||||
border: 2rpx solid var(--line);
|
||||
font-size: var(--fs-30);
|
||||
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;
|
||||
font-size: var(--fs-30);
|
||||
color: var(--muted);
|
||||
font-size: var(--fs-26);
|
||||
}
|
||||
|
||||
.address-tip {
|
||||
align-self: flex-start;
|
||||
margin-top: 10rpx;
|
||||
font-size: var(--fs-30);
|
||||
color: var(--muted);
|
||||
font-size: var(--fs-26);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.remark-row { padding-top: 12rpx; }
|
||||
.remark-row .order-textarea { margin-top: 0; }
|
||||
|
||||
/* ===== 就诊人选择 ===== */
|
||||
.patient-scroll {
|
||||
width: 100%;
|
||||
@@ -610,15 +661,18 @@ page {
|
||||
|
||||
.patient-chip {
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
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);
|
||||
border: 2rpx solid var(--line);
|
||||
box-sizing: border-box;
|
||||
transition: opacity 0.15s ease;
|
||||
}
|
||||
|
||||
@@ -634,7 +688,7 @@ page {
|
||||
|
||||
.patient-chip-name {
|
||||
font-size: var(--fs-28);
|
||||
font-weight: 700;
|
||||
font-weight: 500;
|
||||
color: var(--ink-2);
|
||||
}
|
||||
|
||||
@@ -679,9 +733,9 @@ page {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin-right: 8rpx;
|
||||
font-size: var(--fs-30);
|
||||
font-weight: 700;
|
||||
color: var(--brand-ink);
|
||||
font-size: var(--fs-26);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* ===== 弹窗底部 ===== */
|
||||
@@ -703,8 +757,9 @@ page {
|
||||
}
|
||||
|
||||
.popup-price-label {
|
||||
margin-right: 8rpx;
|
||||
font-size: var(--fs-30);
|
||||
display: block;
|
||||
margin-bottom: 4rpx;
|
||||
font-size: var(--fs-26);
|
||||
color: var(--muted);
|
||||
letter-spacing: 1rpx;
|
||||
}
|
||||
@@ -722,19 +777,27 @@ page {
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
margin: 0;
|
||||
padding: 22rpx 48rpx;
|
||||
min-height: 100rpx;
|
||||
padding: 24rpx 48rpx;
|
||||
border: none;
|
||||
border-radius: 999rpx;
|
||||
border-radius: 16rpx;
|
||||
background: var(--brand-strong);
|
||||
box-shadow: var(--shadow-cta);
|
||||
color: var(--white);
|
||||
font-size: var(--fs-30);
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
letter-spacing: 2rpx;
|
||||
line-height: 1.4;
|
||||
transition: transform 0.15s ease;
|
||||
}
|
||||
|
||||
.booking-popup .popup-footer { gap: 24rpx; }
|
||||
.popup-summary { min-width: 0; }
|
||||
.patient-chip-copy { display: flex; flex-direction: column; }
|
||||
.patient-chip-note { display: block; font-size: var(--fs-24); color: var(--muted); line-height: 1.5; }
|
||||
/* 弹窗表单区铺纸面,与页面同一层底色 */
|
||||
.booking-popup .popup-body { padding-top: 24rpx; background: var(--paper); }
|
||||
.service-fee-note { display: block; padding: 0 0 16rpx; color: var(--muted); font-size: var(--fs-26); line-height: 1.7; }
|
||||
|
||||
.popup-submit-btn::after {
|
||||
border: none;
|
||||
}
|
||||
@@ -835,18 +898,21 @@ page {
|
||||
.popup-btn-primary {
|
||||
background: var(--brand-strong);
|
||||
color: var(--white);
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* ===== 免责协议确认(下单前置勾选) ===== */
|
||||
.agreement-block {
|
||||
padding: 26rpx 0 10rpx;
|
||||
padding: 24rpx 4rpx 0;
|
||||
}
|
||||
|
||||
.agreement-row {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 16rpx;
|
||||
min-height: 88rpx;
|
||||
box-sizing: border-box;
|
||||
padding: 16rpx 0;
|
||||
}
|
||||
|
||||
.agreement-check {
|
||||
@@ -858,8 +924,8 @@ page {
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
margin-top: 2rpx;
|
||||
border: 2rpx solid var(--brand-line);
|
||||
border-radius: 50%;
|
||||
border: 2rpx solid var(--muted);
|
||||
border-radius: 10rpx;
|
||||
background: var(--white);
|
||||
transition: background 0.15s ease, border-color 0.15s ease;
|
||||
}
|
||||
@@ -867,6 +933,27 @@ page {
|
||||
.agreement-check.checked {
|
||||
border-color: var(--brand-strong);
|
||||
background: var(--brand-strong);
|
||||
color: var(--white);
|
||||
font-size: var(--fs-24);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* 勾选标识:与预约页同一枚纯 CSS 对勾,不依赖字符渲染 */
|
||||
.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);
|
||||
}
|
||||
|
||||
.agreement-consent {
|
||||
@@ -939,7 +1026,7 @@ page {
|
||||
margin-bottom: 12rpx;
|
||||
color: var(--ink);
|
||||
font-size: var(--fs-28);
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
@@ -956,7 +1043,7 @@ page {
|
||||
background: var(--brand-soft);
|
||||
color: var(--brand-ink);
|
||||
font-size: var(--fs-24);
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.agreement-item {
|
||||
|
||||
Reference in New Issue
Block a user