吉安感知网项目-前端
张含笑
2026-01-23 0801d4229ba0fcde97b413e91e44a6c571845505
feat:参数
2 files modified
1 files added
84 ■■■■■ changed files
uniapps/work-app/src/pages/work/index.vue 37 ●●●●● patch | view | raw | blame | history
uniapps/work-app/src/static/images/work/share.png patch | view | raw | blame | history
uniapps/work-app/src/subPackages/workDetail/index.vue 47 ●●●● patch | view | raw | blame | history
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
uniapps/work-app/src/static/images/work/share.png
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;