diff --git a/admin/dashboard/templates/index.html b/admin/dashboard/templates/index.html index 25057f6..e657f01 100644 --- a/admin/dashboard/templates/index.html +++ b/admin/dashboard/templates/index.html @@ -15,35 +15,37 @@ -
-
- -
-
-
{% raw %}{{ currentUser.data.nickname }}{% endraw %}
-
{% raw %}{{ currentUser.data.wx_id }}{% endraw %}
+ -
- + -
+
- 操作系统: - {% raw %}{{ systemInfo.os }} {{ systemInfo.os_version }}{% endraw %} + 操作系统: + {% raw %}{{ systemInfo.os }} {{ systemInfo.os_version }}{% endraw %}
- Python版本: - {% raw %}{{ systemInfo.python_version }}{% endraw %} + Python版本: + {% raw %}{{ systemInfo.python_version }}{% endraw %}
- 运行时间: - {% raw %}{{ formattedUptime }}{% endraw %} + 运行时间: + {% raw %}{{ formattedUptime }}{% endraw %}
最后更新: {% raw %}{{ systemInfo.timestamp }}{% endraw %}
@@ -634,5 +636,95 @@ color: #909399; margin-top: 10px; } + + /* 用户信息容器样式 */ + .user-info-container { + background-color: #f9f9f9; + border-radius: 4px; + padding: 15px; + height: 100%; + display: flex; + flex-direction: column; + justify-content: center; + } + + .user-info-empty { + text-align: center; + color: #909399; + font-size: 14px; + } + + .user-info-empty i { + font-size: 24px; + margin-bottom: 10px; + } + + .user-info-header { + display: flex; + align-items: center; + } + + .user-avatar { + margin-right: 15px; + } + + .user-avatar img { + width: 60px; + height: 60px; + border-radius: 50%; + border: 2px solid #fff; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); + } + + .user-details { + flex: 1; + } + + .user-nickname { + font-size: 18px; + font-weight: bold; + color: #303133; + margin-bottom: 5px; + } + + .user-wxid { + font-size: 14px; + color: #606266; + } + + /* 系统信息容器样式 */ + .system-info-container { + background-color: #f9f9f9; + border-radius: 4px; + padding: 15px; + height: 100%; + display: flex; + flex-direction: column; + justify-content: center; + } + + .system-info-row { + display: flex; + justify-content: space-between; + margin-bottom: 12px; + line-height: 1.5; + } + + .info-label { + color: #606266; + font-weight: 500; + } + + .info-value { + color: #303133; + text-align: right; + } + + .system-update-time { + text-align: right; + font-size: 12px; + color: #909399; + margin-top: auto; + } {% endblock %} \ No newline at end of file