| | |
| | | <template> |
| | | <view class=""> |
| | | <z-paging ref="paging" v-model="list" :auto="false" @query="queryList" @onRefresh="refreshList" loading-more-no-more-text="没有更多了"> |
| | | <view class="tab" slot="top"> |
| | | <view class="tab" slot="top" v-show="tabList.length"> |
| | | <u-tabs :list="tabList" :current="tabIndex" keyName="dictValue" @change="changeTab" |
| | | :inactiveStyle="{color:'#999999'}" :activeStyle="{color:'#017BFC'}"></u-tabs> |
| | | </view> |
| | |
| | | list: [], |
| | | currentPage: 1, |
| | | loadingStatus: 'nomore', |
| | | eventType: "" |
| | | eventType: "", |
| | | type:"" |
| | | } |
| | | }, |
| | | onLoad(option) { |
| | | console.log(option); |
| | | if (option.type) { |
| | | this.eventType = option.type; |
| | | if (option.type == 0) { |
| | | this.tabList = [{ |
| | | dictKey: "", |
| | | dictValue: "公益报名" |
| | | }] |
| | | } else { |
| | | this.tabList = [{ |
| | | dictKey: "", |
| | | dictValue: "选举调查" |
| | | }] |
| | | } |
| | | // this.eventType = option.type; |
| | | // if (option.type == 0) { |
| | | // this.tabList = [{ |
| | | // dictKey: "", |
| | | // dictValue: "公益报名" |
| | | // }] |
| | | // } else { |
| | | // this.tabList = [{ |
| | | // dictKey: "", |
| | | // dictValue: "选举调查" |
| | | // }] |
| | | // } |
| | | // this.getNoticeList() |
| | | uni.setNavigationBarTitle({ |
| | | title:"公共收益" |
| | | }) |
| | | this.type = option.type; |
| | | this.$refs.paging.reload(); |
| | | |
| | | } else { |
| | | this.getCateList() |
| | | } |
| | |
| | | dictKey: "", |
| | | dictValue: "全部" |
| | | }) |
| | | |
| | | this.tabList = data; |
| | | // this.tabId = data[0].dictKey; |
| | | // this.getNoticeList() |
| | |
| | | current: pageNo, |
| | | size: pageSize, |
| | | articleType: this.tabId, |
| | | eventType: this.eventType |
| | | eventType: this.eventType, |
| | | type:this.type |
| | | }).then(res => { |
| | | this.$refs.paging.complete(res.data.records); |
| | | }) |