所有页面-创建中英双语对照-优化翻译文档结构

This commit is contained in:
2026-03-17 11:42:16 +08:00
parent 4a7397ce04
commit c790f74905
110 changed files with 1729 additions and 421 deletions

View File

@@ -2,7 +2,7 @@
<div class="art-card h-105 p-4 box-border mb-5 max-sm:mb-4">
<div class="art-card-header">
<div class="title">
<h4>月度玩家充值汇总</h4>
<h4>{{ $t('console.activeUser.title') }}</h4>
</div>
</div>
<ArtBarChart

View File

@@ -2,10 +2,10 @@
<ElRow :gutter="20" class="flex">
<ElCol :sm="12" :md="6" :lg="6">
<div class="art-card relative flex flex-col justify-center h-35 px-5 mb-5 max-sm:mb-4">
<span class="text-g-700 text-sm">玩家注册</span>
<span class="text-g-700 text-sm">{{ $t('console.card.playerRegister') }}</span>
<ArtCountTo class="text-[26px] font-medium mt-2" :target="statData.player_count" :duration="1300" />
<div class="flex-c mt-1">
<span class="text-xs text-g-600">较上周</span>
<span class="text-xs text-g-600">{{ $t('console.card.vsLastWeek') }}</span>
<span
class="ml-1 text-xs font-semibold"
:class="changeClass(statData.player_count_change)"
@@ -22,7 +22,7 @@
</ElCol>
<ElCol :sm="12" :md="6" :lg="6">
<div class="art-card relative flex flex-col justify-center h-35 px-5 mb-5 max-sm:mb-4">
<span class="text-g-700 text-sm">玩家充值</span>
<span class="text-g-700 text-sm">{{ $t('console.card.playerCharge') }}</span>
<ArtCountTo
class="text-[26px] font-medium mt-2"
:target="statData.charge_amount"
@@ -30,7 +30,7 @@
:decimals="2"
/>
<div class="flex-c mt-1">
<span class="text-xs text-g-600">较上周</span>
<span class="text-xs text-g-600">{{ $t('console.card.vsLastWeek') }}</span>
<span
class="ml-1 text-xs font-semibold"
:class="changeClass(statData.charge_amount_change)"
@@ -47,7 +47,7 @@
</ElCol>
<ElCol :sm="12" :md="6" :lg="6">
<div class="art-card relative flex flex-col justify-center h-35 px-5 mb-5 max-sm:mb-4">
<span class="text-g-700 text-sm">玩家提现</span>
<span class="text-g-700 text-sm">{{ $t('console.card.playerWithdraw') }}</span>
<ArtCountTo
class="text-[26px] font-medium mt-2"
:target="statData.withdraw_amount"
@@ -55,7 +55,7 @@
:decimals="2"
/>
<div class="flex-c mt-1">
<span class="text-xs text-g-600">较上周</span>
<span class="text-xs text-g-600">{{ $t('console.card.vsLastWeek') }}</span>
<span
class="ml-1 text-xs font-semibold"
:class="changeClass(statData.withdraw_amount_change)"
@@ -72,14 +72,14 @@
</ElCol>
<ElCol :sm="12" :md="6" :lg="6">
<div class="art-card relative flex flex-col justify-center h-35 px-5 mb-5 max-sm:mb-4">
<span class="text-g-700 text-sm">玩家游玩次数</span>
<span class="text-g-700 text-sm">{{ $t('console.card.playerPlayCount') }}</span>
<ArtCountTo
class="text-[26px] font-medium mt-2"
:target="statData.play_count"
:duration="1300"
/>
<div class="flex-c mt-1">
<span class="text-xs text-g-600">较上周</span>
<span class="text-xs text-g-600">{{ $t('console.card.vsLastWeek') }}</span>
<span
class="ml-1 text-xs font-semibold"
:class="changeClass(statData.play_count_change)"

View File

@@ -2,8 +2,8 @@
<div class="art-card h-128 p-5 mb-5 max-sm:mb-4">
<div class="art-card-header">
<div class="title">
<h4>动态</h4>
<p>新增<span class="text-success">+6</span></p>
<h4>{{ $t('console.dynamic.title') }}</h4>
<p>{{ $t('console.dynamic.newCount') }}<span class="text-success">+6</span></p>
</div>
</div>

View File

@@ -2,8 +2,8 @@
<div class="art-card p-5 overflow-hidden mb-5 max-sm:mb-4">
<div class="art-card-header mb-4">
<div class="title">
<h4>新增玩家</h4>
<p class="text-g-600 text-sm mt-1">最新50条新增玩家记录</p>
<h4>{{ $t('console.newPlayer.title') }}</h4>
<p class="text-g-600 text-sm mt-1">{{ $t('console.newPlayer.subtitle') }}</p>
</div>
</div>
<ArtTable
@@ -16,13 +16,13 @@
:header-cell-style="{ background: 'transparent' }"
>
<template #default>
<ElTableColumn label="玩家" prop="name" min-width="120" align="center" />
<ElTableColumn label="余额" prop="coin" min-width="120" align="center">
<ElTableColumn :label="$t('console.newPlayer.player')" prop="name" min-width="120" align="center" />
<ElTableColumn :label="$t('console.newPlayer.balance')" prop="coin" min-width="120" align="center">
<template #default="scope">
{{ formatCoin(scope.row.coin) }}
</template>
</ElTableColumn>
<ElTableColumn label="抽奖券" prop="total_ticket_count" min-width="100" align="center" />
<ElTableColumn :label="$t('console.newPlayer.ticket')" prop="total_ticket_count" min-width="100" align="center" />
</template>
</ArtTable>
</div>

