zhongrj
2024-01-09 9ab5feb38bf6db6d02b9403dd61bee5ab49a79c9
subPackage/article/communityList.vue
@@ -1,9 +1,9 @@
<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">
@@ -40,15 +40,10 @@
         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()
      },
@@ -69,11 +64,12 @@
            this.list = [];
            this.currentPage = 1;
            // this.getNoticeList()
            this.refreshList();
         },
         getCateList() {
            getCategory({
               parentId: '1722966265111248897',
               parentId: '1740566650527752194',
            }).then(res => {
               console.log(res)
               let data = res.data;
@@ -82,8 +78,8 @@
                  dictValue: "全部"
               })
               this.tabList = data;
               // this.tabId = data[0].dictKey;
               this.getNoticeList()
               this.tabId = data[0].dictKey;
               // this.getNoticeList()
            })
         },