From 49bec39b6bfefc5692418c24e59cf76ad0885850 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期三, 31 十二月 2025 10:03:16 +0800
Subject: [PATCH] fix: bug

---
 apps/housekeepingMiniApp/src/pages/home/index.vue |   28 ++++++++++++++++++----------
 1 files changed, 18 insertions(+), 10 deletions(-)

diff --git a/apps/housekeepingMiniApp/src/pages/home/index.vue b/apps/housekeepingMiniApp/src/pages/home/index.vue
index de102a6..049abfa 100644
--- a/apps/housekeepingMiniApp/src/pages/home/index.vue
+++ b/apps/housekeepingMiniApp/src/pages/home/index.vue
@@ -1,5 +1,5 @@
 <template>
-  <PageLayoutWithBg class="index-page-wrapper" :title="'棣栭〉'" :need-auth="false">
+  <PageLayoutWithBg class="index-page-wrapper" :title="'娣橀棯宸�'" :need-auth="false">
     <!-- <template #left>
       <div class="menu-btn-wrapper menu-logo">
         <img :src="IconLogo" class="logo" />
@@ -25,13 +25,13 @@
             <div class="city-btn-text">{{ locationCity }}</div>
           </div>
         </div>
-        <div class="home-banner-wrapper">
-          <nut-swiper :auto-play="3000">
+        <SquareView class="home-banner-wrapper" :width-power="2">
+          <nut-swiper :auto-play="3000" class="home-banner-swiper">
             <nut-swiper-item v-for="(item, index) in advertisements" :key="item.id">
               <img :src="item.file" class="banner-img" draggable="false" />
             </nut-swiper-item>
           </nut-swiper>
-        </div>
+        </SquareView>
         <!-- <div class="home-recommend-wrapper">
           <div class="home-recommend-item">鎺ㄨ崘</div>
           <div class="home-recommend-item">鎺ㄨ崘</div>
@@ -86,7 +86,7 @@
 import { setLocationCity } from '@/utils';
 import _ from 'lodash';
 import IconLogo from '@/assets/home/icon-logo.png';
-import { TaskCard } from '@12333/components';
+import { SquareView } from '@12333/components';
 import IconLocaltion from '@/assets/task/icon-localtion.png';
 import { useAllAreaList, useInfiniteLoading, useTaskList } from '@12333/hooks';
 import { useAccessLogin } from '@/hooks';
@@ -94,7 +94,7 @@
 import { setOSSLink, trim } from '@12333/utils';
 import * as standardServiceServices from '@12333/services/apiV2/standardService';
 import { EnumPagedListOrder, EnumStandardServiceReleaseStatus } from '@12333/constants';
-import StandardServiceCard from './StandardServiceCard.vue';
+import { useSystemStore } from '@/stores/modules/system';
 
 const { locationCity } = useUser();
 
@@ -122,12 +122,12 @@
       keywords: queryState.keywords,
     };
 
-    return standardServiceServices.getStandardServices(params, {
+    return standardServiceServices.getOpenStandardServices(params, {
       showLoading: false,
     });
   },
   {
-    queryKey: ['standardServiceServices/getStandardServices', queryState],
+    queryKey: ['standardServiceServices/getOpenStandardServices', queryState],
   }
 );
 
@@ -160,10 +160,12 @@
 }
 
 const switchTab = useSwitchTab();
+const systemStore = useSystemStore();
 
 function goService(item: API.SelectOptionStringGetDictionaryDataSelectQueryResultOption) {
+  systemStore.setServicePageJobCode(item.value);
   switchTab({
-    url: `${RouterPath.service}?id=${item.value}`,
+    url: `${RouterPath.service}`,
   });
 }
 </script>
@@ -213,10 +215,16 @@
   .home-banner-wrapper {
     margin-bottom: 20px;
 
+    .home-banner-swiper {
+      width: 100%;
+      height: 100%;
+    }
+
     .banner-img {
       width: 100%;
-      height: 260px;
+      height: 100%;
       object-fit: cover;
+      object-position: center top;
     }
   }
 

--
Gitblit v1.10.0