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 {
|
||||
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)
|
||||
|
||||
@ -1013,7 +1013,7 @@ const searchPayee = () => {
|
||||
|
||||
// 前往提现页
|
||||
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 = () => {
|
||||
router.push('/cash-out-details')
|
||||
router.push({ path: '/cash-out-details', query: { activityId: activityId } })
|
||||
}
|
||||
|
||||
// 查看历史提现信息
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user