From 81f27a0d7ce5a08c92c437ecceb480ecb62231d1 Mon Sep 17 00:00:00 2001 From: woody Date: Fri, 13 Jun 2025 13:44:00 +0800 Subject: [PATCH] =?UTF-8?q?feat(bonus):=20=E5=A5=96=E9=87=91=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/bonus.js | 2 +- pages/bonus/index.vue | 8 ++++---- pages/mine/index.vue | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/bonus.js b/config/bonus.js index 06973f1..b95efea 100644 --- a/config/bonus.js +++ b/config/bonus.js @@ -23,4 +23,4 @@ export const realTimeBonus = () => //奖金明细列表 export const queryBonusList = params => - http.post('/bonus/api/bonus/query-bonus-first', { params }) + http.post('/bonus/api/bonus/query-bonus-first', params) diff --git a/pages/bonus/index.vue b/pages/bonus/index.vue index ec5acc3..f6adf77 100644 --- a/pages/bonus/index.vue +++ b/pages/bonus/index.vue @@ -5,7 +5,7 @@ 今日实发合计: - {{ todayTotal }}{{ realIncomeTotal }} @@ -98,7 +98,7 @@ import { queryBonusTotal, queryBonusList } from '@/config/bonus' export default { data() { return { - todayTotal: 0, + realIncomeTotal: 0, startDate: '', endDate: '', showStartDatePicker: false, @@ -131,7 +131,7 @@ export default { setDefaultDateRange() { const end = new Date() const start = new Date() - start.setDate(end.getDate() - 7) // 默认查询最近7天 + start.setDate(end.getDate() - 15) // 默认查询最近7天 this.startDate = this.formatDate(start) this.endDate = this.formatDate(end) this.startDateValue = Number(start) @@ -180,7 +180,7 @@ export default { }, getBonusTotal() { queryBonusTotal().then(res => { - this.todayTotal = res.data.todayTotal + this.realIncomeTotal = res.rows[0]?.realIncomeTotal || '0.00' }) }, async fetchBonusData() { diff --git a/pages/mine/index.vue b/pages/mine/index.vue index 07b825f..fd57620 100644 --- a/pages/mine/index.vue +++ b/pages/mine/index.vue @@ -38,7 +38,7 @@ 荣誉奖衔 {{ - userInfo.pkMaxAwardsVal || '-' + userInfo.pkMaxAwardsVal || userInfo.pkAwardsVal }}