This commit adds the full AIGC feature set including template usage flow, points recharge and transaction ledger pages, along with all supporting components, styles and data files. It also updates the home page navigation and registers all new pages in the project's pages configuration.
37 lines
812 B
Vue
37 lines
812 B
Vue
<template>
|
|
<view class="points-details-page">
|
|
<TopNavBar
|
|
title="积分明细"
|
|
background="transparent"
|
|
title-color="#172033"
|
|
back-icon-color="#172033"
|
|
:align-with-menu-button="true"
|
|
:z-index="3"
|
|
@back="handleBack"
|
|
/>
|
|
|
|
<view class="points-details-content">
|
|
<LedgerList :records="records" />
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script setup>
|
|
import TopNavBar from "@/components/TopNavBar/index.vue";
|
|
import LedgerList from "./components/LedgerList/index.vue";
|
|
import { pointsLedgerRecords } from "./data/ledger.js";
|
|
|
|
const records = pointsLedgerRecords;
|
|
|
|
const handleBack = () => {
|
|
const pages = getCurrentPages();
|
|
if (pages.length > 1) {
|
|
uni.navigateBack();
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
@import "./styles/index.scss";
|
|
</style>
|