feat(春节活动页面): 修复提现转账不了的问题

This commit is contained in:
hzj 2026-02-11 17:50:01 +08:00
parent 9aabbf1398
commit 343001179f
4 changed files with 15 additions and 9 deletions

View File

@ -12,9 +12,9 @@ export const withdrawableAmount = async (activityId) => {
}
// 查询提现记录
export const withdrawRecords = async () => {
export const withdrawRecords = async (activityId) => {
try {
const response = await get(`/activity/lottery/withdraw/records`)
const response = await get(`/activity/lottery/withdraw/records?activityId=${activityId}`)
return response
} catch (error) {
console.error('Failed to fetch get my withdraw records:', error)

View File

@ -1013,7 +1013,7 @@ const searchPayee = () => {
//
const goToWithdraw = () => {
router.push({ path: '/cash-out', query: { activityId: '2005571533988298753' } })
router.push({ path: '/cash-out', query: { activityId: '2007771533988204877' } })
}
//

View File

@ -460,7 +460,7 @@ const hasKYC = computed(() => {
//
const lookDetails = () => {
router.push('/cash-out-details')
router.push({ path: '/cash-out-details', query: { activityId: activityId } })
}
//

View File

@ -41,8 +41,8 @@
record.status == 0
? 'linear-gradient(248deg, #759cff 5.66%, #3d73ff 42.49%)'
: record.status == 1
? 'linear-gradient(248deg, #75FF98 5.66%, #3DFF54 42.49%)'
: 'linear-gradient(248deg, #FF7578 5.66%, #FF3D40 42.49%)',
? 'linear-gradient(248deg, #75FF98 5.66%, #3DFF54 42.49%)'
: 'linear-gradient(248deg, #FF7578 5.66%, #FF3D40 42.49%)',
}"
>
{{ showStatus(record) }}
@ -54,20 +54,26 @@
</template>
<script setup>
import { useI18n } from 'vue-i18n'
import GeneralHeader from '@/components/GeneralHeader.vue'
import { ref, onMounted } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import { formatUTCCustom } from '@/utils/utcFormat.js'
import { setDocumentDirection } from '@/locales/i18n'
import { useI18n } from 'vue-i18n'
import {
withdrawRecords, //
} from '@/api/lottery'
import GeneralHeader from '@/components/GeneralHeader.vue'
const { t, locale } = useI18n()
const router = useRouter()
const route = useRoute()
//
locale.value && setDocumentDirection(locale.value)
const activityId = route.query.activityId || ''
const records = ref([])
const showStatus = (item) => {
@ -82,7 +88,7 @@ const showStatus = (item) => {
//
const getRecords = async () => {
const resRecords = await withdrawRecords()
const resRecords = await withdrawRecords(activityId)
if (resRecords.status && resRecords.body) {
records.value = resRecords.body.records
} else {