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 |   25 ++++++++++++++++++++++---
 1 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/pages/mine/activity/reportActivity.vue b/pages/mine/activity/reportActivity.vue
index a1051f6..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,9 +47,11 @@
 </template>
 
 <script>
+	import TopBar from "@/components/TopBar.vue";
 	import '@/components/uview-components/uview-ui';
 	import {getActivityReportList} from '@/api/activity.js';
 	export default {
+		components: {TopBar},
 		data() {
 			return {
 				columns: [
@@ -75,6 +77,17 @@
 			this.getActivityList();
 		},
 		methods: {
+			topBarChange(titleObj) {
+				if (titleObj.index === 'home') {
+					uni.switchTab({
+						url: titleObj.pagePath
+					});
+				} else {
+					uni.redirectTo({
+						url: titleObj.pagePath
+					});
+				}
+			},
 			/**
 			 * 涓嬫媺鍒锋柊鏃�
 			 */
@@ -367,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