feat:余额分红

This commit is contained in:
2025-08-15 21:00:37 +08:00
parent 0399791e8f
commit 1bb5ff3ba4
2 changed files with 21 additions and 2 deletions
+9
View File
@@ -207,4 +207,13 @@ export function getAcctFlowList(data) {
});
}
// 分红统计
export function getBonusStat() {
return request({
url: "/finance/getBonusStatistics",
method: "get",
});
}
@@ -17,7 +17,7 @@
<view v-if="form.category === 'vcoin' || form.category === 'bonus' || form.category === 'expend'">
<view v-if="form.category === 'vcoin' || form.category === 'balance' || form.category === 'expend'">
<view class="info_center_warp">
<view class="info_center_warp-item" v-for="item in source">
<view class="info_center_warp-item-top">{{ headerData[item.key] }}</view>
@@ -61,7 +61,7 @@
<script>
import Header from '@/components/header.vue';
import { getAcctFlow, getAcctMiningStat, getAcctContribution, getAcctFlowList } from '@/api/finance.js';
import { getAcctFlow, getAcctMiningStat, getAcctContribution, getAcctFlowList, getBonusStat } from '@/api/finance.js';
import { getValue, BALANCE_TYPE } from '@/utils/enumUtils.js';
import { formatDate, handleAmount } from '@/utils/index.js';
@@ -116,7 +116,10 @@ export default {
// 分红金额 balance
console.log("分红金额category", category);
if (category === 'balance') {
this.onGetBonusStat();
this.source = [
{
@@ -201,6 +204,13 @@ export default {
formatDate,
handleAmount,
// 分红统计
async onGetBonusStat() {
const resp = await getBonusStat();
console.log("分红统计", resp);
this.headerData = resp.data || {};
},
// 流水挖矿统计
async onGetAcctMiningStat() {
const resp = await getAcctMiningStat();