Files
ws_health/xui/wxapp/pages/mine/mine.wxml
2026-05-25 12:34:16 +08:00

41 lines
1.4 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<view class="container">
<view class="header-card" bindtap="onTapProfile">
<image class="avatar" src="{{userInfo.avatar}}" mode="aspectFill"></image>
<text class="user-name">{{userInfo.name}}</text>
</view>
<view class="menu-section" wx:for="{{menuGroups}}" wx:key="groupName" wx:if="{{userInfo.isLoggedIn || item.groupName === '其他'}}">
<view class="menu-list">
<view class="menu-item" wx:for="{{item.items}}" wx:for-item="menuItem" wx:key="name" hover-class="menu-item-hover" bindtap="{{menuItem.bindtap}}">
<t-icon name="{{menuItem.icon}}" class="menu-icon" size="40rpx" />
<text class="menu-text">{{menuItem.name}}</text>
<t-icon name="chevron-right" class="menu-arrow" size="36rpx" />
</view>
</view>
</view>
<view class="login-section" wx:if="{{!userInfo.isLoggedIn}}">
<button class="login-btn" open-type="getPhoneNumber" bindgetphonenumber="handleLogin">
登录
</button>
</view>
<view class="footer-section">
<text class="version">版本号V 0.1.0</text>
<text class="copyright">© 2026 北京奕华盛科技 版权所有</text>
</view>
<comp-profile
id="profileComp"
visible="{{profileVisible}}"
bind:close="onProfileClose"
bind:save="onProfileSave"
/>
<comp-address
id="addressComp"
visible="{{addressVisible}}"
bind:close="onAddressClose"
bind:save="onAddressSave"
/>
</view>