-
+
+
+
-
-
{{ record.name }}
+
+
+ {{ record.userInfo?.userNickname }}11111111111111111111111111111111111111111111
+
- ID:{{ record.id }}
+ ID:{{ record.userInfo?.account }}
+
{{ t('plus_coins', { amount: record.amount }) }}
+
- 21/10/2025 17:56
+ {{ record.timeText }}
-
-
{{ record.type }}
-
-${{ record.amount }}
-
-
- {{ record.date }}
+
+
{{ record.typeText }}
+
+ {{ record.timeText }}
+
+
{{ record.amountText }}
@@ -120,7 +142,7 @@ import { useI18n } from 'vue-i18n'
import GeneralHeader from '@/components/GeneralHeader.vue'
import { ref, onMounted } from 'vue'
import { setDocumentDirection } from '@/locales/i18n'
-import { apiGetCashOutRecords } from '@/api/wallet'
+import { apiGetWithdrawRecords } from '@/api/wallet'
const { t, locale } = useI18n()
@@ -128,60 +150,7 @@ const { t, locale } = useI18n()
locale.value && setDocumentDirection(locale.value)
// 记录数据
-const Records = ref([
- {
- id: 1,
- type: 'cashOut',
- amount: 10,
- date: '21/10/2025 17:56',
- status: 'Under review',
- },
- {
- id: 2,
- type: 'cashOut',
- amount: 10,
- date: '21/10/2025 17:56',
- status: 'Approved',
- },
- {
- id: 3,
- type: 'cashOut',
- amount: 10,
- date: '21/10/2025 17:56',
- status: 'Rejection',
- },
- {
- id: 7,
- type: 'Transfer',
- avatar: '',
- name: 'asdfasdfasdfasdsfasfasfasd',
- id: '1234567890',
- addStatus: '1',
- amount: '10000',
- date: '21/10/2025 17:56',
- },
- {
- id: 4,
- type: 'Exchange Coins',
- addStatus: '0',
- amount: '10',
- date: '21/10/2025 17:56',
- },
- {
- id: 5,
- type: 'BD income',
- addStatus: '1',
- amount: '10',
- date: '21/10/2025 17:56',
- },
- {
- id: 6,
- type: 'BD Leader income',
- addStatus: '1',
- amount: '10',
- date: '21/10/2025 17:56',
- },
-])
+const Records = ref([])
// 获取状态文本翻译
const getStatusText = (status) => {
@@ -205,10 +174,10 @@ const defaultAvatarUrl = (e) => {
// 获取提现记录
const getCashOutRecords = async () => {
- const resCashOutRecords = await apiGetCashOutRecords()
+ const resCashOutRecords = await apiGetWithdrawRecords()
console.log('已邀请列表:', resCashOutRecords)
if (resCashOutRecords.status && resCashOutRecords.body) {
- // invitedUserList.value = resCashOutRecords.body
+ Records.value = resCashOutRecords.body
}
}