update:暂存金币相关

This commit is contained in:
2026-08-19 10:14:17 +08:00
parent d60c32506f
commit 63f3cada0f
36 changed files with 1303 additions and 2 deletions
+35
View File
@@ -0,0 +1,35 @@
<script setup>
import { ref } from "vue";
import { onLoad } from "@dcloudio/uni-app";
import Container from "@/components/Container.vue";
import CoinHeader from "./components/CoinHeader.vue";
import CoinRecordList from "./components/CoinRecordList.vue";
import CoinEmptyState from "./components/CoinEmptyState.vue";
import { earningRecords } from "./data";
const showEmpty = ref(false);
onLoad((options = {}) => {
// 预留空态入口,接口接入后由真实列表长度控制。
showEmpty.value = options.state === "empty";
});
</script>
<template>
<Container :bgType="6" :isHome="true">
<template #header>
<CoinHeader title="金币获取明细" />
</template>
<view class="records-page">
<CoinEmptyState v-if="showEmpty" />
<CoinRecordList v-else :records="earningRecords" />
</view>
</Container>
</template>
<style scoped>
.records-page {
width: 100%;
min-height: 100%;
}
</style>