Browse Source

fix(本地化): 修复翻译键名和格式化时间显示问题

- 将 `sgGold` 的翻译键从 `clientCount.market.sgGold` 更正为 `clientCount.market.sgCmGold`
- 在钱包详情中将 `createTime` 格式化为 `YYYY-MM-DD HH:mm:ss`
- 将交易状态标签的翻译键从 `common.normal` 更正为 `common_list.normal`
- 添加注释说明强制刷新文件哈希以解决部署加载问题
jiangcheng/feature-20260306102603-钱包体系
zhangrenyuan 1 month ago
parent
commit
064453cd6f
  1. 1
      src/views/recharge/gold/coinRechargeDetail.vue
  2. 8
      src/views/usergold/gold/clientCountWallet.vue

1
src/views/recharge/gold/coinRechargeDetail.vue

@ -1,4 +1,5 @@
<script setup>
// - Hash
import { onMounted, ref, watch } from 'vue'
import { ElMessage } from 'element-plus'
import moment from 'moment'

8
src/views/usergold/gold/clientCountWallet.vue

@ -197,7 +197,7 @@ const cellClick = function (row, column) {
hkGold: t('clientCount.market.hkGold'),
sgHcGold: t('clientCount.market.sgHcGold'),
myGold: t('clientCount.market.myGold'),
sgGold: t('clientCount.market.sgGold'),
sgGold: t('clientCount.market.sgCmGold'),
caGold: t('clientCount.market.caGold'),
thHsGold: t('clientCount.market.thHsGold'),
thHaGold: t('clientCount.market.thHaGold'),
@ -252,7 +252,7 @@ const getWalletDetail = async () => {
if (result.code === 200) {
walletDetailList.value = result.data.list.map(item => ({
time: item.createTime,
time: moment(item.createTime).format('YYYY-MM-DD HH:mm:ss'),
type: item.type === 0 ? t('common.recharge') : t('common.consume'),
amount: item.type === 1 ? -Math.abs(item.amount) : Math.abs(item.amount),
desc: item.description,
@ -635,7 +635,7 @@ const format3 = (num) => {
<span>{{ (scope.row.myGold || 0) }}</span>
</template>
</el-table-column>
<el-table-column prop="sgGold" :label="$t('clientCount.market.sgGold')" sortable="custom" min-width="120">
<el-table-column prop="sgGold" :label="$t('clientCount.market.sgCmGold')" sortable="custom" min-width="120">
<template #default="scope">
<span>{{ (scope.row.sgGold || 0) }}</span>
</template>
@ -749,7 +749,7 @@ const format3 = (num) => {
<el-table-column prop="status" :label="$t('clientCount.transactionStatus')" align="center" width="220" fixed="right">
<template #default="scope">
<el-tag :type="scope.row.status === 1 ? 'success' : scope.row.status === 2 ? 'danger' : 'info'" :effect="scope.row.status === 1 ? 'light' : 'plain'">
{{ scope.row.status === 1 ? $t('common.normal') : scope.row.status === 2 ? $t('common_list.refunded') : $t('clientCount.exceptionData') }}
{{ scope.row.status === 1 ? t('common_list.normal') : scope.row.status === 2 ? t('common_list.refunded') : t('clientCount.exceptionData') }}
</el-tag>
</template>
</el-table-column>

Loading…
Cancel
Save