buddhism/pages/institutionalStructure/donationRecord.vue

123 lines
2.7 KiB
Vue
Raw Normal View History

2025-07-31 16:16:42 +08:00
<template>
<view class="page">
<custom-navbar title="捐款记录" />
2025-08-01 08:59:07 +08:00
<tile-grid />
2025-07-31 16:16:42 +08:00
<view class="header" :style="{ backgroundColor: CommonEnum.BASE_COLOR }">
2025-07-31 18:01:11 +08:00
<view class="search-filter-row">
<search-box
2025-07-31 17:32:45 +08:00
v-model="searchKeyword"
:width="'100%'"
placeholder="请输入搜索关键词"
btn-text="搜索"
@search="onSearch"
2025-07-31 18:01:11 +08:00
/>
<view class="filter-btn" @click="onFilter">
<image class="filter-icon" :src="CommonEnum.FILTER" mode="aspectFit" />
<text class="filter-text">筛选</text>
</view>
</view>
2025-08-01 10:04:14 +08:00
2025-08-01 16:01:58 +08:00
<!-- 项目信息组件 -->
<project-info
:project-name="projectInfo.proName"
:project-desc="projectInfo.proProfile"
/>
2025-08-01 10:04:14 +08:00
2025-08-01 16:01:58 +08:00
<!-- 捐款统计组件 -->
<donation-summary
:total-amount="totalAmount"
:participant-count="participantCount"
/>
2025-08-01 10:04:14 +08:00
2025-08-01 16:01:58 +08:00
<!-- 捐款记录列表组件 -->
<donation-list :donation-list="donationList" />
2025-08-01 10:04:14 +08:00
2025-07-31 18:01:11 +08:00
<status-display
v-if="loading"
type="loading"
loading-text="加载中..."
2025-07-31 17:32:45 +08:00
/>
2025-07-31 16:16:42 +08:00
</view>
</view>
</template>
<script>
import CustomNavbar from "../../components/custom-navbar/custom-navbar.vue";
import TileGrid from "../../components/tile-grid/tile-grid.vue";
import CommonEnum from "../../enum/common";
import StatusDisplay from "../../components/status-display/status-display.vue";
2025-07-31 17:32:45 +08:00
import SearchBox from "../../components/search-box/search-box.vue";
2025-08-01 16:01:58 +08:00
import ProjectInfo from "./components/project-info.vue";
import DonationSummary from "./components/donation-summary.vue";
import DonationList from "./components/donation-list.vue";
import { donationMixin } from "./mixins/donation-mixin.js";
2025-07-31 16:16:42 +08:00
export default {
2025-08-01 16:01:58 +08:00
mixins: [donationMixin],
2025-07-31 16:16:42 +08:00
components: {
CustomNavbar,
TileGrid,
2025-07-31 17:32:45 +08:00
StatusDisplay,
2025-08-01 16:01:58 +08:00
SearchBox,
ProjectInfo,
DonationSummary,
DonationList
2025-07-31 16:16:42 +08:00
},
data() {
return {
2025-08-01 16:01:58 +08:00
CommonEnum
2025-08-01 10:50:21 +08:00
}
},
2025-08-01 11:54:29 +08:00
onLoad(options) {
// 获取页面参数
if (options.formedId) {
2025-08-01 16:01:58 +08:00
this.initData(options.formedId)
2025-07-31 16:16:42 +08:00
}
}
}
</script>
<style lang="scss">
page {
background: #F5F0E7;
}
.header {
width: 100%;
min-height: 100vh;
display: flex;
2025-08-01 16:01:58 +08:00
2025-07-31 16:16:42 +08:00
flex-direction: column;
2025-08-01 10:50:21 +08:00
padding: 0 15rpx 0 15rpx;
2025-07-31 16:16:42 +08:00
}
2025-07-31 18:01:11 +08:00
.search-filter-row {
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
2025-08-01 10:04:14 +08:00
margin: 10rpx 0 10rpx 0;
padding: 0 20rpx;
2025-07-31 18:01:11 +08:00
}
.search-filter-row search-box {
flex: 1;
}
.filter-btn {
display: flex;
align-items: center;
2025-08-01 10:04:14 +08:00
margin-left: 20rpx;
padding: 0 16rpx;
2025-07-31 18:01:11 +08:00
height: 70rpx;
border-radius: 10rpx;
cursor: pointer;
}
.filter-icon {
width: 32rpx;
height: 32rpx;
margin-right: 8rpx;
}
.filter-text {
color: #6B4A1B;
font-size: 28rpx;
}
2025-08-01 10:04:14 +08:00
2025-08-01 10:50:21 +08:00
2025-07-31 16:16:42 +08:00
</style>