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 { try {
const response = await get(`/activity/lottery/withdraw/records`) const response = await get(`/activity/lottery/withdraw/records?activityId=${activityId}`)
return response return response
} catch (error) { } catch (error) {
console.error('Failed to fetch get my withdraw records:', error) console.error('Failed to fetch get my withdraw records:', error)

View File

@ -1013,7 +1013,7 @@ const searchPayee = () => {
// //
const goToWithdraw = () => { 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 = () => { const lookDetails = () => {
router.push('/cash-out-details') router.push({ path: '/cash-out-details', query: { activityId: activityId } })
} }
// //

View File

@ -54,20 +54,26 @@
</template> </template>
<script setup> <script setup>
import { useI18n } from 'vue-i18n'
import GeneralHeader from '@/components/GeneralHeader.vue'
import { ref, onMounted } from 'vue' import { ref, onMounted } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import { formatUTCCustom } from '@/utils/utcFormat.js' import { formatUTCCustom } from '@/utils/utcFormat.js'
import { setDocumentDirection } from '@/locales/i18n' import { setDocumentDirection } from '@/locales/i18n'
import { useI18n } from 'vue-i18n'
import { import {
withdrawRecords, // withdrawRecords, //
} from '@/api/lottery' } from '@/api/lottery'
import GeneralHeader from '@/components/GeneralHeader.vue'
const { t, locale } = useI18n() const { t, locale } = useI18n()
const router = useRouter()
const route = useRoute()
// //
locale.value && setDocumentDirection(locale.value) locale.value && setDocumentDirection(locale.value)
const activityId = route.query.activityId || ''
const records = ref([]) const records = ref([])
const showStatus = (item) => { const showStatus = (item) => {
@ -82,7 +88,7 @@ const showStatus = (item) => {
// //
const getRecords = async () => { const getRecords = async () => {
const resRecords = await withdrawRecords() const resRecords = await withdrawRecords(activityId)
if (resRecords.status && resRecords.body) { if (resRecords.status && resRecords.body) {
records.value = resRecords.body.records records.value = resRecords.body.records
} else { } else {