From 3bff34c3aa7ad412042272ea6a37b7d5b49b8d9b Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期四, 26 六月 2025 09:09:51 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev

---
 pages/mine/activity/reportActivity.vue |   46 +++++++++++++++++++++++++---------------------
 1 files changed, 25 insertions(+), 21 deletions(-)

diff --git a/pages/mine/activity/reportActivity.vue b/pages/mine/activity/reportActivity.vue
index 1e9412b..6e6e2ed 100644
--- a/pages/mine/activity/reportActivity.vue
+++ b/pages/mine/activity/reportActivity.vue
@@ -1,7 +1,7 @@
 <template>
 	<view class="wrapper">
-		
-		
+		<top-bar selectedTitleIndex="activity" textColor="black" @changeTab="topBarChange" class="topBar"></top-bar>
+
 		<view style="height: 100rpx"></view>
 		<!-- 鍐呭鍖哄煙 -->
 		<scroll-view scroll-y class="content" style="height: 40vh;" @scrolltolower="loadMore" :lower-threshold="100">
@@ -47,24 +47,11 @@
 </template>
 
 <script>
-	import {
-		changeCollect
-	} from '@/api/collect.js'
-	import {
-		getFilePreviewUrl
-	} from '@/api/common.js'
-	import UButton from '@/uview-components/uview-ui/components/u-button/u-button.vue';
-	import UImage from '@/uview-components/uview-ui/components/u-image/u-image.vue';
-	import ULoadmore from '@/uview-components/uview-ui/components/u-loadmore/u-loadmore.vue'
-	import {
-		getActivityReportList,
-	} from '@/api/activity.js';
+	import TopBar from "@/components/TopBar.vue";
+	import '@/components/uview-components/uview-ui';
+	import {getActivityReportList} from '@/api/activity.js';
 	export default {
-		components: {
-			UImage,
-			UButton,
-			ULoadmore
-		},
+		components: {TopBar},
 		data() {
 			return {
 				columns: [
@@ -79,6 +66,7 @@
 				query: {
 					pageNumber: 1,
 					pageSize: 10,
+					publish:1,
 				},
 				loading: false, // 鏄惁姝e湪鍔犺浇
 				noMore: false, // 鏄惁娌℃湁鏇村鏁版嵁
@@ -89,6 +77,17 @@
 			this.getActivityList();
 		},
 		methods: {
+			topBarChange(titleObj) {
+				if (titleObj.index === 'home') {
+					uni.switchTab({
+						url: titleObj.pagePath
+					});
+				} else {
+					uni.redirectTo({
+						url: titleObj.pagePath
+					});
+				}
+			},
 			/**
 			 * 涓嬫媺鍒锋柊鏃�
 			 */
@@ -99,7 +98,6 @@
 				this.getActivityList();
 			},
 			loadMore() {
-
 				// 鏄剧ず鍔犺浇鐘舵��
 				this.loading = true;
 
@@ -382,4 +380,10 @@
 			font-size: 28rpx;
 		}
 	}
-</style>
\ No newline at end of file
+	.topBar {
+		position: fixed;
+		top: 20rpx;
+		left: 20rpx;
+		z-index: 1000
+	}
+</style>

--
Gitblit v1.8.0