- 页首:itemorder / guide / contact / attendants 删除与导航栏重复的大标题,统一为「短横 + 一句导语」 - 字号:页面主标题 44、区块标题 34、卡内标题 32;卡片圆角 28;容器内距 32(DESIGN.md 新增 §九) - 状态色:utils/order.js 只产出语气档,两页胶囊改 .chip-tone-* 读 --status-* 令牌,删除内联 style 与 JS 色值 - 下单:字段标签去浅橙药丸改裸字,医院选择组件同步;搜索/手填输入框去掉旧绿底 - 文案:清除英文大写小标、粘字箭头与中点串,统一细竖线/留白分隔 - 修复:预约记录空值整行剔除、陪诊师卡片与重试态补按下反馈、三处无限动画补减动效回退 - aichat:消息时间改为距上条满 5 分钟才显示
146 lines
7.7 KiB
Plaintext
146 lines
7.7 KiB
Plaintext
<view class="page-bg">
|
|
<view class="container">
|
|
|
|
<!-- 顶部品牌行:左侧橙底白色品牌 Logo(心形线稿)+ 品牌名 -->
|
|
<view class="topbar">
|
|
<view class="brand">
|
|
<view class="brand-mark">
|
|
<image class="brand-logo" src="/images/home-w.png" mode="aspectFit" />
|
|
</view>
|
|
<text class="brand-name">暖橙陪诊</text>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- ① 头部:大字标题 + 信任行 + 主 CTA + 未完成预约预览(仅有未完成预约时)。
|
|
信任行放在 CTA 正上方:用户决定「约不约」的那一刻最需要可信背书,
|
|
三项都可核对(谁来做 / 熟不熟流程 / 几个人服务),纯展示不点击;
|
|
「异地就医 / 陪同就医 / 就医代办」场景行已由本行替换——场景概括
|
|
由下方「陪诊服务」宫格承担,首屏不再重复一遍场景名 -->
|
|
<view class="hero">
|
|
<view class="hero-title">
|
|
<!-- 不用逗号断句:靠「暖橙强调 + 深墨正文」的色差自然切分两个短句 -->
|
|
<text class="hero-title-accent">专业陪诊</text>
|
|
<text class="hero-title-main">让就医更省心</text>
|
|
</view>
|
|
<!-- 信任行:三项信任背书一行小字,紧贴大标题、放在 CTA 上方。
|
|
主语各异(谁来做 / 熟不熟 / 几个人),三项同档、纯展示不点击;
|
|
不加底色与描边:它就是标题的补充说明,让纸面与下方实心 CTA 保持对比 -->
|
|
<view class="hero-trust-wrap">
|
|
<view class="hero-trust">
|
|
<text class="hero-trust-item">实名认证陪诊师</text>
|
|
<view class="hero-trust-sep"></view>
|
|
<text class="hero-trust-item">熟悉医院流程</text>
|
|
<view class="hero-trust-sep"></view>
|
|
<text class="hero-trust-item">1对1全程陪同</text>
|
|
</view>
|
|
</view>
|
|
<!-- 主行动按钮:通栏胶囊,直达服务列表(下单路径最短化) -->
|
|
<view class="hero-cta" bindtap="goToBooking">
|
|
<text class="hero-cta-text">立即预约</text>
|
|
<t-icon name="chevron-right" size="28rpx" color="#FFFFFF" />
|
|
</view>
|
|
|
|
<!-- 培训考证宣传横幅:紧跟主 CTA,承接陪诊师「培训 → 报名」这条 B 端路径。
|
|
与上方实心 CTA 区分:本块走浅橙面 + 描边(纸面上靠描边托形、去阴影),
|
|
右侧按钮用白底 + 暖橙环,不给首屏增加第二个实心橙色块。
|
|
整块可点,按钮是它的点击暗示;真正报名仍进宣传页再转报名页,不在此处直接开表单 -->
|
|
<view class="hero-promo" bindtap="goToTraining" hover-class="hero-promo-hover">
|
|
<view class="promo-mark">
|
|
<t-icon name="education" size="32rpx" color="#9B4508" />
|
|
</view>
|
|
<view class="promo-body">
|
|
<text class="promo-title">陪诊师培训考证</text>
|
|
<text class="promo-desc">医疗陪诊顾问(高级)证书</text>
|
|
</view>
|
|
<view class="promo-btn">
|
|
<text class="promo-btn-text">了解详情</text>
|
|
<t-icon name="chevron-right" size="24rpx" color="#9B4508" />
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 未完成预约预览:不设卡头(无「未完成预约」标题、无数量、无「查看全部」),
|
|
每条预约单独一张卡,卡内给出日期 / 就诊人 / 医院 / 服务项目,最多 3 条。
|
|
不把全部未完成预约铺在首屏:首屏优先保住主 CTA 与服务入口,
|
|
第 4 条起由「常用功能 · 预约记录」承接,避免订单多的用户把首页压成清单页。
|
|
数据按预约时间正序取最近三条;无未完成预约时整块不渲染,新用户首屏不受影响 -->
|
|
<view class="pending-card" wx:for="{{ pendingRecords }}" wx:key="id" data-id="{{ item.id }}" bindtap="goToRecordDetail">
|
|
<!-- 一条预约压成一行:日期 · 就诊人 · 医院 · 服务项目。
|
|
四项之间用留白切分,不再插中点字符(全站分隔语言统一为留白 / 细竖线);
|
|
行内不换行,医院名过长时只省略医院,日期、就诊人和项目始终可见 -->
|
|
<view class="pending-line">
|
|
<text class="pending-when">{{ item.whenText }}</text>
|
|
<text class="pending-patient">{{ item.patientName }}</text>
|
|
<text class="pending-hospital">{{ item.hospitalName }}</text>
|
|
<text class="pending-service">{{ item.serviceName }}</text>
|
|
</view>
|
|
<view class="pending-arrow">
|
|
<t-icon name="chevron-right" size="26rpx" color="#6F655C" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- ② 陪诊服务:宫格紧贴标题,保证「标题 → 可点服务」路径最短。
|
|
信任背书已上提到首屏 CTA 上方,此处不再另设介绍卡 -->
|
|
<view class="section">
|
|
<view class="section-head">
|
|
<view class="section-bar"></view>
|
|
<text class="section-title">陪诊服务</text>
|
|
</view>
|
|
|
|
<view class="assist-card">
|
|
<view class="assist-grid">
|
|
<view class="assist-item" wx:for="{{ escortServices }}" wx:key="id" data-id="{{ item.id }}" bindtap="goToServiceDetail">
|
|
<!-- 圆润双色调图标:图形由 index.wxss 内嵌 SVG 提供,类名后缀是服务 id。
|
|
浅橙填色收在主体内部,不额外加衬底方块 -->
|
|
<view class="assist-icon {{ item.iconClass }}"></view>
|
|
<text class="assist-name">{{ item.name }}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- ③ 常用功能:双列入口卡(未完成预约预览已上移到首屏主 CTA 下方) -->
|
|
<view class="section">
|
|
<view class="section-head">
|
|
<view class="section-bar"></view>
|
|
<text class="section-title">常用功能</text>
|
|
</view>
|
|
|
|
<view class="quick-list">
|
|
<view class="quick-item {{ item.full ? 'quick-item-full' : '' }}" wx:for="{{ quickEntries }}" wx:key="id" data-item="{{ item }}" bindtap="onQuickEntryTap">
|
|
<!-- 入口统一走暖橙 + 浅橙衬底,不做色相区分;带 full 标记的卡通栏排布 -->
|
|
<view class="quick-icon">
|
|
<t-icon name="{{ item.icon }}" size="34rpx" color="#9B4508" />
|
|
</view>
|
|
<view class="quick-info">
|
|
<text class="quick-name">{{ item.name }}</text>
|
|
<text class="quick-desc">{{ item.desc }}</text>
|
|
</view>
|
|
<!-- 每张卡都补右侧箭头:两列卡不再是"无暗示的整卡可点",
|
|
通栏卡同时填补右半空白 -->
|
|
<view class="quick-arrow">
|
|
<t-icon name="chevron-right" size="28rpx" color="#6F655C" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- ④ 页脚:B 端合作入口(商务合作 / 陪诊师入驻 / 陪诊师考证),
|
|
三条都进「合作与入驻」页,各自用 section 定位到对应卡片。
|
|
该页底部再转「联系我们」——咨询出口只保留一个,避免同一意图两个入口 -->
|
|
<view class="page-footer">
|
|
<view class="footer-links">
|
|
<text class="footer-link" data-section="sec-biz" bindtap="goToBusiness">商务合作</text>
|
|
<view class="footer-sep"></view>
|
|
<text class="footer-link" data-section="sec-join" bindtap="goToBusiness">陪诊师入驻</text>
|
|
<view class="footer-sep"></view>
|
|
<text class="footer-link" data-section="sec-train" bindtap="goToBusiness">陪诊师考证</text>
|
|
</view>
|
|
<text class="footer-note">用心陪好每一步</text>
|
|
</view>
|
|
|
|
<!-- 底部留白 -->
|
|
<view class="footer-space"></view>
|
|
|
|
</view>
|
|
</view> |