feat(userManagement): 新增添加用户弹框组件

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
17792275749
2026-09-11 15:09:35 +08:00
co-authored by Claude Sonnet 4.6
parent 9e8e26cb19
commit dc0a294406
9 changed files with 179 additions and 41 deletions
@@ -24,7 +24,12 @@
<!-- 已录入用户 + 同步按钮 -->
<view class="section-header">
<view class="section-title" bind:longpress="onLongPressSectionTitle">已录入用户({{ memberCount }}/10</view>
<view class="sync-btn" bind:tap="onTapSync">同步用户至设备</view>
<view class="section-addUser" bind:tap="onTapAddUser">
<view>
<image src="/images/userManagement/add.png" mode="aspectFit" />
</view>
<view>添加用户</view>
</view>
</view>
<!-- 同步提示 -->
@@ -104,17 +109,17 @@
<!-- 底部常驻添加用户按钮 -->
<view class="footer">
<block wx:if="{{ self }}">
<view class="btn-primary" bind:tap="onTapAddUser">添加用户(最多10位)</view>
</block>
<block wx:else>
<block wx:if="{{ !isOps }}">
<view class="btn-primary" bind:tap="onTapAddSelf">一键添加本人</view>
</block>
<view class="btn-cancel" bind:tap="onTapAddNew">添加新用户</view>
</block>
<view class="sync-btn" bind:tap="onTapSync">
<view>
<image src="/images/userManagement/reload.png" mode="aspectFit" />
</view>
<view>同步用户至设备</view>
</view>
</view>
<!-- 同步进度弹框 -->
<user-management-sync show="{{ syncShow }}" percent="{{ syncPercent }}" status="{{ syncStatus }}" />
<!-- 添加用户弹框 -->
<user-management-add-user show="{{ addUserShow }}" bind:addself="onAddSelfTap" bind:addother="onAddOtherTap" bind:close="onCloseAddUser" />
</view>