From 5fa1870a958994ca5e8161376d26762a7bdafbbf Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Fri, 15 Dec 2023 19:09:36 +0800
Subject: [PATCH] 公共收益、扫码逻辑修改

---
 subPackage/article/list.vue |   40 +++++++++++++++++++++++++---------------
 1 files changed, 25 insertions(+), 15 deletions(-)

diff --git a/subPackage/article/list.vue b/subPackage/article/list.vue
index 3fb310d..344401b 100644
--- a/subPackage/article/list.vue
+++ b/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);
 				})

--
Gitblit v1.9.3