@@ -76,11 +45,16 @@ $userInfo = [
+
+
+ {$userInfo.name}
+
+
-
-
+
-
@@ -127,11 +101,16 @@ $userInfo = [
+
+
+ {$userInfo.name}
+
+
-
-
+
-
@@ -361,11 +340,21 @@ $userInfo = [
#test10 [carousel-item]>* {
background: none !important;
}
+
+ .main-menu__right {
+ display: flex;
+ align-items: center;
+ }
+
+ .username {
+ display: flex;
+ align-items: center;
+ }
diff --git a/app/index/view/user/component/basic.php b/app/index/view/user/component/basic.php
new file mode 100644
index 0000000..01faed3
--- /dev/null
+++ b/app/index/view/user/component/basic.php
@@ -0,0 +1,127 @@
+
- 全部消息 +
- 未读消息 +
- 已读消息 +
- 全部通知 +
- 未读通知 +
- 已读通知 +
+
+
+
+
+
\ No newline at end of file
diff --git a/app/index/view/user/component/messages.php b/app/index/view/user/component/messages.php
new file mode 100644
index 0000000..987a152
--- /dev/null
+++ b/app/index/view/user/component/messages.php
@@ -0,0 +1,310 @@
+个人资料
+ +
+
+
+
+
+
diff --git a/app/index/view/user/component/notifications.php b/app/index/view/user/component/notifications.php
new file mode 100644
index 0000000..0595432
--- /dev/null
+++ b/app/index/view/user/component/notifications.php
@@ -0,0 +1,210 @@
+我的消息
+ +
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/index/view/user/component/password.php b/app/index/view/user/component/password.php
new file mode 100644
index 0000000..03b7170
--- /dev/null
+++ b/app/index/view/user/component/password.php
@@ -0,0 +1,111 @@
+系统通知
+ +
+
+-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/index/view/user/component/security.php b/app/index/view/user/component/security.php
new file mode 100644
index 0000000..f318c71
--- /dev/null
+++ b/app/index/view/user/component/security.php
@@ -0,0 +1,170 @@
+修改密码
+ + +
+
+
+
+
+
diff --git a/app/index/view/user/component/settings.php b/app/index/view/user/component/settings.php
new file mode 100644
index 0000000..39eeacb
--- /dev/null
+++ b/app/index/view/user/component/settings.php
@@ -0,0 +1,109 @@
+安全设置
+ + +
+
+
+
+
+
diff --git a/app/index/view/user/component/sidebar.php b/app/index/view/user/component/sidebar.php
new file mode 100644
index 0000000..278fab0
--- /dev/null
+++ b/app/index/view/user/component/sidebar.php
@@ -0,0 +1,158 @@
+基本设置
+ + +
+
+
+
+
+
\ No newline at end of file
diff --git a/app/index/view/user/profile.php b/app/index/view/user/profile.php
new file mode 100644
index 0000000..b3ac5f1
--- /dev/null
+++ b/app/index/view/user/profile.php
@@ -0,0 +1,120 @@
+{include file="component/head" /}
+{include file="component/header-simple" /}
+
+
+
+
+
+
+
+
+ {$user.name}
+{$user.account}
+
+
+
+
+
+
+
+{include file="component/foot" /}
\ No newline at end of file
diff --git a/public/static/images/avatar.png b/public/static/images/avatar.png
index 218d817..bd9311d 100644
Binary files a/public/static/images/avatar.png and b/public/static/images/avatar.png differ
diff --git a/public/storage/avatar/20250527/1a81a88b847a5cb6af9ecdb1350099bb.png b/public/storage/avatar/20250527/1a81a88b847a5cb6af9ecdb1350099bb.png
new file mode 100644
index 0000000..44eba46
Binary files /dev/null and b/public/storage/avatar/20250527/1a81a88b847a5cb6af9ecdb1350099bb.png differ
diff --git a/runtime/index/temp/745a6917c29d4d1aec94c5bc5dbce0b2.php b/runtime/index/temp/745a6917c29d4d1aec94c5bc5dbce0b2.php
index 963a5c7..b43aead 100644
--- a/runtime/index/temp/745a6917c29d4d1aec94c5bc5dbce0b2.php
+++ b/runtime/index/temp/745a6917c29d4d1aec94c5bc5dbce0b2.php
@@ -1,4 +1,4 @@
-
+
@@ -18,37 +18,43 @@
+ false,
+ 'name' => '',
+ 'avatar' => '/static/images/avatar.png' // 默认头像
+];
+
+// 检查cookie
+$userAccount = cookie('user_account');
+if ($userAccount) {
+ $isLoggedIn = true;
+ $userInfo = [
+ 'is_login' => true,
+ 'name' => cookie('user_name'),
+ 'avatar' => cookie('user_avatar') ? cookie('user_avatar') : '/static/images/avatar.png'
+ ];
+}
+
+// 添加一个隐藏的div来存储登录状态
+$loginStatus = [
+ 'isLoggedIn' => $isLoggedIn,
+ 'userAccount' => $userAccount ?? ''
+];
+?>
+
+
+
+ {include file="user/component/sidebar" /}
+
+
+
+
+
+
+
+
+ {include file="user/component/basic" /}
+
+
+
+
+ {include file="user/component/avatar" /}
+
+
+
+
+ {include file="user/component/password" /}
+
+
+
+
+ {include file="user/component/messages" /}
+
+
+
+
+ {include file="user/component/notifications" /}
+
+
+
+
+ {include file="user/component/settings" /}
+
+
+
+
+ {include file="user/component/security" /}
+
+
+
+
-
@@ -656,6 +913,32 @@
});
}
+ // 加载游戏下载
+ function loadGames() {
+ fetch('/index/index/gameList')
+ .then(response => response.json())
+ .then(result => {
+ if (result.code === 0) {
+ // 渲染分类标签
+ if (result.data.categories) {
+ renderCategoryTabs(result.data.categories, 'gameDownload');
+ }
+ // 渲染游戏列表
+ if (result.data.games && result.data.games.length > 0) {
+ renderGames(result.data.games, 'gameDownloadList');
+ } else {
+ showNoData('gameDownloadList');
+ }
+ } else {
+ showNoData('gameDownloadList');
+ }
+ })
+ .catch(error => {
+ console.error('请求失败:', error);
+ showError('gameDownloadList');
+ });
+ }
+
// 显示无数据提示
function showNoData(containerId) {
document.getElementById(containerId).innerHTML = '
-
@@ -59,27 +65,40 @@
+
@@ -90,7 +109,7 @@
+
+
+
+
-
@@ -102,27 +121,40 @@
+
@@ -328,51 +360,107 @@
#test10 [carousel-item]>* {
background: none !important;
}
+
+ .main-menu__right {
+ display: flex;
+ align-items: center;
+ }
+
+ .username {
+ display: flex;
+ align-items: center;
+ }
+
+
+
+
@@ -469,6 +642,15 @@
+
+
+
+
+
+
+ 免责声明:
+
+
+
+
标签:
@@ -615,6 +797,7 @@
color: #333;
font-size: 16px;
margin-bottom: 30px;
+ border-bottom: 1px solid #eee;
}
.article-content img {
@@ -915,6 +1098,28 @@
.location-item a {
color: #000 !important;
}
+
+ .disclaimers {
+ color: #b1b1b1;
+ width: 80%;
+ margin: 20px auto;
+ margin-bottom: 60px;
+ }
+
+ .disclaimer-title {
+ font-size: 16px;
+ font-weight: 600;
+ margin-bottom: 10px;
+ }
+
+ .disclaimer-content {
+ font-size: 14px;
+ line-height: 1.6;
+ }
+
+ .disclaimer-content p {
+ margin-bottom: 0;
+ }
@@ -536,6 +772,27 @@
+
+
+
+
+
+
+
+ 游戏下载
+
+
+
+
+ 全部
+
+ 更多
+
+
+
+ 暂无数据
';
@@ -718,6 +1001,9 @@
case 'programDownload':
loadCategoryPrograms(selectedCategoryId, 'programDownloadList');
break;
+ case 'gameDownload':
+ loadCategoryGames(selectedCategoryId, 'gameDownloadList');
+ break;
}
});
});
@@ -958,12 +1244,71 @@
});
}
+ // 渲染游戏列表
+ function renderGames(games, containerId) {
+ const container = document.getElementById(containerId);
+ if (!container) return;
+
+ let html = '';
+ if (Array.isArray(games)) {
+ games.forEach(game => {
+ html += createGameHtml(game);
+ });
+ }
+
+ container.innerHTML = html || '暂无数据
';
+ }
+
+ // 创建游戏HTML
+ function createGameHtml(game) {
+ if (!game) return '';
+
+ return `
+
+
+ `;
+ }
+
+ // 加载分类游戏
+ function loadCategoryGames(categoryId, containerId) {
+ fetch('/index/index/gameList')
+ .then(response => response.json())
+ .then(result => {
+ if (result.code === 0) {
+ if (categoryId === 'all') {
+ renderGames(result.data.games, containerId);
+ } else {
+ const filteredGames = result.data.games.filter(game => game.cate == categoryId);
+ renderGames(filteredGames, containerId);
+ }
+ } else {
+ showNoData(containerId);
+ }
+ })
+ .catch(error => {
+ console.error('请求失败:', error);
+ showError(containerId);
+ });
+ }
+
// 页面加载完成后执行
document.addEventListener('DOMContentLoaded', function() {
loadWebArticles();
loadTechArticles();
loadResources();
loadPrograms();
+ loadGames();
});
+
+
+
+
+ ${game.title || '无标题'}
+ ${game.create_time || ''}
+
+
+ ${game.views || 0}
+ ${game.uploader || '未知作者'}
+ 