Lou
2023-12-15 5fa1870a958994ca5e8161376d26762a7bdafbbf
subPackage/article/list.vue
@@ -1,7 +1,7 @@
<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>
@@ -31,24 +31,32 @@
            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()
         }
@@ -82,6 +90,7 @@
                  dictKey: "",
                  dictValue: "全部"
               })
               this.tabList = data;
               // this.tabId = data[0].dictKey;
               // this.getNoticeList()
@@ -95,7 +104,8 @@
               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);
            })