u
This commit is contained in:
1 parent
eaba6cf17b
commit
1445ed3b6c
19 files changed
+613
-401
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import type { MoneyRecordGroup, MoneyRecordItem, QueryMoneyRecordsResult } from '@/types/money/record'
|
||||
import React, { useEffect, useState } from 'react'
|
||||
import { Text, TouchableOpacity, View } from 'react-native'
|
||||
import { Text, TouchableOpacity, TouchableWithoutFeedback, View } from 'react-native'
|
||||
import { useSafeAreaInsets } from 'react-native-safe-area-context'
|
||||
import { ADatePicker, LucideIcon } from '@/components/common/ao'
|
||||
import { Fab, FabIcon } from '@/components/ui/fab'
|
||||
@@ -277,13 +277,17 @@ export default function Money() {
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
<View
|
||||
className="flex-1"
|
||||
style={{
|
||||
paddingTop: insets.top,
|
||||
}}
|
||||
>
|
||||
<View>
|
||||
<View
|
||||
style={{
|
||||
paddingTop: insets.top,
|
||||
backgroundColor: '#fff',
|
||||
elevation: 3,
|
||||
}}
|
||||
>
|
||||
<View className="flex flex-row justify-between items-center px-3">
|
||||
<TouchableOpacity
|
||||
onPress={() => setShowDatePicker(true)}
|
||||
@@ -300,45 +304,51 @@ export default function Money() {
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
|
||||
<View className="mt-3 border border-gray-200 rounded-lg m-4 p-4 shadow-sm bg-white">
|
||||
<View
|
||||
style={{
|
||||
borderTopLeftRadius: 8,
|
||||
borderTopRightRadius: 8,
|
||||
}}
|
||||
>
|
||||
<View className="mb-4">
|
||||
<Text className="text-gray-500 text-sm">
|
||||
余额
|
||||
{/* <Text className="text-red-500">↓20%</Text> */}
|
||||
<View className="mt-3 m-4 ">
|
||||
|
||||
<View className="flex flex-row gap-4">
|
||||
<View className="flex-1">
|
||||
<Text className="text-gray-500 text-sm">余额</Text>
|
||||
<Text
|
||||
className="text-lg font-semibold mt-0.5"
|
||||
numberOfLines={1}
|
||||
ellipsizeMode="tail"
|
||||
>
|
||||
0.00
|
||||
</Text>
|
||||
<Text className="font-bold text-2xl mt-0.5">22,313.00</Text>
|
||||
</View>
|
||||
|
||||
<View className="flex-row flex gap-8">
|
||||
<View>
|
||||
<Text className="text-gray-500 text-sm">
|
||||
收入
|
||||
{/* <Text className="text-green-500">↑20%</Text> */}
|
||||
</Text>
|
||||
<Text className="text-lg font-semibold mt-0.5">{moneyRecords.total_income}</Text>
|
||||
</View>
|
||||
<View className="flex-1">
|
||||
<Text className="text-gray-500 text-sm">收入</Text>
|
||||
<Text
|
||||
className="text-lg font-semibold mt-0.5"
|
||||
numberOfLines={1}
|
||||
ellipsizeMode="tail"
|
||||
>
|
||||
0.00
|
||||
</Text>
|
||||
</View>
|
||||
|
||||
<View>
|
||||
<Text className="text-gray-500 text-sm">
|
||||
支出
|
||||
{/* <Text className="text-green-500">↑20%</Text> */}
|
||||
</Text>
|
||||
<Text className="text-lg font-semibold mt-0.5">{moneyRecords.total_expense}</Text>
|
||||
</View>
|
||||
{/*
|
||||
<View>
|
||||
<Text className="text-gray-500 text-sm">
|
||||
结余
|
||||
<Text className="text-green-500">↑20%</Text>
|
||||
</Text>
|
||||
<Text className="text-lg font-semibold mt-0.5">11.0</Text>
|
||||
</View> */}
|
||||
<View className="flex-1">
|
||||
<Text className="text-gray-500 text-sm">支出</Text>
|
||||
<Text
|
||||
className="text-lg font-semibold mt-0.5"
|
||||
numberOfLines={1}
|
||||
ellipsizeMode="tail"
|
||||
>
|
||||
0.00
|
||||
</Text>
|
||||
</View>
|
||||
|
||||
<View className="flex-1">
|
||||
<Text className="text-gray-500 text-sm">结余</Text>
|
||||
<Text
|
||||
className="text-lg font-semibold mt-0.5"
|
||||
numberOfLines={1}
|
||||
ellipsizeMode="tail"
|
||||
>
|
||||
0.00
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
|
||||
Reference in new issue
Block a user