From 6b394c7206326e66811dbd8d646874c8abb20e89 Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期四, 26 六月 2025 09:47:34 +0800 Subject: [PATCH] 调整报名活动页面 --- pages/mine/activity/reportActivity.vue | 39 +++++++++++++++++++++++++-------------- 1 files changed, 25 insertions(+), 14 deletions(-) diff --git a/pages/mine/activity/reportActivity.vue b/pages/mine/activity/reportActivity.vue index 8fed83e..e3af6cc 100644 --- a/pages/mine/activity/reportActivity.vue +++ b/pages/mine/activity/reportActivity.vue @@ -1,8 +1,8 @@ <template> <view class="wrapper"> - - - <view style="height: 100rpx"></view> + <top-bar selectedTitleIndex="activity" textColor="black" @changeTab="topBarChange" class="topBar"></top-bar> + + <view style="height: 100rpx;margin-top: 50px"></view> <!-- 鍐呭鍖哄煙 --> <scroll-view scroll-y class="content" style="height: 40vh;" @scrolltolower="loadMore" :lower-threshold="100"> <view class="waterfall"> @@ -47,17 +47,11 @@ </template> <script> - import { - changeCollect - } from '@/api/collect.js' - import { - getFilePreviewUrl - } from '@/api/common.js' + import TopBar from "@/components/TopBar.vue"; import '@/components/uview-components/uview-ui'; - import { - getActivityReportList, - } from '@/api/activity.js'; + import {getActivityReportList} from '@/api/activity.js'; export default { + components: {TopBar}, data() { return { columns: [ @@ -72,6 +66,7 @@ query: { pageNumber: 1, pageSize: 10, + publish:1, }, loading: false, // 鏄惁姝e湪鍔犺浇 noMore: false, // 鏄惁娌℃湁鏇村鏁版嵁 @@ -82,6 +77,17 @@ this.getActivityList(); }, methods: { + topBarChange(titleObj) { + if (titleObj.index === 'home') { + uni.switchTab({ + url: titleObj.pagePath + }); + } else { + uni.redirectTo({ + url: titleObj.pagePath + }); + } + }, /** * 涓嬫媺鍒锋柊鏃� */ @@ -92,7 +98,6 @@ this.getActivityList(); }, loadMore() { - // 鏄剧ず鍔犺浇鐘舵�� this.loading = true; @@ -375,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