fix(addMember): 员工tab未查询到信息时隐藏底部按钮

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
17792275749
2026-06-11 14:01:55 +08:00
co-authored by Claude Opus 4.7
parent e5871af764
commit cb626c7c88
+7 -5
View File
@@ -189,11 +189,13 @@
</scroll-view>
</view>
<!-- 底部双按钮 -->
<view class="actions">
<view class="btn-cancel" bind:tap="onCancel">取消</view>
<view class="btn-primary" bind:tap="onSubmit">保存用户信息</view>
</view>
<!-- 底部双按钮:家庭用户始终展示,员工仅查询到信息后展示 -->
<block wx:if="{{ userType === 'family' || (userType === 'employee' && employeeQueried && !employeeNotFound) }}">
<view class="actions">
<view class="btn-cancel" bind:tap="onCancel">取消</view>
<view class="btn-primary" bind:tap="onSubmit">保存用户信息</view>
</view>
</block>
<!-- 选择已有用户抽屉 -->
<select-member-drawer show="{{ showSelectDrawer }}" bind:close="onSelectMemberClose" bind:select="onSelectMember">