From 0801d4229ba0fcde97b413e91e44a6c571845505 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Fri, 23 Jan 2026 15:26:12 +0800
Subject: [PATCH] feat:参数

---
 uniapps/work-app/src/pages/work/index.vue             |   37 ++++++++++++------
 uniapps/work-app/src/static/images/work/share.png     |    0 
 uniapps/work-app/src/subPackages/workDetail/index.vue |   47 +++++------------------
 3 files changed, 35 insertions(+), 49 deletions(-)

diff --git a/uniapps/work-app/src/pages/work/index.vue b/uniapps/work-app/src/pages/work/index.vue
index 005eafe..0982666 100644
--- a/uniapps/work-app/src/pages/work/index.vue
+++ b/uniapps/work-app/src/pages/work/index.vue
@@ -2,7 +2,7 @@
   <div class="eventTickets" :style="{ paddingTop: topMargin + 'px' }">
 
     <div class="searchTop">
-      <up-search placeholder="请输入关键字搜索"  :animation="true"  v-model="listParams.keyword" :show-action="false"></up-search>
+      <up-search placeholder="请输入关键字搜索"  :animation="true"  v-model="listParams.keyword" :show-action="false" @search="handleSearch"></up-search>
     </div>
     <div class="listBox">
       <div class="tabs-container">
@@ -49,15 +49,17 @@
     name: '全部工单',
     key: 'all',
     badge: {
-      value: 0
+      value: 0,
+      showZero: true
     },
-    status: null
+
   },
   {
     name: '我的工单',
     key: 'myTickets',
     badge: {
-      value: 0
+      value: 0,
+      showZero: true
     }
   }
 
@@ -67,7 +69,7 @@
   return dayjs(dateString).format('MM/DD HH:mm');
 };
 const listParams = ref({
-  status: null,
+
   current: 1,
   size: 12,
   source: 1,
@@ -82,7 +84,7 @@
   const params = {
     current: listParams.value.current,
     size: listParams.value.size,
-    // event_name:listParams.value.keyword,
+    keyword:listParams.value.keyword,
     onlyMine:currentTab.value=== 'myTickets' ? 1 : 0
   }
   getGdList(params).then(res => {
@@ -105,22 +107,22 @@
     loading.value = false
   })
 }
-
-
-
 const getstatusCountData=()=>{
-	getstatusCount().then(res=>{
+  const params={
+    keyword:listParams.value.keyword,
+  }
+	getstatusCount(params).then(res=>{
 		const response = res.data.data
 		 const {  totalCount,myCount } = response
 		tabList.value.forEach(tab=>{
 
 			if(tab.key === 'all'){
 				tab.badge.value = totalCount || 0
+        tab.badge.showZero = true
 
 			}else if(tab.key === 'myTickets'){
 				tab.badge.value = myCount || 0
-			}else{
-				tab.badge.value=statusCount[String(tab.status)] || 0
+        tab.badge.showZero = true
 			}
 		})
 
@@ -129,7 +131,7 @@
 
 const handleClick = (item) => {
   currentTab.value = item.key
-  listParams.value.status = item.status
+
   listParams.value.current = 1
   hasMore.value = true
   dataList.value = []
@@ -146,6 +148,15 @@
     url: `/subPackages/workDetail/index?id=${val.id}`,
   })
 }
+
+// 搜索功能
+const handleSearch = () => {
+  listParams.value.current = 1
+  hasMore.value = true
+  dataList.value = []
+  getDataList()
+  getstatusCountData()
+}
 const topMargin = getStatusBarHeight()
 onShow(() => {
   listParams.value.current = 1
diff --git a/uniapps/work-app/src/static/images/work/share.png b/uniapps/work-app/src/static/images/work/share.png
new file mode 100644
index 0000000..60585c7
--- /dev/null
+++ b/uniapps/work-app/src/static/images/work/share.png
Binary files differ
diff --git a/uniapps/work-app/src/subPackages/workDetail/index.vue b/uniapps/work-app/src/subPackages/workDetail/index.vue
index 035f5c9..aadf2dd 100644
--- a/uniapps/work-app/src/subPackages/workDetail/index.vue
+++ b/uniapps/work-app/src/subPackages/workDetail/index.vue
@@ -294,7 +294,13 @@
 .workDetailContainer {
   // 添加导航栏高度的padding-top,避免内容被遮挡
   padding-top: 88rpx;
-  // 分享按钮样式
+  :deep(){
+  .u-navbar__content{
+    background: url("https://wrj.shuixiongit.com/aiskyminio/cloud-bucket/ztzf_app_assets/images/user/bg.png")  no-repeat !important;
+    background-size: 100%!important;
+    height: 88rpx !important;
+  }
+}  // 分享按钮样式
   .share-btn {
     width: 40rpx;
     height: 40rpx;
@@ -304,6 +310,9 @@
     background-position: center;
   }
   .detailTop {
+  // #ifdef APP-PLUS
+  padding-top: 60rpx;
+  // #endif
     .image-container {
       position: relative;
       width: 100%;
@@ -332,37 +341,7 @@
           width: 5px !important;
         }
       }
-      .detailTitle {
-        position: absolute;
-        left: 0;
-        top: 0;
-        width: 100%;
-        height: 60rpx;
-        line-height: 60rpx;
-        background: rgba(7, 7, 7, 0.4);
-      }
 
-      .titleText {
-        display: flex;
-        width: 100%;
-        justify-content: space-between;
-        align-items: center;
-        color: #fff;
-
-        .itemName,
-        .itemTime {
-          font-family: Source Han Sans CN, Source Han Sans CN;
-          font-weight: 400;
-          font-size: 28rpx;
-          color: #ffffff;
-        }
-        .itemName {
-          padding-left: 20rpx;
-        }
-        .itemTime {
-          padding-right: 20rpx;
-        }
-      }
     }
   }
 
@@ -406,11 +385,7 @@
           color: #1d6fe9;
           text-decoration: underline;
           text-align: right;
-          //white-space: nowrap;
-          ///* 禁止换行 */
-          //overflow: hidden;
-          //text-overflow: ellipsis;
-          // max-width: 74%;
+    
           padding-top: 1px;
           padding-left: 5px;
           padding-right: 2px;

--
Gitblit v1.9.3