View File

@@ -2,13 +2,13 @@
<div class="art-card p-5 h-128 overflow-hidden mb-5 max-sm:mb-4">
<div class="art-card-header">
<div class="title">
<h4>新用户</h4>
<p>这个月增长<span class="text-success">+20%</span></p>
<h4>{{ $t('console.newUser.title') }}</h4>
<p>{{ $t('console.newUser.growth') }}<span class="text-success">+20%</span></p>
</div>
<ElRadioGroup v-model="radio2">
<ElRadioButton value="本月" label="本月"></ElRadioButton>
<ElRadioButton value="上月" label="上月"></ElRadioButton>
<ElRadioButton value="今年" label="今年"></ElRadioButton>
<ElRadioButton label="thisMonth">{{ $t('console.newUser.thisMonth') }}</ElRadioButton>
<ElRadioButton label="lastMonth">{{ $t('console.newUser.lastMonth') }}</ElRadioButton>
<ElRadioButton label="thisYear">{{ $t('console.newUser.thisYear') }}</ElRadioButton>
</ElRadioGroup>
</div>
<ArtTable
@@ -21,7 +21,7 @@
:header-cell-style="{ background: 'transparent' }"
>
<template #default>
<ElTableColumn label="头像" prop="avatar" width="150px">
<ElTableColumn :label="$t('console.newUser.avatar')" prop="avatar" width="150px">
<template #default="scope">
<div style="display: flex; align-items: center">
<img class="size-9 rounded-lg" :src="scope.row.avatar" alt="avatar" />
@@ -29,15 +29,15 @@
</div>
</template>
</ElTableColumn>
<ElTableColumn label="地区" prop="province" />
<ElTableColumn label="性别" prop="avatar">
<ElTableColumn :label="$t('console.newUser.region')" prop="province" />
<ElTableColumn :label="$t('console.newUser.gender')" prop="avatar">
<template #default="scope">
<div style="display: flex; align-items: center">
<span style="margin-left: 10px">{{ scope.row.sex === 1 ? '男' : '女' }}</span>
<span style="margin-left: 10px">{{ scope.row.sex === 1 ? $t('console.newUser.male') : $t('console.newUser.female') }}</span>
</div>
</template>
</ElTableColumn>
<ElTableColumn label="进度" width="240">
<ElTableColumn :label="$t('console.newUser.progress')" width="240">
<template #default="scope">
<ElProgress
:percentage="scope.row.pro"
@@ -73,7 +73,7 @@
const ANIMATION_DELAY = 100
const radio2 = ref('本月')
const radio2 = ref('thisMonth')
/**
* 新用户表格数据

View File

@@ -2,7 +2,7 @@
<div class="art-card h-105 p-5 mb-5 max-sm:mb-4">
<div class="art-card-header">
<div class="title">
<h4>近期玩家充值统计</h4>
<h4>{{ $t('console.salesOverview.title') }}</h4>
</div>
</div>
<ArtLineChart

View File

@@ -2,8 +2,8 @@
<div class="art-card h-128 p-5 mb-5 max-sm:mb-4">
<div class="art-card-header">
<div class="title">
<h4>代办事项</h4>
<p>待处理<span class="text-danger">3</span></p>
<h4>{{ $t('console.todo.title') }}</h4>
<p>{{ $t('console.todo.pending') }}<span class="text-danger">3</span></p>
</div>
</div>

View File

@@ -2,8 +2,8 @@
<div class="art-card p-5 overflow-hidden mb-5 max-sm:mb-4">
<div class="art-card-header mb-4">
<div class="title">
<h4>玩家充值记录</h4>
<p class="text-g-600 text-sm mt-1">最新50条充值记录</p>
<h4>{{ $t('console.walletRecord.title') }}</h4>
<p class="text-g-600 text-sm mt-1">{{ $t('console.walletRecord.subtitle') }}</p>
</div>
</div>
<ArtTable
@@ -16,13 +16,13 @@
:header-cell-style="{ background: 'transparent' }"
>
<template #default>
<ElTableColumn label="玩家" prop="player_name" min-width="120" align="center" />
<ElTableColumn label="充值金额" prop="coin" min-width="120" align="center">
<ElTableColumn :label="$t('console.walletRecord.player')" prop="player_name" min-width="120" align="center" />
<ElTableColumn :label="$t('console.walletRecord.chargeAmount')" prop="coin" min-width="120" align="center">
<template #default="scope">
{{ formatCoin(scope.row.coin) }}
</template>
</ElTableColumn>
<ElTableColumn label="充值时间" prop="create_time" min-width="170" align="center" />
<ElTableColumn :label="$t('console.walletRecord.chargeTime')" prop="create_time" min-width="170" align="center" />
</template>
</ArtTable>
</div>