Files
Home-Care/hss-home-service/website/components/HeroSection.vue
comclib 01e1034cc1 feat: 全系统优化 — 并发控制 + 冗余清理 + 数据流修复 + 全面测试
核心修复:
- 状态机加 SELECT FOR UPDATE 行锁,消除并发竞态
- hss_md_staff 加 role 列,登录从数据库读取真实角色
- 申请重复校验排除自身,全流程 20 步闭环通过
- 派单 SQL 修复 + 支付状态机过渡 + 完成服务 plan_item_id 修复

并发控制新增:
- RedisLockService (SET NX PX + Lua 安全解锁)
- RateLimiterService (Redis 滑动窗口 + API 拦截器)
- TransactionIsolationConfig (SERIALIZABLE for 支付回调)
- MqttPublisher (异步队列 + JDK TCP 探测)
- ObjectStorageService (AWS SigV4 预签名, 纯 JDK)

冗余清理:
- 删除 6 个死代码文件 (~620 行)
- hutool-all → JDK MessageDigest, 去 MapStruct, 去 jsr310
- haversine 提取到 GeoUtil, count/round 提取到 JdbcUtil
- 创建 platform layout 组件

前端修复:
- 登录页移除角色选择器, 由后端 JWT 返回
- 移除 ClientOnly 包裹, 页面正常渲染
- SPA fallback Nginx 配置修复

Docker: 运行时镜像 eclipse-temurin:17-jre-jammy (缩小 ~300MB)

文档: 新增系统实现与修复报告.md

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-22 11:48:07 +08:00

40 lines
1.9 KiB
Vue

<script setup lang="ts">
import { siteTagline, siteDescription } from '~/data/siteContent'
</script>
<template>
<section class="relative overflow-hidden bg-gradient-to-br from-primary-900 via-primary-700 to-primary-500 text-white">
<div class="absolute inset-0 opacity-10">
<div class="absolute top-10 left-10 w-72 h-72 bg-white rounded-full blur-3xl" />
<div class="absolute bottom-10 right-10 w-96 h-96 bg-accent rounded-full blur-3xl" />
</div>
<div class="section-container relative py-20 lg:py-32">
<div class="max-w-3xl">
<span class="inline-block px-3 py-1 rounded-full bg-white/20 text-sm font-medium mb-6 backdrop-blur">
智慧医养 · 居家上门服务 · 长护险管理
</span>
<h1 class="text-4xl md:text-5xl lg:text-6xl font-bold leading-tight mb-6">
{{ siteTagline }}
</h1>
<p class="text-lg md:text-xl text-blue-100 mb-8 max-w-2xl">
{{ siteDescription }}
</p>
<div class="flex flex-col sm:flex-row gap-4">
<NuxtLink to="/contact"
class="px-8 py-4 bg-cta text-white rounded-xl text-lg font-semibold hover:bg-cta-700 transition-colors text-center shadow-lg shadow-cta/25">
预约演示
</NuxtLink>
<NuxtLink to="/service-loop"
class="px-8 py-4 bg-white/15 backdrop-blur text-white rounded-xl text-lg font-semibold hover:bg-white/25 transition-colors text-center border border-white/20">
查看服务闭环
</NuxtLink>
</div>
</div>
<div class="mt-12 lg:absolute lg:right-8 lg:top-1/2 lg:-translate-y-1/2 lg:mt-0">
<img src="/placeholders/platform-overview.svg" alt="平台概览示意图(系统截图,上线前替换)"
class="rounded-2xl shadow-2xl w-full max-w-lg opacity-90" width="560" height="400" loading="eager" />
</div>
</div>
</section>
</template>