Files
wxapp_escort/pages/home/index.wxml
T
lik b0a0df288a style(home): 预约卡片补充医院并允许长内容换行
首行集中日期、就诊人、服务与状态,医院单独成行;服务、医院与姓名超长时
换行展示而不是截断,详情箭头独立包裹。同步更新首页 UI 测试断言与缺省文案。
2026-11-16 19:39:57 +08:00

104 lines
5.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<view class="page-bg">
<view class="container">
<view class="topbar" style="{{topbarStyle}}">
<view class="brand" style="{{brandStyle}}">
<image class="brand-logo" src="/images/home-ink.png" mode="aspectFit" />
<text class="brand-name">暖橙陪诊</text>
</view>
</view>
<view class="hero">
<view class="hero-intro">
<text class="hero-eyebrow">专业陪诊 · 就医代办</text>
<view class="hero-title">
<text class="hero-title-main">让就医,</text>
<text class="hero-title-accent">多一份安心。</text>
</view>
<!-- 品牌图形只作装饰,不遮挡正文,不承担操作。 -->
<view class="hero-art" aria-hidden="true">
<view class="hero-orbit"></view>
<view class="hero-arch">
<image class="hero-art-logo" src="/images/home-ink.png" mode="aspectFit" />
</view>
<view class="hero-art-dot"></view>
</view>
</view>
<button class="hero-cta" size="default" bindtap="goToBooking" hover-class="action-hover">
<text>立即预约</text>
<view class="cta-arrow"><t-icon name="chevron-right" size="32rpx" color="#FFFFFF" /></view>
</button>
<!-- 三项简短业务标签,不叠加宣传说明。 -->
<view class="hero-trust">
<view class="trust-item"><view class="trust-check"></view><text>实名认证陪诊师</text></view>
<view class="trust-item"><view class="trust-check"></view><text>熟悉就医流程</text></view>
<view class="trust-item"><view class="trust-check"></view><text>一对一陪同</text></view>
</view>
</view>
<!-- 两行预约摘要:日期、姓名、服务与状态在上,医院在下;长内容自然换行。 -->
<view class="pending-section" wx:if="{{pendingRecords.length}}">
<text class="pending-heading">当前预约</text>
<view class="pending-card" wx:for="{{pendingRecords}}" wx:key="id" data-id="{{item.id}}" bindtap="goToRecordDetail" hover-class="surface-hover" aria-role="button" aria-label="{{item.whenText}},就诊人:{{item.patientName}},{{item.serviceName}},{{item.statusText}},{{item.hospitalName}},查看预约详情">
<view class="pending-content">
<view class="pending-summary">
<text class="pending-when">{{item.whenText}}</text>
<text class="pending-patient">{{item.patientName}}</text>
<text class="pending-service">{{item.serviceName}}</text>
<view class="pending-status chip-tone-{{item.statusTone}}">{{item.statusText}}</view>
</view>
<text class="pending-hospital">{{item.hospitalName}}</text>
</view>
<view class="pending-arrow" aria-hidden="true"><t-icon name="chevron-right" size="30rpx" color="#6F655C" /></view>
</view>
</view>
<view class="section">
<view class="section-head">
<text class="section-title">陪诊服务</text>
</view>
<view class="assist-grid">
<view class="assist-item" wx:for="{{escortServices}}" wx:key="id" data-id="{{item.id}}" bindtap="goToServiceDetail" hover-class="surface-hover" aria-role="button" aria-label="{{item.name}}">
<view class="assist-icon {{item.iconClass}}"></view>
<text class="assist-name">{{item.name}}</text>
</view>
</view>
</view>
<view class="section">
<view class="section-head">
<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" hover-class="surface-hover" aria-role="button" aria-label="{{item.name}}">
<view class="quick-top">
<view class="quick-icon">
<t-icon name="{{item.icon}}" size="38rpx" color="#9B4508" />
</view>
<text class="quick-name">{{item.name}}</text>
</view>
<view class="quick-info" wx:if="{{item.desc}}">
<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>
<!-- 培训与预约分区,保留入口但不打断就医服务主线。 -->
<view class="training-entry" bindtap="goToTraining" hover-class="surface-hover" aria-role="button" aria-label="了解陪诊师培训考证">
<view class="training-mark" aria-hidden="true"><view class="training-mark-line"></view></view>
<text class="training-title">陪诊师培训与考证</text>
<t-icon name="chevron-right" size="36rpx" color="#9B4508" />
</view>
<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>
</view>
<view class="footer-space"></view>
</view>
</view>