feat: SEO 优化与浏览器自动化测试

- 为 admin-frontend、user-frontend、uni-app 添加完整 SEO meta 标签
- 添加结构化数据 (JSON-LD) 提升搜索引擎理解
- 创建 robots.txt 和 sitemap.xml 文件
- 优化移动端 viewport、PWA 支持、theme-color
- 添加 Open Graph 和 Twitter Card 元标签
- 创建浏览器自动化测试脚本 (11 项测试全部通过)
- 修复 Nginx charset 配置解决编码问题
This commit is contained in:
TradeMate Dev
2026-06-29 20:17:59 +08:00
parent ad329815fa
commit 9ca5d79d8a
8 changed files with 528 additions and 4 deletions
+24
View File
@@ -0,0 +1,24 @@
User-agent: *
Allow: /
Allow: /app/
Allow: /workspace/
Disallow: /admin/
Disallow: /api/
Disallow: /static/
Disallow: /assets/
User-agent: Googlebot
Allow: /
Allow: /app/
Allow: /workspace/
Disallow: /admin/
Disallow: /api/
User-agent: Baiduspider
Allow: /
Allow: /app/
Allow: /workspace/
Disallow: /admin/
Disallow: /api/
Sitemap: https://trade.yuzhiran.com/sitemap.xml
+34
View File
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemap.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://trade.yuzhiran.com/</loc>
<lastmod>2026-06-29</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://trade.yuzhiran.com/app/</loc>
<lastmod>2026-06-29</lastmod>
<changefreq>daily</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc>https://trade.yuzhiran.com/workspace/</loc>
<lastmod>2026-06-29</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://trade.yuzhiran.com/app/pages/agreement/privacy</loc>
<lastmod>2026-06-29</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://trade.yuzhiran.com/app/pages/agreement/terms</loc>
<lastmod>2026-06-29</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
</urlset>