diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index d266031..c8adb20 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -89,7 +89,7 @@ const routes: RouteRecordRaw[] = [ name: 'LedgerView', component: view( () => import('@/views/LedgerView.vue'), - mobilePlaceholder + () => import('@/views-mobile/LedgerMobile.vue') ), props: true, meta: { requiresAuth: true } @@ -99,7 +99,7 @@ const routes: RouteRecordRaw[] = [ name: 'AssetView', component: view( () => import('@/views/AssetView.vue'), - mobilePlaceholder + () => import('@/views-mobile/AssetMobile.vue') ), props: true, meta: { requiresAuth: true } @@ -109,7 +109,7 @@ const routes: RouteRecordRaw[] = [ name: 'BlacklistView', component: view( () => import('@/views/BlacklistView.vue'), - mobilePlaceholder + () => import('@/views-mobile/BlacklistMobile.vue') ), props: true, meta: { requiresAuth: true } diff --git a/frontend/src/views-mobile/AssetMobile.vue b/frontend/src/views-mobile/AssetMobile.vue new file mode 100644 index 0000000..fe52a33 --- /dev/null +++ b/frontend/src/views-mobile/AssetMobile.vue @@ -0,0 +1,230 @@ + + + + + + + + + + + + + + + + + + + {{ a.name }} + + {{ AssetTypeMap[a.type] }} + + + 持有: {{ displayName(a.expand.currentHolder) }} + + + + + 转移 + 删除 + + + + + + + + + + + + + 添加资产 + + + + + + {{ AssetTypeMap[t] }} + + + + + + + + + + 添加 + + + + + + + + + + {{ displayName(m) }} + + + + 确认转移 + + + + + + + diff --git a/frontend/src/views-mobile/BlacklistMobile.vue b/frontend/src/views-mobile/BlacklistMobile.vue new file mode 100644 index 0000000..5449f0b --- /dev/null +++ b/frontend/src/views-mobile/BlacklistMobile.vue @@ -0,0 +1,278 @@ + + + + + + + + + + 添加 + + + + + + + + + {{ g.gameName }} + {{ BlacklistSeverityMap[g.severity] }} + + {{ BlacklistReasonMap[g.reason] }} + {{ g.description }} + + + + + + + + + + 添加 + + + + + + + + + {{ p.playerId }} + {{ BlacklistSeverityMap[p.severity] }} + + + {{ PlayerTagMap[t] }} + {{ p.customTag }} + + {{ p.description }} + 平台: {{ p.platform }} + + + + + + + + + + + + 添加游戏黑名单 + + + + + + {{ BlacklistReasonMap[r] }} + + + + + + + {{ BlacklistSeverityMap[s] }} + + + + + + + 添加 + + + + + + + 添加玩家黑名单 + + + + + + + {{ BlacklistSeverityMap[s] }} + + + + + 标签(多选) + + {{ PlayerTagMap[t] }} + + + + + + 添加 + + + + + + + diff --git a/frontend/src/views-mobile/LedgerMobile.vue b/frontend/src/views-mobile/LedgerMobile.vue new file mode 100644 index 0000000..c11ab2a --- /dev/null +++ b/frontend/src/views-mobile/LedgerMobile.vue @@ -0,0 +1,260 @@ + + + + + + + + + + {{ months.find(m => m.value === currentMonth)?.label || currentMonth }} + + + + + 收入 + {{ summary.totalIncome.toFixed(2) }} + + + + 支出 + {{ summary.totalExpense.toFixed(2) }} + + + + 结余 + + {{ summary.balance.toFixed(2) }} + + + + + + + + + + + + + + + {{ LedgerTypeMap[l.type] }} + + {{ l.description || LedgerCategoryMap[l.category] }} + + {{ LedgerCategoryMap[l.category] }} · {{ formatDate(l.occurredAt) }} + + + + + {{ l.type === 'income' ? '+' : '-' }}{{ l.amount.toFixed(2) }} + + + + + + + + + + + + + + + + + + {{ m.label }} + + + + + + + + 添加账目 + + + + + 支出 + 收入 + + + + + + + + + + + + {{ label }} + + + + + + + + 添加 + + + + + + +
{{ g.description }}
{{ p.description }}