diff --git a/frontend/src/components-mobile/game/AddGameSheetMobile.vue b/frontend/src/components-mobile/game/AddGameSheetMobile.vue new file mode 100644 index 0000000..a1f5275 --- /dev/null +++ b/frontend/src/components-mobile/game/AddGameSheetMobile.vue @@ -0,0 +1,228 @@ + + + + + + + + 添加游戏 + + + + + + + + 不指定 + {{ p }} + + + + + + + + + 封面图 + + + + + + + + + + 上传封面 + + + + + + + + 添加游戏 + + + + + + + diff --git a/frontend/src/components-mobile/game/GameDetailSheetMobile.vue b/frontend/src/components-mobile/game/GameDetailSheetMobile.vue new file mode 100644 index 0000000..339c4e5 --- /dev/null +++ b/frontend/src/components-mobile/game/GameDetailSheetMobile.vue @@ -0,0 +1,553 @@ + + + + + + + + + + 编辑游戏 + + + + + + + 不指定 + {{ p }} + + + + + + + 取消 + 保存 + + + + + + + + + + {{ game.name }} + + + {{ alias }} + + + + {{ game.platform }} + 🔥 {{ game.popularCount }} 人游玩 + + + + {{ tag }} + + + + + {{ favorited ? '已收藏' : '收藏' }} + 编辑 + 删除 + + + + 快速组队 + + + + + 评论 ({{ comments.length }}) + + + + + 评分 + + + + + + 发表 + + + + + 加载中... + + + 暂无评论,快来抢沙发 + + + + + + + {{ c.expand?.author?.name || c.expand?.author?.username || '匿名' }} + + + + + {{ c.content }} + {{ formatDate(c.created) }} + + + + + + + + + + diff --git a/frontend/src/components-mobile/game/ImportGamesSheetMobile.vue b/frontend/src/components-mobile/game/ImportGamesSheetMobile.vue new file mode 100644 index 0000000..aae6f9f --- /dev/null +++ b/frontend/src/components-mobile/game/ImportGamesSheetMobile.vue @@ -0,0 +1,152 @@ + + + + + + + + 批量导入游戏 + + + 每行输入一个游戏,支持以下格式: + 游戏名 或 + 游戏名 | 平台 或 + 游戏名 | 平台 | 标签1,标签2 + + + + + + + + 成功 {{ result.success }} + 失败 {{ result.failed }} + + + + + 开始导入 + + + + + + + diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index ca15060..d266031 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -129,7 +129,7 @@ const routes: RouteRecordRaw[] = [ name: 'GamesLibrary', component: view( () => import('@/views/GamesLibrary.vue'), - mobilePlaceholder + () => import('@/views-mobile/GamesLibraryMobile.vue') ) }, { diff --git a/frontend/src/views-mobile/GamesLibraryMobile.vue b/frontend/src/views-mobile/GamesLibraryMobile.vue new file mode 100644 index 0000000..7b82b09 --- /dev/null +++ b/frontend/src/views-mobile/GamesLibraryMobile.vue @@ -0,0 +1,430 @@ + + + + + + + + + + + 先创建或加入群组,再管理游戏库 + + + + + + + + + {{ currentGroupName }} + + + + + + + + 全部 + {{ p }} + + + + + + 添加游戏 + + + 导入 + + + + + + + 加载中... + + + + + + 添加第一个游戏 + + + + + + + + + + + + + + {{ game.name }} + {{ game.platform }} + + {{ tag }} + + + + + + + + + + + + + + + + + + + + + + +
游戏名
游戏名 | 平台
游戏名 | 平台 | 标签1,标签2
先创建或加入群组,再管理游戏库