修改了页面样式。

This commit is contained in:
lik
2026-11-03 16:15:41 +08:00
parent f78025e935
commit 82ed5c31a7
30 changed files with 3791 additions and 2989 deletions
+18 -35
View File
@@ -50,43 +50,26 @@
<t-icon name="chevron-right" size="28rpx" color="#FFFFFF" />
</view>
<!-- 未完成预约预览:每条一行,给出日期 / 就诊人 / 医院 / 服务项目,最多 3 条。
原先只给「您有 N 个未完成预约」一个数字,用户无法判断是哪一场、给谁、去哪儿,
仍要再点进预约记录;直接给出最近三条可少一次跳转。
<!-- 未完成预约预览:不设卡头(无「未完成预约」标题、无数量、无「查看全部」),
每条预约单独一张卡,卡内给出日期 / 就诊人 / 医院 / 服务项目,最多 3 条。
不把全部未完成预约铺在首屏:首屏优先保住主 CTA 与服务入口,
第 4 条起交给卡头「查看全部」,避免订单多的用户把首页压成清单页。
数据按预约时间正序取最近三条;无未完成预约时整卡不渲染,新用户首屏不受影响 -->
<view class="pending-card" wx:if="{{ pendingRecords.length > 0 }}">
<view class="pending-head">
<text class="pending-title">未完成预约</text>
<text class="pending-count">{{ pendingCount }}</text>
<view class="pending-link" bindtap="goToRecords">
<text class="pending-link-text">查看全部</text>
<view class="pending-link-arrow">
<t-icon name="chevron-right" size="24rpx" color="#6F655C" />
</view>
</view>
第 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-dot">·</text>
<text class="pending-patient">{{ item.patientName }}</text>
<text class="pending-dot">·</text>
<text class="pending-hospital">{{ item.hospitalName }}</text>
<text class="pending-dot">·</text>
<text class="pending-service">{{ item.serviceName }}</text>
</view>
<view class="pending-arrow">
<t-icon name="chevron-right" size="26rpx" color="#6F655C" />
</view>
<block wx:for="{{ pendingRecords }}" wx:key="id">
<view class="pending-sep" wx:if="{{ index > 0 }}"></view>
<view class="pending-item" data-id="{{ item.id }}" bindtap="goToRecordDetail">
<!-- 一条预约压成一行:日期 · 就诊人 · 医院 · 服务项目。
行内不换行,医院名过长时只省略医院,日期、就诊人和项目始终可见 -->
<view class="pending-line">
<text class="pending-when">{{ item.whenText }}</text>
<text class="pending-dot">·</text>
<text class="pending-patient">{{ item.patientName }}</text>
<text class="pending-dot">·</text>
<text class="pending-hospital">{{ item.hospitalName }}</text>
<text class="pending-dot">·</text>
<text class="pending-service">{{ item.serviceName }}</text>
</view>
<view class="pending-arrow">
<t-icon name="chevron-right" size="26rpx" color="#6F655C" />
</view>
</view>
</block>
</view>
</view>