Files
umed/web/README.md
T

62 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# UMedGlobal 官网(来华医疗服务对外官网)
基于 Axure 原型 1:1 还原构建的 **优医 / UMedGlobal** 来华医疗服务对外官网。
## 技术栈
- **Nuxt 3 + Vue 3**:组件化、文件路由
- **SSR(服务端渲染)默认开启**:保证 SEO 头部信息可被搜索引擎抓取
- **`useHead` 管理 SEO**:每个页面独立配置 `title` / `description` / Open Graph 等
> 配置位置:`nuxt.config.ts` 中 `ssr: true`;各页面 `<script setup>` 内通过 `useHead({...})` 设置头部信息。
## 页面结构(对应原型)
| 路由 | 说明 | 原型来源 |
| --- | --- | --- |
| `/` | 首页(Hero、免费评估、远程二次诊疗、跨境协调、高端体检、真实案例、临床基础设施、城市医疗中心、就医流程) | `首页.html` |
| `/hospitals` | 特色医院 & 专家(医院卡片 + 医生卡片) | `医院、医生样式.html` |
| `/cases` | 真实患者案例 | `案例样式.html` |
## 设计令牌(取自原型)
- 主蓝 `#0099ff`,浅蓝 `#4BA7FE`,青绿 `#0CBDA0`
- 正文深色 `#1E1E1E`,次级灰 `#666`,边框 `#ccc`
## 本地开发
```bash
npm install
npm run dev # http://localhost:3010
```
## 生产构建
```bash
npm run build # SSR 构建产物在 .output/
node .output/server/index.mjs # 启动 SSR 服务
```
## 静态导出(可选,纯静态站点)
```bash
npm run generate
```
## 资源
原型图片已统一复制并重命名至 `public/images/`。
## 调整记录
### 2026-10-13
| 调整文件 | 调整内容 |
| --- | --- |
| `public/images/home-promo-banner.png` | 新增首页广交会宣传横幅图(已替换) |
| `public/images/home-promo-banner.jpg` | 以高清 `00.jpg`(3300×1200)替换原模糊横幅 |
| `pages/index.vue` | 在顶部导航下方新增横幅区块(`.promo-banner`);与页面 `.container` 同宽对齐;图片源改为 `.jpg` |
| `data/home-content.ts` | 新增 `promoBanner.imageAlt`(en/zh/ar/ru)供横幅 alt 使用 |
| `data/social-links.ts` | WhatsApp 链接由群邀请改为官方频道 `https://whatsapp.com/channel/0029Vb7tTJ22v1Ip9tTdY53E` |
| 线上部署 | 已构建并上传 `deploy-pack.tar.gz`,远程解压后 `pm2 restart umed-web`,进程 online |