Bladeren bron

fix: 解决方案 首页seo 优化

Lee 1 dag geleden
bovenliggende
commit
e0af4f4647
3 gewijzigde bestanden met toevoegingen van 19 en 4 verwijderingen
  1. 2 4
      app/components/section/solution.vue
  2. 4 0
      app/pages/index/index.vue
  3. 13 0
      app/pages/solutions/[id].vue

+ 2 - 4
app/components/section/solution.vue

@@ -7,9 +7,7 @@
   >
     <div class="solution-header">
       <h2 class="solution-title">物业管理正面临这些挑战</h2>
-      <p class="solution-desc">
-        传统物业管理模式效率低下、成本高昂、服务体验差,急需数字化转型
-      </p>
+      <p class="solution-desc">传统物业管理模式效率低下、成本高昂、服务体验差,急需数字化转型</p>
     </div>
 
     <div ref="solutionListRef" class="solution-list" @scroll="handleSolutionScroll">
@@ -42,7 +40,7 @@
             ]"
           >
             <span class="lt-sm:hidden">{{ solution.hoverTitle }}</span>
-            <h3 class="inline">{{ solution.title }}解决方案</h3>
+            <h3 class="inline sm:hidden">{{ solution.title }}解决方案</h3>
           </div>
           <div
             class="solution-card-desc pf-sc-regular"

+ 4 - 0
app/pages/index/index.vue

@@ -20,5 +20,9 @@
     description:
       '绘家科技致力于为物业管理公司提供数字化转型解决方案,包括绘管家智慧物业云平台、绘服务业主端小程序等,提升服务品质与业主满意度。',
     keywords: '智慧物业,物业管理系统,社区数字化,绘管家,绘家科技',
+    ogTitle: '绘家科技 - 智慧社区整体解决方案',
+    ogDescription:
+      '绘家科技致力于为物业管理公司提供数字化转型解决方案,包括绘管家智慧物业云平台、绘服务业主端小程序等,提升服务品质与业主满意度。',
+    ogImage: '/logo.png',
   })
 </script>

+ 13 - 0
app/pages/solutions/[id].vue

@@ -178,6 +178,19 @@
 
   const solution = computed(() => solutionPoints.find((item) => item.id === route.params.id))
 
+  useSeoMeta({
+    title: () => `${solution.value?.title || '解决方案'} - 绘家科技`,
+    description: () =>
+      solution.value?.description ||
+      '绘家科技致力于为物业管理公司提供数字化转型解决方案,提升服务品质与业主满意度。',
+    keywords: () =>
+      `${solution.value?.title},智慧物业,解决方案,绘家科技,${solution.value?.corePoints.points.map((p) => p.point).join(',')}`,
+    ogTitle: () => `${solution.value?.title || '解决方案'} - 绘家科技`,
+    ogDescription: () =>
+      solution.value?.description ||
+      '绘家科技致力于为物业管理公司提供数字化转型解决方案,提升服务品质与业主满意度。',
+  })
+
   const activeCaseIndex = ref(0)
   const currentCase = computed(() => {
     if (!solution.value?.typicalCases?.cases?.length) return null