58 lines
2.1 KiB
Plaintext
58 lines
2.1 KiB
Plaintext
<!--pages/profile/index/index.wxml-->
|
||
<view class="container">
|
||
<view class="profile-header" bindtap="handleHeaderTap">
|
||
<view class="avatar">
|
||
<image wx:if="{{isLoggedIn && userInfo.avatarUrl}}" src="{{userInfo.avatarUrl}}" class="avatar-img" />
|
||
<t-icon wx:else name="user" size="80rpx" color="#fff" />
|
||
</view>
|
||
<view class="user-info">
|
||
<view class="username">{{isLoggedIn ? userInfo.nickName : '未登录'}}</view>
|
||
<view class="user-role">{{isLoggedIn ? '已登录' : '点击登录'}}</view>
|
||
</view>
|
||
<t-icon name="chevron-right" size="32rpx" color="rgba(255,255,255,0.8)" />
|
||
</view>
|
||
|
||
<view class="menu-section">
|
||
<t-cell-group>
|
||
<t-cell title="消息通知" arrow hover bindtap="goToNotificationSettings">
|
||
<t-icon slot="left-icon" name="notification" size="40rpx" />
|
||
<view slot="note">
|
||
<t-tag wx:if="{{isSubscribed}}" theme="success" size="small">已开启</t-tag>
|
||
<t-tag wx:else theme="default" size="small">未开启</t-tag>
|
||
</view>
|
||
</t-cell>
|
||
<t-cell title="预警设置" arrow hover bindtap="goToWarningSettings">
|
||
<t-icon slot="left-icon" name="time" size="40rpx" />
|
||
</t-cell>
|
||
<t-cell title="单位管理" arrow hover bindtap="goToUnitManage">
|
||
<t-icon slot="left-icon" name="building" size="40rpx" />
|
||
</t-cell>
|
||
<t-cell title="数据导出" arrow hover bindtap="exportData">
|
||
<t-icon slot="left-icon" name="download" size="40rpx" />
|
||
</t-cell>
|
||
</t-cell-group>
|
||
</view>
|
||
|
||
<view class="menu-section">
|
||
<t-cell-group>
|
||
<t-cell title="关于我们" arrow hover bindtap="goToAbout">
|
||
<t-icon slot="left-icon" name="info-circle" size="40rpx" />
|
||
</t-cell>
|
||
<t-cell title="帮助中心" arrow hover bindtap="goToHelp">
|
||
<t-icon slot="left-icon" name="help-circle" size="40rpx" />
|
||
</t-cell>
|
||
</t-cell-group>
|
||
</view>
|
||
|
||
<view class="menu-section" wx:if="{{isLoggedIn}}">
|
||
<t-button theme="default" size="large" block bindtap="handleLogout">
|
||
退出登录
|
||
</t-button>
|
||
</view>
|
||
|
||
<view class="version-info">
|
||
<text>版本号:v1.0.0</text>
|
||
</view>
|
||
</view>
|
||
|