style(home): 预约卡片补充医院并允许长内容换行

首行集中日期、就诊人、服务与状态,医院单独成行;服务、医院与姓名超长时
换行展示而不是截断,详情箭头独立包裹。同步更新首页 UI 测试断言与缺省文案。
This commit is contained in:
lik
2026-11-16 19:39:57 +08:00
parent 435bff381f
commit b0a0df288a
4 changed files with 84 additions and 31 deletions
+7 -8
View File
@@ -34,21 +34,20 @@
</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-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-top">
<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>
<view class="pending-meta">
<text class="pending-service">{{item.serviceName}}</text>
<text class="pending-patient">就诊人:{{item.patientName}}</text>
</view>
<text class="pending-hospital">{{item.hospitalName}}</text>
</view>
<t-icon name="chevron-right" size="30rpx" color="#6F655C" />
<view class="pending-arrow" aria-hidden="true"><t-icon name="chevron-right" size="30rpx" color="#6F655C" /></view>
</view>
</view>