feat: 添加收益明细类型和相关数据结构,优化收益记录展示逻辑

This commit is contained in:
2026-01-11 01:28:26 +07:00
parent 739430693e
commit 1c0d3e7288
7 changed files with 180 additions and 211 deletions

View File

@@ -5,6 +5,7 @@ import CryptocurrencyColorNuls from "~icons/cryptocurrency-color/nuls";
import { client, safeClient } from "@/api";
const { t } = useI18n();
const { vibrate } = useHaptics();
const holdingsData = ref<HoldingItem[]>([]);
const isLoading = ref(false);
@@ -18,9 +19,11 @@ async function fetchHoldings() {
isLoading.value = false;
}
async function handleRefresh(event: RefresherCustomEvent) {
await fetchHoldings();
event.target.complete();
function handleRefresh(event: RefresherCustomEvent) {
vibrate();
fetchHoldings().finally(() => {
event.target.complete();
});
}
function getStatusColor(status: string) {