feat(主播专用提现页面): 对接提现功能

This commit is contained in:
hzj 2026-03-16 11:52:11 +08:00
parent dd97b7ecf8
commit 3bd622f38c

View File

@ -230,9 +230,9 @@
<!-- 资料 -->
<div style="display: flex; justify-content: space-between; align-items: center">
<!-- 图片数量 -->
<span style="font-weight: 510; font-size: 1em">{{
t('passport_id_card', { current: bankCardInfo.previewUrls.length })
}}</span>
<span style="font-weight: 510; font-size: 1em"
>{{ t('passport_id_card', { current: bankCardInfo.previewUrls.length }) }}:</span
>
<!-- 跳转按钮 -->
<!-- <img
@ -560,17 +560,15 @@ import { useI18n } from 'vue-i18n'
import { setApplyInfo, getApplyInfo } from '@/utils/applyStore.js'
import { ref, onMounted, computed, onUnmounted } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import { useIdentityStore } from '@/stores/identity.js'
import { setDocumentDirection } from '@/locales/i18n'
import {
withdrawableAmount, //
withdrawApply, //
} from '@/api/lottery'
import {
getBankBalance, //
getBankCardList, // 使
getWithdrawInfoList, //
useBankCard, //
withdrawApply, //
} from '@/api/wallet.js'
import GeneralHeader from '@/components/GeneralHeader.vue'
@ -588,6 +586,7 @@ const cashOutTypeShow = ref(false)
const cashOutShow = ref(false)
const cashOutAmount = ref(null)
const identityStore = useIdentityStore()
const maskLayerShow = computed(() => {
return cashOutTipShow.value || cashOutShow.value || cashOutTypeShow.value
@ -602,8 +601,6 @@ const closedPopup = () => {
cashOutTypeShow.value = false
}
const activityId = route.query.activityId || ''
const currentAmount = ref(0) //
const bankCardInfo = ref(null)
@ -618,7 +615,7 @@ const gotoselectBank = () => {
//
const lookDetails = () => {
router.push({ path: '/cash-out-details', query: { activityId: activityId } })
router.push('/cash-out-details')
}
//
@ -641,12 +638,19 @@ const Receive = async () => {
// +
else if (checkStatus.value) {
try {
console.log('当前身份:', identityStore.identity)
let salaryType =
identityStore.identity == 'ADMIN'
? 'ADMIN_SALARY'
: ['BD_LEADER', 'BD'].includes(identityStore.identity)
? 'BD_SALARY'
: 'HOST_SALARY'
const resApply = await withdrawApply({
activityId: activityId,
amount: cashOutAmount.value,
contactNumber: bankCardInfo.value.contactNumber,
cardImages: JSON.stringify(bankCardInfo.value.previewUrls),
description: bankCardInfo.value.otherDescription,
acceptBankCardId: usedBankCard.value.id,
salaryType,
})
if (resApply.status) {
closedPopup()