feat: 接口参数调整
This commit is contained in:
parent
6bfcc4855d
commit
3a898cf9fa
@ -908,12 +908,7 @@ const initializePayee = () => {
|
|||||||
const fetchBankBalance = async () => {
|
const fetchBankBalance = async () => {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
|
|
||||||
let salaryType =
|
let salaryType = ['BD_LEADER', 'BD'].includes(identityStore.identity) ? 'BD_SALARY' : ''
|
||||||
identityStore.identity == 'BD_LEADER'
|
|
||||||
? 'BD_LEADER_SALARY'
|
|
||||||
: identityStore.identity == 'BD'
|
|
||||||
? 'BD_SALARY'
|
|
||||||
: ''
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await apiGetBankBalance(salaryType)
|
const response = await apiGetBankBalance(salaryType)
|
||||||
@ -1015,12 +1010,7 @@ const transfer = async () => {
|
|||||||
const transferData = {
|
const transferData = {
|
||||||
amount: selectedCoinData.price,
|
amount: selectedCoinData.price,
|
||||||
acceptUserId: selectedPayee.id,
|
acceptUserId: selectedPayee.id,
|
||||||
salaryType:
|
salaryType: ['BD_LEADER', 'BD'].includes(identityStore.identity) ? 'BD_SALARY' : '',
|
||||||
identityStore.identity == 'BD_LEADER'
|
|
||||||
? 'BD_LEADER_SALARY'
|
|
||||||
: identityStore.identity == 'BD'
|
|
||||||
? 'BD_SALARY'
|
|
||||||
: '',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -1057,12 +1047,7 @@ const handleExchange = async () => {
|
|||||||
// 调用接口进行兑换
|
// 调用接口进行兑换
|
||||||
const response = await apiExchange({
|
const response = await apiExchange({
|
||||||
amount: selectedOption.cash,
|
amount: selectedOption.cash,
|
||||||
salaryType:
|
salaryType: ['BD_LEADER', 'BD'].includes(identityStore.identity) ? 'BD_SALARY' : '',
|
||||||
identityStore.identity == 'BD_LEADER'
|
|
||||||
? 'BD_LEADER_SALARY'
|
|
||||||
: identityStore.identity == 'BD'
|
|
||||||
? 'BD_SALARY'
|
|
||||||
: '',
|
|
||||||
})
|
})
|
||||||
|
|
||||||
if (response.status === true || response.errorCode === 0) {
|
if (response.status === true || response.errorCode === 0) {
|
||||||
|
|||||||
@ -866,7 +866,7 @@ const apiGetBdLeaderHistory = async () => {
|
|||||||
|
|
||||||
// 查询可用余额
|
// 查询可用余额
|
||||||
const getBankBalance = async () => {
|
const getBankBalance = async () => {
|
||||||
const res = await apiGetBankBalance('BD_LEADER_SALARY')
|
const res = await apiGetBankBalance('BD_SALARY')
|
||||||
if (res.status && res.body) {
|
if (res.status && res.body) {
|
||||||
salaryInfo.value = res.body || {}
|
salaryInfo.value = res.body || {}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user