用户菜单新增个人中心

This commit is contained in:
mtvpls
2026-04-12 18:05:37 +08:00
parent f4d7565d67
commit 3cb54df62b
6 changed files with 573 additions and 359 deletions
+6 -4
View File
@@ -88,6 +88,8 @@ export default function WatchRoomPage() {
});
};
const getAvatarText = (name?: string) => (name?.trim().charAt(0).toUpperCase() || '用');
// 加载房间列表
const loadRooms = async (showLoading = false) => {
if (!isConnected) return;
@@ -477,8 +479,8 @@ export default function WatchRoomPage() {
className="flex items-center justify-between bg-white dark:bg-gray-800 rounded-lg p-3"
>
<div className="flex items-center gap-3">
<div className="w-10 h-10 rounded-full bg-gradient-to-r from-blue-400 to-purple-500 flex items-center justify-center text-white font-bold">
{member.name.charAt(0).toUpperCase()}
<div className="w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center text-white font-bold">
{getAvatarText(member.name)}
</div>
<span className="font-medium text-gray-900 dark:text-gray-100">
{member.name}
@@ -673,8 +675,8 @@ export default function WatchRoomPage() {
className="flex items-center justify-between bg-white dark:bg-gray-800 rounded-lg p-3"
>
<div className="flex items-center gap-3">
<div className="w-10 h-10 rounded-full bg-gradient-to-r from-green-400 to-teal-500 flex items-center justify-center text-white font-bold">
{member.name.charAt(0).toUpperCase()}
<div className="w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center text-white font-bold">
{getAvatarText(member.name)}
</div>
<span className="font-medium text-gray-900 dark:text-gray-100">
{member.name}