From 3e2bdb482e957b5cf72b3c8f17323c6c637fd968 Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Tue, 26 Aug 2025 15:56:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=94=B6=E6=94=AF=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E6=97=A5=E6=9C=9F=E5=8F=AA=E8=83=BD=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=88=B0=E6=9C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/cashFlowCard/cashFlowCard.vue | 1 - .../custom-nav-bar4/custom-nav-bar4.vue | 92 +++++++++++++++++++ pages/cashFlow/cashFlow.vue | 50 +++++----- 3 files changed, 121 insertions(+), 22 deletions(-) create mode 100644 components/custom-nav-bar4/custom-nav-bar4.vue diff --git a/components/cashFlowCard/cashFlowCard.vue b/components/cashFlowCard/cashFlowCard.vue index 8f4343c..6de829b 100644 --- a/components/cashFlowCard/cashFlowCard.vue +++ b/components/cashFlowCard/cashFlowCard.vue @@ -15,7 +15,6 @@ {{ item.title }} - {{ item.status }} {{ item.time }} diff --git a/components/custom-nav-bar4/custom-nav-bar4.vue b/components/custom-nav-bar4/custom-nav-bar4.vue new file mode 100644 index 0000000..95cf283 --- /dev/null +++ b/components/custom-nav-bar4/custom-nav-bar4.vue @@ -0,0 +1,92 @@ + + + + + diff --git a/pages/cashFlow/cashFlow.vue b/pages/cashFlow/cashFlow.vue index 49f713d..8ea8587 100644 --- a/pages/cashFlow/cashFlow.vue +++ b/pages/cashFlow/cashFlow.vue @@ -6,10 +6,17 @@ class="page" > - + @@ -23,8 +30,8 @@ @@ -81,17 +88,18 @@ import { getNavBarHeight } from '../../utils/system' import uniPopup from '../../uni_modules/uni-popup/components/uni-popup/uni-popup.vue' import CashFlowCard from '../../components/cashFlowCard/cashFlowCard.vue' import { getBalanceLogList } from '../../api/balanceLog' +import CustomNavBar4 from '../../components/custom-nav-bar4/custom-nav-bar4.vue' export default { name: 'CashFlowPage', - components: { uniPopup, CashFlowCard }, + components: { CustomNavBar4, uniPopup, CashFlowCard }, data() { const currentDate = this.getDate() return { getNavBarHeight, expenseType: '全部类型', - expenditures: '1000.00', - Recorded: '1000.00', + expenditures: '', + Recorded: '', date: currentDate, startDate: this.getDate('start'), endDate: this.getDate('end'), @@ -118,7 +126,6 @@ export default { const date = new Date() let year = date.getFullYear() let month = date.getMonth() + 1 - let day = date.getDate() if (type === 'start') { year = year - 10 @@ -127,8 +134,7 @@ export default { return new Date().toISOString().split('T')[0] } month = month > 9 ? month : '0' + month - day = day > 9 ? day : '0' + day - return `${year}-${month}-${day}` + return `${year}-${month}` }, // 打开弹窗 openPopup() { @@ -157,8 +163,8 @@ export default { const endTime = now.toISOString().slice(0, 19).replace('T', ' ') const params = { - beginCreateTime: this.date + ' 00:00:01', - endCreateTime: endTime, + beginCreateTime: this.date + '-01 00:00:01', + endCreateTime: this.date + '-31 00:00:01', } console.log('查询参数:', { @@ -220,7 +226,7 @@ export default { title: this.getTitleByBstType(log.bstType), status: this.getStatusByBstType(log.bstType), time: time, - orderNumber: log.id, + orderNumber: log.bstId, amount: log.amount, bstType: log.bstType, // 保留原始类型用于过滤 } @@ -253,7 +259,7 @@ export default { // 根据业务类型获取状态 getStatusByBstType(bstType) { const statusMap = { - WITHDRAW: '审核中', + WITHDRAW: '', ORDER: '', } return statusMap[bstType] || '' @@ -291,9 +297,11 @@ export default { } .header { + z-index: 999; //background: #13c622; position: fixed; top: 0; + width: 100%; display: flex; flex-direction: column; padding-left: 40rpx; @@ -301,12 +309,12 @@ export default { .all-type { position: relative; display: flex; - width: 138px; - height: 40px; + width: 276rpx; + height: 65rpx; &-img { - width: 100%; - height: 100%; + width: 276rpx; + height: 65rpx; display: flex; text { @@ -314,9 +322,9 @@ export default { top: 0; left: 0; width: 100%; - height: 40px; + height: 65rpx; color: #ffffff; - line-height: 40px; + line-height: 65rpx; //border: red 1px solid; align-items: center; justify-content: center; @@ -326,9 +334,9 @@ export default { } .cash-flow { - height: 84rpx; display: flex; align-items: center; + //border: red 1px solid; .date { display: flex; @@ -337,7 +345,7 @@ export default { image { width: 19px; - height: 11px; + height: 25rpx; } }