| | |
| | | <template> |
| | | <view class=""> |
| | | <!-- <view class="tab" v-if="tabList.length"> |
| | | <view class="tab" v-if="tabList.length"> |
| | | <u-tabs :list="tabList" :current="tabIndex" keyName="dictValue" @change="changeTab" |
| | | :inactiveStyle="{color:'#999999'}" :activeStyle="{color:'#017BFC'}"></u-tabs> |
| | | </view> --> |
| | | </view> |
| | | <z-paging ref="paging" v-model="list" @query="queryList" @onRefresh="refreshList" |
| | | loading-more-no-more-text="没有更多了"> |
| | | <view class="list bgc-ff"> |
| | |
| | | this.eventType = option.type; |
| | | if (option.type == 0) { |
| | | this.type = 3 |
| | | uni.setNavigationBarTitle({ |
| | | title: "公益报名" |
| | | }) |
| | | } else { |
| | | this.type = 4 |
| | | uni.setNavigationBarTitle({ |
| | | title: "选举调查" |
| | | }) |
| | | } |
| | | this.getCateList() |
| | | // this.getNoticeList() |
| | | |
| | | }, |
| | |
| | | this.list = []; |
| | | this.currentPage = 1; |
| | | // this.getNoticeList() |
| | | this.refreshList(); |
| | | }, |
| | | |
| | | getCateList() { |
| | | getCategory({ |
| | | parentId: '1722966265111248897', |
| | | parentId: '1740566650527752194', |
| | | }).then(res => { |
| | | console.log(res) |
| | | let data = res.data; |
| | |
| | | dictValue: "全部" |
| | | }) |
| | | this.tabList = data; |
| | | // this.tabId = data[0].dictKey; |
| | | this.getNoticeList() |
| | | this.tabId = data[0].dictKey; |
| | | // this.getNoticeList() |
| | | }) |
| | | }, |
| | | |