修改了样式

This commit is contained in:
lik
2026-10-18 22:14:49 +08:00
parent ed36a0db0a
commit 031227710d
14 changed files with 384 additions and 356 deletions
+19 -24
View File
@@ -8,44 +8,39 @@
</view>
<!-- 就诊人列表:一卡一人(白面 + 2rpx 发丝边 + 28rpx 圆角 + 中性紧阴影),
与预约记录卡同一配方,卡间留出 24rpx 纸面。
卡面走「身份牌」结构,与订单详情页的就诊人卡同一套语言:
首字牌定位「是谁」→ 姓名 + 性别签 → 一行竖线分隔的元信息(空值整项剔除)→ 备注省略行。
每条主体可点进编辑,点击暗示由按下态承担(hover-class="profile-main-hover");
删除动作另起一行、与主体隔一条发丝线,走 --muted -->
删除收在卡片右上角、走 --muted 图标(catchtap 不冒泡,不触发整卡进编辑) -->
<view class="profile-list" wx:if="{{profiles.length > 0}}">
<view
class="profile-card"
wx:for="{{profiles}}"
wx:key="_id"
>
<!-- 删除:右上角安静图标(catchtap 不冒泡,点它不会触发整卡进编辑);
确认弹窗仍兜底防误触。不再单设动作行——孤零零一个删除撑不满一行,
只会把身份牌拉高、显得头轻脚重 -->
<view class="profile-delete" catchtap="onDelete" data-id="{{item._id}}">
<t-icon name="delete" size="32rpx" color="#6F655C" />
</view>
<view class="profile-main" data-id="{{item._id}}" bindtap="onEdit" hover-class="profile-main-hover">
<view class="profile-mark">
<text wx:if="{{item.initial}}" class="profile-mark-text">{{item.initial}}</text>
<t-icon wx:else name="user" size="44rpx" color="#9B4508" />
</view>
<view class="profile-info">
<view class="profile-top">
<text class="profile-name">{{item.name}}</text>
<text class="sex-tag" wx:if="{{item.sexText}}">{{item.sexText}}</text>
</view>
<view class="info-row">
<text class="info-label">出生年月</text>
<text class="info-value">{{item.birth || '未填写'}}</text>
<view class="meta-list" wx:if="{{item.metaList.length > 0}}">
<block wx:for="{{item.metaList}}" wx:for-item="meta" wx:key="*this">
<view class="meta-sep" wx:if="{{index > 0}}"></view>
<text class="meta-item">{{meta}}</text>
</block>
</view>
<view class="info-row">
<text class="info-label">联系电话</text>
<text class="info-value">{{item.mobile || '未填写'}}</text>
</view>
<view class="info-row">
<text class="info-label">证件号</text>
<text class="info-value">{{item.idnumberText}}</text>
</view>
<view class="info-row" wx:if="{{item.remark}}">
<text class="info-label">健康备注</text>
<text class="info-value">{{item.remark}}</text>
</view>
</view>
</view>
<view class="profile-actions">
<view class="profile-action" data-id="{{item._id}}" bindtap="onDelete">
<t-icon name="delete" class="profile-action-icon" size="32rpx" />
<text class="profile-action-text">删除</text>
<text class="profile-remark" wx:if="{{item.remark}}">健康备注 {{item.remark}}</text>
</view>
</view>
</view>