| | |
| | | <template> |
| | | <view class="wrapper"> |
| | | |
| | | |
| | | <top-bar selectedTitleIndex="activity" @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"> |
| | |
| | | </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: [ |
| | |
| | | this.getActivityList(); |
| | | }, |
| | | methods: { |
| | | topBarChange(titleObj) { |
| | | if (titleObj.index === 'home') { |
| | | uni.switchTab({ |
| | | url: titleObj.pagePath |
| | | }); |
| | | } else { |
| | | uni.redirectTo({ |
| | | url: titleObj.pagePath |
| | | }); |
| | | } |
| | | }, |
| | | /** |
| | | * 下拉刷新时 |
| | | */ |
| | |
| | | font-size: 28rpx; |
| | | } |
| | | } |
| | | </style> |
| | | .topBar { |
| | | position: fixed; |
| | | top: 20rpx; |
| | | left: 20rpx; |
| | | z-index: 1000 |
| | | } |
| | | </style> |