chore: 全量提交(推广页、宣传册、社交资源、视频与后台同步)
Made-with: Cursor
This commit is contained in:
22
web/promotion/README.md
Normal file
22
web/promotion/README.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# 推广素材(首页与视频源)
|
||||
|
||||
- `index.html`:静态完整落地页参考;线上 Vue 首页已与之对齐,素材路径以本目录为准。
|
||||
- `视频发布/`:产品视频与封面,首页「产品视频」区块使用下列相对路径(经 `promotionUrl` 转为 URL):
|
||||
- `/promotion/视频发布/...`
|
||||
- `social/`:**关注我们** 统一资源包(建议只用此目录上线),首页读取:
|
||||
- `social/xiaohongshu.png`、`social/douyin.png`、`social/wechat-official.png`、`social/wechat-channels.jpg`
|
||||
- 源文件可从根目录 `小红书.png`、`抖音.png`、`公众号.png`、`视频号.jpg` 同步复制进来(ASCII 文件名利于网关与日志)。
|
||||
- `宇恒一号宣传册.pptx`:宣传册文案结构来源;SPA 中对应路由为 `/brochure/:topic`。
|
||||
|
||||
## 生产部署
|
||||
|
||||
1. **前端构建产物**(`dist/`)不包含本目录。部署时请把本文件夹 **完整复制** 到站点根下,与 `index.html` 同级,目录名为 `promotion`(即能通过 `https://你的域名/promotion/视频发布/...` 访问视频)。
|
||||
2. 或使用 Nginx:
|
||||
|
||||
```nginx
|
||||
location /promotion/ {
|
||||
alias /path/to/yh_web/web/promotion/;
|
||||
}
|
||||
```
|
||||
|
||||
3. 开发环境:`npm run dev` 时已通过 Vite 中间件将 `/promotion` 映射到本目录,无需再拷贝。
|
||||
Reference in New Issue
Block a user