style(order): 预约下单页兜底与项目切换入口强化
初始化拆出 loadPageContent,协议、医院列表与登录状态失败各自降级,不再挡整页; 陪诊项目「更换」改为品牌橙胶囊并改名「更换服务」,箭头同步换色; 就诊人胶囊补同名提示,导航栏统一为浅色纸面。
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -64,6 +66,7 @@ Page({
|
||||
},
|
||||
|
||||
onShow() {
|
||||
restoreLightNavigation()
|
||||
// 从新增/编辑就诊人页返回时刷新档案,首次进入由 initializePage 加载。
|
||||
if (this.pageReady && getApp().globalData.user?._id) this.loadProfiles()
|
||||
},
|
||||
@@ -81,6 +84,9 @@ Page({
|
||||
disclaimerLoading: false,
|
||||
disclaimerError: !disclaimer
|
||||
})
|
||||
}).catch((err) => {
|
||||
console.error('免责协议加载失败', err)
|
||||
this.setData({ disclaimerLoading: false, disclaimerError: true })
|
||||
})
|
||||
},
|
||||
|
||||
@@ -116,6 +122,17 @@ Page({
|
||||
async initializePage() {
|
||||
this.pageReady = false
|
||||
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()
|
||||
@@ -142,9 +159,16 @@ Page({
|
||||
// 列表为空时组件内的「其他医院」入口仍可手填,不会阻断下单
|
||||
app.loadHospitals().then(() => {
|
||||
this.refreshHospitalOptions()
|
||||
}).catch((err) => {
|
||||
console.error('医院列表加载失败', err)
|
||||
})
|
||||
await app.waitForAuth()
|
||||
if (app.globalData.user?._id) this.loadProfiles()
|
||||
// 登录失败不应隐藏已加载的预约表单,提交时仍会经过登录守卫。
|
||||
try {
|
||||
await app.waitForAuth()
|
||||
if (app.globalData.user?._id) this.loadProfiles()
|
||||
} catch (err) {
|
||||
console.error('预约页面登录状态加载失败', err)
|
||||
}
|
||||
},
|
||||
|
||||
retryLoad() {
|
||||
@@ -247,13 +271,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) {
|
||||
|
||||
@@ -4,5 +4,7 @@
|
||||
"t-loading": "tdesign-miniprogram/loading/loading",
|
||||
"hospital-select": "/components/hospital-select/index"
|
||||
},
|
||||
"navigationBarTitleText": "立即预约"
|
||||
"navigationBarTitleText": "立即预约",
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarBackgroundColor": "#FAF8F5"
|
||||
}
|
||||
+50
-31
@@ -1,19 +1,17 @@
|
||||
<!--pages/escort/itemorder.wxml-->
|
||||
<view class="page-bg">
|
||||
<view class="container" wx:if="{{service.id}}">
|
||||
<!-- 页名已在导航栏(「立即预约」),页内不再重复一遍大标题;
|
||||
只留页面级记号 + 一句导语,与 itemlist 页首同一套语言 -->
|
||||
<view class="page-lead">
|
||||
<view class="page-accent"></view>
|
||||
<text class="page-lead-text">选择陪诊项目,填写信息后即可提交预约</text>
|
||||
</view>
|
||||
|
||||
<view class="container" wx:if="{{!pageLoading && !pageError && service.id}}">
|
||||
<!-- 四组信息按填写顺序组织;不改变预约、协议与支付逻辑。 -->
|
||||
<view class="booking-form">
|
||||
<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="service-picker-row">
|
||||
<text class="order-label">陪诊项目</text>
|
||||
<view class="service-picker {{submitting ? 'is-disabled' : ''}}">
|
||||
<view class="order-service-info" bindtap="onToggleServicePanel">
|
||||
<view class="order-service-info" bindtap="onToggleServicePanel" aria-role="button" aria-label="切换陪诊项目" aria-expanded="{{servicePanelOpen}}">
|
||||
<view class="order-service-mark">
|
||||
<view class="assist-icon {{serviceIconClass}}"></view>
|
||||
</view>
|
||||
@@ -21,8 +19,11 @@
|
||||
<text class="order-service-title">{{service.title}}</text>
|
||||
<text class="order-service-price">¥{{service.price}}/次</text>
|
||||
</view>
|
||||
<view class="service-picker-arrow {{servicePanelOpen ? 'is-open' : ''}}">
|
||||
<t-icon name="chevron-down" size="40rpx" color="#9B4508" />
|
||||
<view class="service-switch">
|
||||
<text>更换服务</text>
|
||||
<view class="service-picker-arrow {{servicePanelOpen ? 'is-open' : ''}}">
|
||||
<t-icon name="chevron-down" size="28rpx" color="#9B4508" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -45,15 +46,25 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<text class="service-fee-note">费用仅含人工服务费,不含就医、药品及快递费用。</text>
|
||||
</view>
|
||||
|
||||
<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>
|
||||
<view class="order-row column patient-select-row">
|
||||
<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>
|
||||
data-id="{{item._id}}" bindtap="onSelectProfile" aria-role="radio" aria-checked="{{selectedProfileId === item._id}}">
|
||||
<view wx:if="{{selectedProfileId === item._id}}" class="selection-check"></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" />
|
||||
@@ -67,17 +78,17 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 就诊人姓名/电话只读,与所选档案严格一致 -->
|
||||
<view class="order-row">
|
||||
<text class="order-label">就诊人姓名</text>
|
||||
<text class="order-value {{patientName ? '' : 'placeholder'}}">{{patientName || '请先选择就诊人'}}</text>
|
||||
</view>
|
||||
|
||||
<view class="order-row">
|
||||
<text class="order-label">联系电话</text>
|
||||
<text class="order-value {{patientPhone ? '' : 'placeholder'}}">{{patientPhone || '请先选择就诊人'}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<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">
|
||||
@@ -94,7 +105,6 @@
|
||||
options="{{hospitalOptions}}"
|
||||
placeholder="请选择就诊医院"
|
||||
disabled="{{submitting}}"
|
||||
scroll-anchor-offset="{{200}}"
|
||||
bindchange="onHospitalChange"
|
||||
/>
|
||||
|
||||
@@ -130,7 +140,14 @@
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<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>
|
||||
@@ -138,17 +155,17 @@
|
||||
<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" />
|
||||
<view class="order-row column remark-row">
|
||||
<textarea class="order-textarea" aria-label="补充信息(选填)" 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>
|
||||
@@ -162,10 +179,12 @@
|
||||
<view class="bottom-placeholder"></view>
|
||||
|
||||
<view class="bottom-bar">
|
||||
<view class="bottom-price">
|
||||
<text class="bottom-price-label">合计</text>
|
||||
<text class="price-sym">¥</text>
|
||||
<text class="bottom-price-value">{{totalPrice}}</text>
|
||||
<view class="bottom-summary">
|
||||
<text class="bottom-price-label">服务费用</text>
|
||||
<view class="bottom-price">
|
||||
<text class="price-sym">¥</text>
|
||||
<text class="bottom-price-value">{{totalPrice}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<button class="submit-btn" bindtap="submitOrder" disabled="{{submitting}}" loading="{{submitting}}">{{submitting ? '提交中' : '提交预约'}}</button>
|
||||
</view>
|
||||
|
||||
+151
-81
@@ -2,7 +2,6 @@
|
||||
|
||||
/* pages/escort/itemorder.wxss */
|
||||
page {
|
||||
--shadow-bar: 0 -2rpx 8rpx rgba(63, 43, 25, 0.07);
|
||||
background: var(--paper);
|
||||
}
|
||||
|
||||
@@ -12,51 +11,79 @@ page {
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 0 32rpx calc(40rpx + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
/* 页首:页面级短横 + 一句导语。
|
||||
大标题已删——导航栏写着「立即预约」,页内再写一遍是同一屏两遍标题;
|
||||
导语沿用 itemlist 的 .page-lead 口径(32rpx/700/--ink),
|
||||
四页由此共用一套页首语言 */
|
||||
.page-lead {
|
||||
margin-top: 32rpx;
|
||||
}
|
||||
|
||||
.page-accent {
|
||||
width: 64rpx;
|
||||
height: 8rpx;
|
||||
border-radius: 4rpx;
|
||||
background: var(--brand-strong);
|
||||
}
|
||||
|
||||
.page-lead-text {
|
||||
display: block;
|
||||
margin-top: 22rpx;
|
||||
color: var(--ink);
|
||||
font-size: var(--fs-32);
|
||||
font-weight: 700;
|
||||
letter-spacing: 1rpx;
|
||||
line-height: 1.5;
|
||||
padding: 0 32rpx;
|
||||
}
|
||||
|
||||
.booking-form {
|
||||
margin-top: 32rpx;
|
||||
padding: 0 28rpx;
|
||||
padding-top: 8rpx;
|
||||
}
|
||||
|
||||
.form-section {
|
||||
margin-top: 24rpx;
|
||||
padding: 28rpx 24rpx 8rpx;
|
||||
border: 2rpx solid var(--line);
|
||||
border-radius: 28rpx;
|
||||
background: var(--white);
|
||||
box-shadow: var(--shadow-card);
|
||||
}
|
||||
|
||||
.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: 24rpx 0;
|
||||
border-bottom: 2rpx solid var(--line);
|
||||
padding: 4rpx 0 12rpx;
|
||||
}
|
||||
|
||||
.service-picker {
|
||||
display: block;
|
||||
margin-top: 16rpx;
|
||||
}
|
||||
|
||||
.service-picker.is-disabled {
|
||||
@@ -66,10 +93,7 @@ page {
|
||||
.order-service-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 20rpx 24rpx;
|
||||
border: 2rpx solid var(--brand-line);
|
||||
border-radius: 20rpx;
|
||||
background: var(--brand-soft);
|
||||
padding: 8rpx 0;
|
||||
}
|
||||
|
||||
.order-service-mark {
|
||||
@@ -87,46 +111,63 @@ page {
|
||||
height: 56rpx;
|
||||
}
|
||||
|
||||
/* 项目名称与价格同一行,价格靠右,右侧留出更大间距 */
|
||||
/* 名称与价格上下分层,长服务名也能完整显示。 */
|
||||
.order-service-text {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
margin: 0 56rpx 0 12rpx;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 8rpx;
|
||||
margin: 0 16rpx;
|
||||
}
|
||||
|
||||
.order-service-title {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: var(--ink);
|
||||
font-size: var(--fs-32);
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
line-height: 1.4;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.order-service-price {
|
||||
flex-shrink: 0;
|
||||
margin-left: 16rpx;
|
||||
color: var(--brand-ink);
|
||||
font-size: var(--fs-32);
|
||||
font-weight: 700;
|
||||
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: 56rpx;
|
||||
height: 56rpx;
|
||||
border: 2rpx solid var(--brand-line);
|
||||
border-radius: 50%;
|
||||
background: var(--white);
|
||||
width: 36rpx;
|
||||
height: 48rpx;
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
@@ -134,13 +175,13 @@ page {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
/* 展开面板:浅橙衬底 + 浅橙描边,与「就诊医院」下拉同款 */
|
||||
/* 选项保持 108rpx 行高,与 JS 的可视高度计算一致。 */
|
||||
.service-panel {
|
||||
margin: 12rpx 0 24rpx;
|
||||
padding: 0 20rpx 8rpx;
|
||||
border: 2rpx solid var(--brand-line);
|
||||
border: 2rpx solid var(--line);
|
||||
border-radius: 20rpx;
|
||||
background: var(--brand-soft);
|
||||
background: var(--paper);
|
||||
}
|
||||
|
||||
.service-options {
|
||||
@@ -150,6 +191,8 @@ page {
|
||||
.service-option {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
box-sizing: border-box;
|
||||
height: 108rpx;
|
||||
padding: 16rpx 0;
|
||||
border-bottom: 2rpx solid var(--sep);
|
||||
}
|
||||
@@ -184,7 +227,7 @@ page {
|
||||
overflow: hidden;
|
||||
color: var(--ink);
|
||||
font-size: var(--fs-30);
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
line-height: 1.4;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
@@ -199,7 +242,7 @@ page {
|
||||
margin-left: 16rpx;
|
||||
color: var(--brand-ink);
|
||||
font-size: var(--fs-26);
|
||||
font-weight: 700;
|
||||
font-weight: 500;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
@@ -221,11 +264,13 @@ page {
|
||||
font-size: var(--fs-30);
|
||||
}
|
||||
|
||||
/* 行间分隔:点分线(2rpx 才在真机可见,1rpx 会碎成像素噪点) */
|
||||
/* 字段统一以细线分隔;只读信息和选择控件不叠加卡片。 */
|
||||
.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);
|
||||
}
|
||||
@@ -245,6 +290,7 @@ page {
|
||||
改因:本页同行里「陪诊项目卡」「就诊人可选胶囊」都是浅橙底,
|
||||
标签再用浅橙底就没有「哪个能点」的分界;标签是纯说明,不该长得像控件 */
|
||||
.order-label {
|
||||
line-height: 1.6;
|
||||
flex-shrink: 0;
|
||||
color: var(--muted);
|
||||
font-size: var(--fs-30);
|
||||
@@ -258,8 +304,10 @@ page {
|
||||
margin-left: 24rpx;
|
||||
color: var(--ink);
|
||||
font-size: var(--fs-30);
|
||||
font-weight: 700;
|
||||
font-weight: 500;
|
||||
text-align: right;
|
||||
line-height: 1.6;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.input-placeholder,
|
||||
@@ -273,14 +321,16 @@ page {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
margin-left: 24rpx;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.picker-value {
|
||||
display: block;
|
||||
color: var(--ink);
|
||||
font-size: var(--fs-30);
|
||||
font-weight: 700;
|
||||
font-weight: 500;
|
||||
text-align: right;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* picker 取值 + 下拉箭头:右对齐成一列,与医院选择行的箭头对齐 */
|
||||
@@ -303,11 +353,11 @@ page {
|
||||
.order-textarea {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 160rpx;
|
||||
height: 136rpx;
|
||||
margin-top: 16rpx;
|
||||
padding: 20rpx;
|
||||
border: 2rpx solid var(--line);
|
||||
border-radius: 12rpx;
|
||||
border-radius: 16rpx;
|
||||
background: var(--paper);
|
||||
color: var(--ink);
|
||||
font-size: var(--fs-30);
|
||||
@@ -321,6 +371,11 @@ page {
|
||||
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;
|
||||
@@ -342,12 +397,14 @@ 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;
|
||||
@@ -368,7 +425,7 @@ page {
|
||||
.patient-chip-name {
|
||||
color: var(--ink-2);
|
||||
font-size: var(--fs-28);
|
||||
font-weight: 700;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.patient-chip.active .patient-chip-name,
|
||||
@@ -406,11 +463,11 @@ page {
|
||||
margin-right: 8rpx;
|
||||
color: var(--brand-ink);
|
||||
font-size: var(--fs-26);
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.bottom-placeholder {
|
||||
height: 200rpx;
|
||||
height: calc(164rpx + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
.bottom-bar {
|
||||
@@ -427,7 +484,11 @@ page {
|
||||
padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
|
||||
border-top: 2rpx solid var(--line);
|
||||
background: var(--white);
|
||||
box-shadow: var(--shadow-bar);
|
||||
gap: 24rpx;
|
||||
}
|
||||
|
||||
.bottom-summary {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.bottom-price {
|
||||
@@ -436,7 +497,8 @@ page {
|
||||
}
|
||||
|
||||
.bottom-price-label {
|
||||
margin-right: 8rpx;
|
||||
display: block;
|
||||
margin-bottom: 4rpx;
|
||||
color: var(--muted);
|
||||
font-size: var(--fs-26);
|
||||
}
|
||||
@@ -460,14 +522,14 @@ 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;
|
||||
@@ -622,12 +684,17 @@ page {
|
||||
.popup-title {
|
||||
color: var(--ink);
|
||||
font-size: var(--fs-32);
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.popup-close {
|
||||
padding: 8rpx;
|
||||
margin: -8rpx;
|
||||
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 {
|
||||
@@ -672,18 +739,21 @@ page {
|
||||
.popup-btn-primary {
|
||||
background: var(--brand-strong);
|
||||
color: var(--white);
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* ===== 免责协议确认(下单前置勾选) ===== */
|
||||
.agreement-block {
|
||||
padding: 26rpx 0 30rpx;
|
||||
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 {
|
||||
@@ -695,8 +765,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;
|
||||
}
|
||||
@@ -771,7 +841,7 @@ page {
|
||||
margin-bottom: 12rpx;
|
||||
color: var(--ink);
|
||||
font-size: var(--fs-28);
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
@@ -788,7 +858,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