feat(春节活动页面): 修复提现转账不了的问题
This commit is contained in:
parent
9aabbf1398
commit
343001179f
@ -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)
|
||||||
|
|||||||
@ -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' } })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 转账金币选项
|
// 转账金币选项
|
||||||
|
|||||||
@ -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 } })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查看历史提现信息
|
// 查看历史提现信息
|
||||||
|
|||||||
@ -41,8 +41,8 @@
|
|||||||
record.status == 0
|
record.status == 0
|
||||||
? 'linear-gradient(248deg, #759cff 5.66%, #3d73ff 42.49%)'
|
? 'linear-gradient(248deg, #759cff 5.66%, #3d73ff 42.49%)'
|
||||||
: record.status == 1
|
: record.status == 1
|
||||||
? 'linear-gradient(248deg, #75FF98 5.66%, #3DFF54 42.49%)'
|
? 'linear-gradient(248deg, #75FF98 5.66%, #3DFF54 42.49%)'
|
||||||
: 'linear-gradient(248deg, #FF7578 5.66%, #FF3D40 42.49%)',
|
: 'linear-gradient(248deg, #FF7578 5.66%, #FF3D40 42.49%)',
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
{{ showStatus(record) }}
|
{{ showStatus(record) }}
|
||||||
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user