feat: 对接可用收入数据

This commit is contained in:
hzj 2025-10-31 20:36:23 +08:00
parent cb8bee31e4
commit 972264b755
2 changed files with 12 additions and 2 deletions

View File

@ -85,7 +85,9 @@
"
@click="gotoIncome"
>
<span style="font-weight: 600; color: #1f2937"> Available income:$0 </span>
<span style="font-weight: 600; color: #1f2937">
Available income:${{ salaryInfo.currentSalary }}
</span>
<img src="../assets/icon/arrow.png" alt="" style="display: block; width: 20px" />
</div>
</div>

View File

@ -80,7 +80,9 @@
"
@click="gotoIncome"
>
<span style="font-weight: 600; color: #1f2937"> Available income: $1000 </span>
<span style="font-weight: 600; color: #1f2937">
Available income: ${{ salaryInfo.currentSalary }}
</span>
<img src="../../assets/icon/arrow.png" alt="" style="display: block; width: 20px" />
</div>
</div>
@ -674,6 +676,7 @@ import { isInApp } from '@/utils/appBridge.js'
import maskLayer from '@/components/MaskLayer.vue'
import { clearSelectedPayee } from '@/utils/payeeStore.js'
import historySalary from '@/components/historySalary.vue'
import { usePageInitializationWithConfig } from '@/utils/pageConfig.js'
import { getBdMemberBillList, getBdHistory, getBdHistoryMore } from '@/api/bdCenter.js'
import { getBdLeaderHistory, getBdLeaderHistoryMore } from '@/api/bdLeaderCenter'
@ -830,6 +833,11 @@ const apiGetBdLeaderHistory = async () => {
}
}
const { salaryInfo } = usePageInitializationWithConfig('BD_LEADER_CENTER', {
needsTeamInfo: true,
onDataLoaded: () => {},
})
//
const initData = () => {
apiGetBdMemberBillList() //BD