Files
wxapp_escort/pages/home/index.wxml
T
lik 40d5b63527 style(home): 首页首屏重排与预约卡片精简
品牌行按胶囊按钮位置计算安全区,hero 改为眉题+双行标题+装饰图形;
预约卡片压到两行:日期与状态胶囊一行、服务与就诊人一行,状态复用记录页语气档;
「联系我们」入口并入「联系客服」。
2026-11-16 19:30:35 +08:00

105 lines
5.1 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.timeText}},{{item.serviceName}},{{item.statusText}},查看预约详情">
<view class="pending-content">
<view class="pending-top">
<text class="pending-when">{{item.whenText}}</text>
<view class="pending-status chip-tone-{{item.statusTone}}">{{item.statusText}}</view>
</view>
<view class="pending-meta">
<text class="pending-service">{{item.serviceName}}</text>
<text class="pending-patient">就诊人:{{item.patientName}}</text>
</view>
</view>
<t-icon name="chevron-right" size="30rpx" color="#6F655C" />
</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>