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