feat(frontend): 添加ECharts图表支持并优化首页
添加ECharts依赖用于数据可视化 实现交易信号、市场情绪和行业表现图表 优化首页布局和导航链接 添加网站favicon图标
This commit is contained in:
parent
fce2cf47f4
commit
72876620ad
32
services/frontend/package-lock.json
generated
32
services/frontend/package-lock.json
generated
@ -9,6 +9,7 @@
|
||||
"version": "0.1.0",
|
||||
"dependencies": {
|
||||
"axios": "^1.3.4",
|
||||
"echarts": "^5.6.0",
|
||||
"element-plus": "^2.10.4",
|
||||
"pinia": "^3.0.3",
|
||||
"vue": "^3.2.45",
|
||||
@ -3491,6 +3492,22 @@
|
||||
"node": ">=6.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/echarts": {
|
||||
"version": "5.6.0",
|
||||
"resolved": "https://registry.npmjs.org/echarts/-/echarts-5.6.0.tgz",
|
||||
"integrity": "sha512-oTbVTsXfKuEhxftHqL5xprgLoc0k7uScAwtryCgWF6hPYFLRwOUHiFmHGCBKP5NPFNkDVopOieyUqYGH8Fa3kA==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"tslib": "2.3.0",
|
||||
"zrender": "5.6.1"
|
||||
}
|
||||
},
|
||||
"node_modules/echarts/node_modules/tslib": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz",
|
||||
"integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==",
|
||||
"license": "0BSD"
|
||||
},
|
||||
"node_modules/ee-first": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
||||
@ -10382,6 +10399,21 @@
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/zrender": {
|
||||
"version": "5.6.1",
|
||||
"resolved": "https://registry.npmjs.org/zrender/-/zrender-5.6.1.tgz",
|
||||
"integrity": "sha512-OFXkDJKcrlx5su2XbzJvj/34Q3m6PvyCZkVPHGYpcCJ52ek4U/ymZyfuV1nKE23AyBJ51E/6Yr0mhZ7xGTO4ag==",
|
||||
"license": "BSD-3-Clause",
|
||||
"dependencies": {
|
||||
"tslib": "2.3.0"
|
||||
}
|
||||
},
|
||||
"node_modules/zrender/node_modules/tslib": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz",
|
||||
"integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==",
|
||||
"license": "0BSD"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -9,6 +9,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^1.3.4",
|
||||
"echarts": "^5.6.0",
|
||||
"element-plus": "^2.10.4",
|
||||
"pinia": "^3.0.3",
|
||||
"vue": "^3.2.45",
|
||||
|
||||
1
services/frontend/public/favicon.svg
Normal file
1
services/frontend/public/favicon.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" fill="#1a202c"/><path d="M15,45 L45,15" stroke="#48bb78" stroke-width="3" stroke-linecap="round"/><circle cx="50" cy="20" r="3" fill="#4299e1"/></svg>
|
||||
|
After Width: | Height: | Size: 239 B |
@ -2,6 +2,7 @@
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<meta name="description" content="AriStockAI - AI驱动的智能股票分析与投资决策平台,提供每日股票推荐、技术分析和实时信号提醒,助您把握投资机会。">
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
<div class="w-10 h-10 rounded-lg bg-gradient-to-br from-green-500 to-blue-600 flex items-center justify-center">
|
||||
<span class="font-bold text-xl">A</span>
|
||||
</div>
|
||||
<span class="font-bold text-xl">AriStockAI</span>
|
||||
<router-link to="/" class="font-bold text-xl">AriStockAI</router-link>
|
||||
</div>
|
||||
<nav class="hidden md:flex items-center space-x-8">
|
||||
<a href="#features" :class="theme === 'dark' ? 'text-gray-300 hover:text-white' : 'text-gray-600 hover:text-gray-900'">功能</a>
|
||||
|
||||
@ -1,157 +0,0 @@
|
||||
<template>
|
||||
<div class="min-h-screen bg-gray-900 text-white">
|
||||
<!-- 英雄区域 -->
|
||||
<section class="relative py-20 overflow-hidden">
|
||||
<div class="absolute inset-0 bg-[radial-gradient(circle_at_top_right,_rgba(79,70,229,0.15),_transparent_70%)]"></div>
|
||||
<div class="container mx-auto px-4 relative z-10">
|
||||
<div class="max-w-3xl mx-auto text-center">
|
||||
<div class="inline-block px-3 py-1 rounded-full bg-gray-800 text-green-400 mb-6">
|
||||
由AI驱动的智能投资平台
|
||||
</div>
|
||||
<h1 class="text-4xl md:text-5xl lg:text-6xl font-bold mb-6 leading-tight">
|
||||
The Most Powerful AI Platform for <span class="text-transparent bg-clip-text bg-gradient-to-r from-green-400 to-blue-500">Smarter Investment</span>
|
||||
</h1>
|
||||
<p class="text-xl mb-10 max-w-2xl mx-auto text-gray-400">
|
||||
利用人工智能技术分析市场趋势,提供精准选股建议,帮助投资者做出更明智的决策
|
||||
</p>
|
||||
<div class="flex flex-col sm:flex-row justify-center gap-4">
|
||||
<button class="px-8 py-4 rounded-xl bg-gradient-to-r from-green-500 to-blue-600 hover:opacity-90 transition-opacity text-lg font-medium" @click="handleStartUsing">
|
||||
开始使用
|
||||
</button>
|
||||
<button class="px-8 py-4 rounded-xl bg-gray-800 hover:bg-gray-700 transition-colors">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 inline mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z" />
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
|
||||
</svg>
|
||||
观看演示
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- 核心功能模块 -->
|
||||
<section id="features" class="py-20 bg-gray-900 border-t border-gray-800">
|
||||
<div class="container mx-auto px-4">
|
||||
<div class="text-center mb-16">
|
||||
<div class="inline-block px-3 py-1 rounded-full bg-gray-800 text-blue-400 mb-4">
|
||||
核心功能
|
||||
</div>
|
||||
<h2 class="text-3xl md:text-4xl font-bold mb-6">AI驱动的智能股票分析与投资决策平台</h2>
|
||||
<p class="text-xl max-w-3xl mx-auto text-gray-400">
|
||||
集成五大核心功能模块,提供全方位的股票数据分析与投资决策支持
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
|
||||
<!-- 每日股票推荐 -->
|
||||
<div class="bg-gray-800/50 border border-gray-800 rounded-2xl p-6 hover:border-blue-500/50 transition-all group">
|
||||
<div class="w-14 h-14 rounded-xl bg-blue-500/20 flex items-center justify-center mb-6 group-hover:bg-blue-500/30 transition-colors">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-7 w-7 text-blue-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2" />
|
||||
</svg>
|
||||
</div>
|
||||
<h3 class="text-xl font-bold mb-3">每日股票推荐</h3>
|
||||
<p class="text-gray-400 mb-4">
|
||||
基于机器学习算法,每日推送潜力股票推荐列表,结合市场趋势与历史数据分析,助您把握投资机会。
|
||||
</p>
|
||||
<ul class="space-y-2 text-sm text-gray-400">
|
||||
<li class="flex items-center gap-2"><span class="text-green-400">✓</span> 多因子模型评估</li>
|
||||
<li class="flex items-center gap-2"><span class="text-green-400">✓</span> 风险收益比分析</li>
|
||||
<li class="flex items-center gap-2"><span class="text-green-400">✓</span> 行业分布均衡推荐</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- 技术分析 -->
|
||||
<div class="bg-gray-800/50 border border-gray-800 rounded-2xl p-6 hover:border-green-500/50 transition-all group">
|
||||
<div class="w-14 h-14 rounded-xl bg-green-500/20 flex items-center justify-center mb-6 group-hover:bg-green-500/30 transition-colors">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-7 w-7 text-green-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2v-6a2 2 0 00-2-2h-2a2 2 0 00-2 2v6z" />
|
||||
</svg>
|
||||
</div>
|
||||
<h3 class="text-xl font-bold mb-3">技术分析</h3>
|
||||
<p class="text-gray-400 mb-4">
|
||||
提供专业级股票技术分析图表,支持多种技术指标与周期切换,帮助您深入分析股票走势与市场情绪。
|
||||
</p>
|
||||
<ul class="space-y-2 text-sm text-gray-400">
|
||||
<li class="flex items-center gap-2"><span class="text-green-400">✓</span> 实时K线图与指标</li>
|
||||
<li class="flex items-center gap-2"><span class="text-green-400">✓</span> 多周期技术分析</li>
|
||||
<li class="flex items-center gap-2"><span class="text-green-400">✓</span> 技术形态识别</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- 用户设置股票 -->
|
||||
<div class="bg-gray-800/50 border border-gray-800 rounded-2xl p-6 hover:border-purple-500/50 transition-all group">
|
||||
<div class="w-14 h-14 rounded-xl bg-purple-500/20 flex items-center justify-center mb-6 group-hover:bg-purple-500/30 transition-colors">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-7 w-7 text-purple-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 8h2a2 2 0 012 2v6a2 2 0 01-2 2h-2v4l-4-4H9a1.994 1.994 0 01-1.414-.586m0 0L11 14h4a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2v4l.586-.586z" />
|
||||
</svg>
|
||||
</div>
|
||||
<h3 class="text-xl font-bold mb-3">用户设置股票</h3>
|
||||
<p class="text-gray-400 mb-4">
|
||||
个性化股票关注列表管理,支持添加、删除和分组管理关注股票,实时追踪您关心的市场动态。
|
||||
</p>
|
||||
<ul class="space-y-2 text-sm text-gray-400">
|
||||
<li class="flex items-center gap-2"><span class="text-green-400">✓</span> 自定义关注列表</li>
|
||||
<li class="flex items-center gap-2"><span class="text-green-400">✓</span> 股票分组管理</li>
|
||||
<li class="flex items-center gap-2"><span class="text-green-400">✓</span> 快速访问与排序</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- 添加指标 -->
|
||||
<div class="bg-gray-800/50 border border-gray-800 rounded-2xl p-6 hover:border-yellow-500/50 transition-all group">
|
||||
<div class="w-14 h-14 rounded-xl bg-yellow-500/20 flex items-center justify-center mb-6 group-hover:bg-yellow-500/30 transition-colors">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-7 w-7 text-yellow-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2" />
|
||||
</svg>
|
||||
</div>
|
||||
<h3 class="text-xl font-bold mb-3">添加指标</h3>
|
||||
<p class="text-gray-400 mb-4">
|
||||
灵活的技术指标自定义功能,支持添加MACD、RSI、KDJ等多种技术指标,自定义参数与显示样式。
|
||||
</p>
|
||||
<ul class="space-y-2 text-sm text-gray-400">
|
||||
<li class="flex items-center gap-2"><span class="text-green-400">✓</span> 30+技术指标支持</li>
|
||||
<li class="flex items-center gap-2"><span class="text-green-400">✓</span> 自定义指标参数</li>
|
||||
<li class="flex items-center gap-2"><span class="text-green-400">✓</span> 多指标组合分析</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- 订阅股票的技术信号提醒 -->
|
||||
<div class="bg-gray-800/50 border border-gray-800 rounded-2xl p-6 hover:border-red-500/50 transition-all group md:col-span-2 lg:col-span-1">
|
||||
<div class="w-14 h-14 rounded-xl bg-red-500/20 flex items-center justify-center mb-6 group-hover:bg-red-500/30 transition-colors">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-7 w-7 text-red-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9" />
|
||||
</svg>
|
||||
</div>
|
||||
<h3 class="text-xl font-bold mb-3">技术信号提醒</h3>
|
||||
<p class="text-gray-400 mb-4">
|
||||
智能技术信号监测系统,支持自定义股票信号条件,实时推送买卖点提醒,不错过任何投资机会。
|
||||
</p>
|
||||
<ul class="space-y-2 text-sm text-gray-400">
|
||||
<li class="flex items-center gap-2"><span class="text-green-400">✓</span> 自定义信号条件</li>
|
||||
<li class="flex items-center gap-2"><span class="text-green-400">✓</span> 实时推送提醒</li>
|
||||
<li class="flex items-center gap-2"><span class="text-green-400">✓</span> 历史信号回溯</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'LandingPage',
|
||||
methods: {
|
||||
handleStartUsing() {
|
||||
// 检查用户登录状态
|
||||
const isLoggedIn = localStorage.getItem('isLoggedIn') === 'true';
|
||||
if (isLoggedIn) {
|
||||
this.$router.push('/app');
|
||||
} else {
|
||||
this.$router.push('/sign-up');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@ -136,21 +136,353 @@
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Trading Section -->
|
||||
<section id="trading" class="py-20 bg-gray-900 border-t border-gray-800">
|
||||
<div class="container mx-auto px-4">
|
||||
<div class="text-center mb-16">
|
||||
<div class="inline-block px-3 py-1 rounded-full bg-gray-800 text-green-400 mb-4">
|
||||
智能交易
|
||||
</div>
|
||||
<h2 class="text-3xl md:text-4xl font-bold mb-6">AI-Powered Trading Insights</h2>
|
||||
<p class="text-xl max-w-3xl mx-auto text-gray-400">
|
||||
基于多因子模型的交易信号分析,助您把握市场机会
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="grid md:grid-cols-2 gap-8 items-center">
|
||||
<div class="order-2 md:order-1">
|
||||
<div class="space-y-6">
|
||||
<div class="bg-gray-800/50 border border-gray-800 rounded-2xl p-6 hover:border-green-500/50 transition-all">
|
||||
<h3 class="text-xl font-bold mb-3 flex items-center">
|
||||
<span class="w-8 h-8 rounded-full bg-green-500/20 flex items-center justify-center mr-3">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-green-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
|
||||
</svg>
|
||||
</span>
|
||||
交易信号分析
|
||||
</h3>
|
||||
<p class="text-gray-400">
|
||||
AI实时监测市场动态,识别买入/卖出信号,提供清晰的交易决策建议
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="bg-gray-800/50 border border-gray-800 rounded-2xl p-6 hover:border-blue-500/50 transition-all">
|
||||
<h3 class="text-xl font-bold mb-3 flex items-center">
|
||||
<span class="w-8 h-8 rounded-full bg-blue-500/20 flex items-center justify-center mr-3">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-blue-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z" />
|
||||
</svg>
|
||||
</span>
|
||||
风险控制
|
||||
</h3>
|
||||
<p class="text-gray-400">
|
||||
内置风险评估模型,自动计算止损点和仓位建议,帮助控制投资风险
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="bg-gray-800/50 border border-gray-800 rounded-2xl p-6 hover:border-purple-500/50 transition-all">
|
||||
<h3 class="text-xl font-bold mb-3 flex items-center">
|
||||
<span class="w-8 h-8 rounded-full bg-purple-500/20 flex items-center justify-center mr-3">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-purple-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
|
||||
</svg>
|
||||
</span>
|
||||
交易时段分析
|
||||
</h3>
|
||||
<p class="text-gray-400">
|
||||
分析不同交易时段的市场表现,识别最佳交易时机
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="order-1 md:order-2">
|
||||
<div class="bg-gray-800/50 border border-gray-800 rounded-2xl p-4">
|
||||
<div class="aspect-w-16 aspect-h-9 bg-gray-900 rounded-xl overflow-hidden">
|
||||
<div id="trading-signal-chart" class="w-full h-full"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Insights Section -->
|
||||
<section id="insights" class="py-20 bg-gray-900 border-t border-gray-800">
|
||||
<div class="container mx-auto px-4">
|
||||
<div class="text-center mb-16">
|
||||
<div class="inline-block px-3 py-1 rounded-full bg-gray-800 text-blue-400 mb-4">
|
||||
市场洞察
|
||||
</div>
|
||||
<h2 class="text-3xl md:text-4xl font-bold mb-6">AI 驱动的市场洞察</h2>
|
||||
<p class="text-xl max-w-3xl mx-auto text-gray-400">
|
||||
结合技术因子与情绪分析,提供全面的市场洞察
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="grid md:grid-cols-3 gap-8">
|
||||
<div class="bg-gray-800/50 border border-gray-800 rounded-2xl p-6 hover:border-blue-500/50 transition-all">
|
||||
<div class="h-64 mb-6 bg-gray-900 rounded-xl flex items-center justify-center">
|
||||
<div id="sentiment-chart" class="w-full h-full"></div>
|
||||
</div>
|
||||
<h3 class="text-xl font-bold mb-3">市场情绪分析</h3>
|
||||
<p class="text-gray-400">
|
||||
基于自然语言处理技术,分析金融新闻与社交媒体情绪,把握市场情绪走向
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="bg-gray-800/50 border border-gray-800 rounded-2xl p-6 hover:border-green-500/50 transition-all">
|
||||
<div class="h-64 mb-6 bg-gray-900 rounded-xl flex items-center justify-center">
|
||||
<div id="factor-chart" class="w-full h-full"></div>
|
||||
</div>
|
||||
<h3 class="text-xl font-bold mb-3">因子权重分析</h3>
|
||||
<p class="text-gray-400">
|
||||
可视化展示各因子对股票推荐的影响权重,提供透明的推荐解释
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="bg-gray-800/50 border border-gray-800 rounded-2xl p-6 hover:border-purple-500/50 transition-all">
|
||||
<div class="h-64 mb-6 bg-gray-900 rounded-xl flex items-center justify-center">
|
||||
<div id="sector-chart" class="w-full h-full"></div>
|
||||
</div>
|
||||
<h3 class="text-xl font-bold mb-3">行业表现分析</h3>
|
||||
<p class="text-gray-400">
|
||||
分析不同行业板块的表现与趋势,帮助您把握行业轮动机会
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- User Reviews Section -->
|
||||
<section id="testimonials" class="py-20 bg-gray-900 border-t border-gray-800">
|
||||
<div class="container mx-auto px-auto">
|
||||
<div class="text-center mb-16">
|
||||
<div class="inline-block px-3 py-1 rounded-full bg-gray-800 text-yellow-400 mb-4">
|
||||
用户评价
|
||||
</div>
|
||||
<h2 class="text-3xl md:text-4xl font-bold mb-6">投资者的真实反馈</h2>
|
||||
<p class="text-xl max-w-3xl mx-auto text-gray-400">
|
||||
听听其他投资者如何使用我们的平台提升投资决策
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="grid md:grid-cols-3 gap-8">
|
||||
<div class="bg-gray-800/50 border border-gray-800 rounded-2xl p-6 hover:border-yellow-500/50 transition-all">
|
||||
<div class="flex items-center mb-4">
|
||||
<img src="/images/user1.jpg" alt="用户头像" class="w-12 h-12 rounded-full mr-4" />
|
||||
<div>
|
||||
<h4 class="font-bold">张晓明</h4>
|
||||
<div class="flex text-yellow-400">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 0-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 0-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 0-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" />
|
||||
</svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 0-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 0-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 0-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" />
|
||||
</svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 0-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 0-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 0-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" />
|
||||
</svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 0-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 0-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 0-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" />
|
||||
</svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 0-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 0-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 0-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="text-gray-400 mb-4">
|
||||
"使用这个平台三个月,我的投资收益提高了35%。AI推荐的股票组合非常精准,市场情绪分析功能帮助我避开了几次大跌。"
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="bg-gray-800/50 border border-gray-800 rounded-2xl p-6 hover:border-yellow-500/50 transition-all">
|
||||
<div class="flex items-center mb-4">
|
||||
<img src="/images/user2.jpg" alt="用户头像" class="w-12 h-12 rounded-full mr-4" />
|
||||
<div>
|
||||
<h4 class="font-bold">李静</h4>
|
||||
<div class="flex text-yellow-400">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 0-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 0-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 0-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" />
|
||||
</svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 0-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 0-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 0-.364-.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" />
|
||||
</svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 0-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 0-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 0-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" />
|
||||
</svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 0-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 0-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 0-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="text-gray-400 mb-4">
|
||||
"作为一名投资新手,这个平台的AI助手功能帮了我大忙。它不仅解释复杂的市场指标,还提供个性化的学习路径,让我在两个月内从零基础成长为能够独立做出投资决策。"
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="bg-gray-800/50 border border-gray-800 rounded-2xl p-6 hover:border-yellow-500/50 transition-all">
|
||||
<div class="flex items-center mb-4">
|
||||
<img src="/images/user3.jpg" alt="用户头像" class="w-12 h-12 rounded-full mr-4" />
|
||||
<div>
|
||||
<h4 class="font-bold">王建国</h4>
|
||||
<div class="flex text-yellow-400">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 0-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 0-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 0-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" />
|
||||
</svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 0-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 0-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 0-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" />
|
||||
</svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 0-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 0-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 0-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" />
|
||||
</svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 0-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 0-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 0-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" />
|
||||
</svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 0-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 0-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 0-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="text-gray-400 mb-4">
|
||||
"我是一名有十年经验的投资者,这个平台的量化分析工具让我的研究效率提升了数倍。多因子模型回测功能非常强大,帮助我验证了多个投资策略的有效性。"
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import * as echarts from 'echarts';
|
||||
|
||||
export default {
|
||||
name: 'LandingPage',
|
||||
mounted() {
|
||||
// 初始化交易信号图表
|
||||
const tradingChart = echarts.init(document.getElementById('trading-signal-chart'));
|
||||
// 配置图表选项
|
||||
const option = {
|
||||
title: { text: '交易信号分析', left: 'center', textStyle: { color: '#fff' } },
|
||||
tooltip: { trigger: 'axis' },
|
||||
legend: { data: ['价格', '买入信号', '卖出信号'], textStyle: { color: '#ccc' } },
|
||||
grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true },
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
data: ['1月', '2月', '3月', '4月', '5月', '6月'],
|
||||
axisLine: { lineStyle: { color: '#666' } },
|
||||
axisLabel: { color: '#ccc' }
|
||||
},
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
axisLine: { lineStyle: { color: '#666' } },
|
||||
axisLabel: { color: '#ccc' },
|
||||
splitLine: { lineStyle: { color: '#333' } }
|
||||
},
|
||||
series: [
|
||||
{
|
||||
name: '价格',
|
||||
type: 'line',
|
||||
data: [120, 190, 130, 230, 210, 320],
|
||||
smooth: true,
|
||||
lineStyle: { color: '#409EFF' },
|
||||
itemStyle: { color: '#409EFF' }
|
||||
},
|
||||
{
|
||||
name: '买入信号',
|
||||
type: 'scatter',
|
||||
data: [[1, 150], [3, 160], [5, 280]],
|
||||
symbolSize: 15,
|
||||
itemStyle: { color: '#52c41a' }
|
||||
},
|
||||
{
|
||||
name: '卖出信号',
|
||||
type: 'scatter',
|
||||
data: [[2, 210], [4, 250]],
|
||||
symbolSize: 15,
|
||||
itemStyle: { color: '#f5222d' }
|
||||
}
|
||||
]
|
||||
};
|
||||
tradingChart.setOption(option);
|
||||
// 响应窗口大小变化
|
||||
window.addEventListener('resize', () => tradingChart.resize());
|
||||
|
||||
// 保留原有的mounted代码
|
||||
this.initOtherComponents();
|
||||
},
|
||||
name: 'Index',
|
||||
mounted() {
|
||||
this.initCharts();
|
||||
},
|
||||
methods: {
|
||||
handleStartUsing() {
|
||||
// 检查用户登录状态
|
||||
const isLoggedIn = localStorage.getItem('isLoggedIn') === 'true';
|
||||
if (isLoggedIn) {
|
||||
this.$router.push('/home');
|
||||
this.$router.push('/app');
|
||||
} else {
|
||||
this.$router.push('/sign-up');
|
||||
}
|
||||
},
|
||||
initCharts() {
|
||||
// 初始化情绪分析图表
|
||||
const sentimentChart = echarts.init(document.getElementById('sentiment-chart'));
|
||||
sentimentChart.setOption({
|
||||
title: { text: '市场情绪趋势' },
|
||||
tooltip: { trigger: 'axis' },
|
||||
xAxis: { type: 'category', data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'] },
|
||||
yAxis: { type: 'value', min: -100, max: 100 },
|
||||
series: [{
|
||||
data: [30, 40, 35, 50, 49, 60, 70],
|
||||
type: 'line',
|
||||
lineStyle: { color: '#4ade80' },
|
||||
itemStyle: { color: '#4ade80' }
|
||||
}]
|
||||
});
|
||||
|
||||
// 初始化因子权重图表
|
||||
const factorChart = echarts.init(document.getElementById('factor-chart'));
|
||||
factorChart.setOption({
|
||||
title: { text: '因子权重分布' },
|
||||
tooltip: { trigger: 'item' },
|
||||
series: [{
|
||||
type: 'pie',
|
||||
data: [
|
||||
{ value: 30, name: '技术指标' },
|
||||
{ value: 25, name: '市场情绪' },
|
||||
{ value: 20, name: '基本面' },
|
||||
{ value: 15, name: '行业趋势' },
|
||||
{ value: 10, name: '资金流向' }
|
||||
],
|
||||
color: ['#4ade80', '#3b82f6', '#8b5cf6', '#f59e0b', '#ef4444']
|
||||
}]
|
||||
});
|
||||
|
||||
// 初始化行业表现图表
|
||||
const sectorChart = echarts.init(document.getElementById('sector-chart'));
|
||||
sectorChart.setOption({
|
||||
title: { text: '行业表现对比' },
|
||||
tooltip: { trigger: 'axis' },
|
||||
xAxis: { type: 'category', data: ['科技', '金融', '消费', '医药', '能源'] },
|
||||
yAxis: { type: 'value' },
|
||||
series: [{
|
||||
data: [12, 9, 15, 8, 5],
|
||||
type: 'bar',
|
||||
itemStyle: { color: '#3b82f6' }
|
||||
}]
|
||||
});
|
||||
|
||||
// 响应窗口大小变化
|
||||
window.addEventListener('resize', () => {
|
||||
sentimentChart.resize();
|
||||
factorChart.resize();
|
||||
sectorChart.resize();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user