101 lines
3.2 KiB
Plaintext
101 lines
3.2 KiB
Plaintext
|
|
<!-- 用户中心页面 -->
|
|||
|
|
<view class="user-container">
|
|||
|
|
<!-- 用户信息卡片 -->
|
|||
|
|
<view class="user-card">
|
|||
|
|
<view class="avatar-section">
|
|||
|
|
<user-avatar
|
|||
|
|
src="{{userInfo.avatarUrl}}"
|
|||
|
|
size="large"
|
|||
|
|
shape="circle"
|
|||
|
|
showStatus="{{true}}"
|
|||
|
|
status="{{userStatus}}"
|
|||
|
|
/>
|
|||
|
|
<view class="user-info">
|
|||
|
|
<text class="nickname">{{userInfo.nickName}}</text>
|
|||
|
|
<text class="user-id">ID: {{userId}}</text>
|
|||
|
|
<text class="status-text">{{statusText}}</text>
|
|||
|
|
</view>
|
|||
|
|
</view>
|
|||
|
|
|
|||
|
|
<view class="user-stats">
|
|||
|
|
<view class="stat-item">
|
|||
|
|
<text class="stat-number">{{taskStats.total}}</text>
|
|||
|
|
<text class="stat-label">总任务</text>
|
|||
|
|
</view>
|
|||
|
|
<view class="stat-item">
|
|||
|
|
<text class="stat-number">{{taskStats.completed}}</text>
|
|||
|
|
<text class="stat-label">已完成</text>
|
|||
|
|
</view>
|
|||
|
|
<view class="stat-item">
|
|||
|
|
<text class="stat-number">{{taskStats.processing}}</text>
|
|||
|
|
<text class="stat-label">处理中</text>
|
|||
|
|
</view>
|
|||
|
|
</view>
|
|||
|
|
</view>
|
|||
|
|
|
|||
|
|
<!-- 功能菜单 -->
|
|||
|
|
<view class="menu-section">
|
|||
|
|
<view class="menu-title">功能设置</view>
|
|||
|
|
|
|||
|
|
<view class="menu-list">
|
|||
|
|
<view class="menu-item" bindtap="showTaskHistory">
|
|||
|
|
<image class="menu-icon" src="/assets/icons/history.png"></image>
|
|||
|
|
<text class="menu-text">任务历史</text>
|
|||
|
|
<text class="menu-badge">{{taskStats.total}}</text>
|
|||
|
|
<text class="menu-arrow">›</text>
|
|||
|
|
</view>
|
|||
|
|
|
|||
|
|
<view class="menu-item" bindtap="showSettings">
|
|||
|
|
<image class="menu-icon" src="/assets/icons/settings.png"></image>
|
|||
|
|
<text class="menu-text">设置</text>
|
|||
|
|
<text class="menu-arrow">›</text>
|
|||
|
|
</view>
|
|||
|
|
|
|||
|
|
<view class="menu-item" bindtap="showAbout">
|
|||
|
|
<image class="menu-icon" src="/assets/icons/about.png"></image>
|
|||
|
|
<text class="menu-text">关于</text>
|
|||
|
|
<text class="menu-arrow">›</text>
|
|||
|
|
</view>
|
|||
|
|
|
|||
|
|
<view class="menu-item" bindtap="showHelp">
|
|||
|
|
<image class="menu-icon" src="/assets/icons/help.png"></image>
|
|||
|
|
<text class="menu-text">帮助</text>
|
|||
|
|
<text class="menu-arrow">›</text>
|
|||
|
|
</view>
|
|||
|
|
</view>
|
|||
|
|
</view>
|
|||
|
|
|
|||
|
|
<!-- 系统信息 -->
|
|||
|
|
<view class="system-info">
|
|||
|
|
<view class="info-item">
|
|||
|
|
<text class="info-label">版本号:</text>
|
|||
|
|
<text class="info-value">{{appVersion}}</text>
|
|||
|
|
</view>
|
|||
|
|
<view class="info-item">
|
|||
|
|
<text class="info-label">设备型号:</text>
|
|||
|
|
<text class="info-value">{{deviceInfo.model}}</text>
|
|||
|
|
</view>
|
|||
|
|
<view class="info-item">
|
|||
|
|
<text class="info-label">系统版本:</text>
|
|||
|
|
<text class="info-value">{{deviceInfo.system}}</text>
|
|||
|
|
</view>
|
|||
|
|
</view>
|
|||
|
|
|
|||
|
|
<!-- 操作按钮 -->
|
|||
|
|
<view class="action-buttons">
|
|||
|
|
<button class="action-btn primary" bindtap="refreshData">
|
|||
|
|
<image src="/assets/icons/refresh.png"></image>
|
|||
|
|
刷新数据
|
|||
|
|
</button>
|
|||
|
|
|
|||
|
|
<button class="action-btn secondary" bindtap="clearCache">
|
|||
|
|
<image src="/assets/icons/clear.png"></image>
|
|||
|
|
清除缓存
|
|||
|
|
</button>
|
|||
|
|
|
|||
|
|
<button class="action-btn danger" bindtap="logout">
|
|||
|
|
<image src="/assets/icons/logout.png"></image>
|
|||
|
|
退出登录
|
|||
|
|
</button>
|
|||
|
|
</view>
|
|||
|
|
</view>
|