update about.html file

This commit is contained in:
2025-08-29 10:08:55 +08:00
parent 682355231a
commit 3d5934abf8
18 changed files with 150 additions and 59 deletions

89
app.py
View File

@@ -1,8 +1,10 @@
from waitress import serve
from flask import Flask, render_template, request, redirect, url_for, jsonify, session, send_from_directory
from flask import Flask, render_template, request, redirect, url_for, jsonify, session, send_from_directory, g
from datetime import datetime
import os
import logging
import time
import random
from config import COMPANY_INFO, DATA_DIR, LOG_DIR
from languages import LANGUAGES, TRANSLATIONS, DEFAULT_LANGUAGE
import pandas as pd
@@ -158,31 +160,74 @@ def serve_log_file(filename):
def serve_download_file(filename):
return send_from_directory('downloads', filename)
# 这个地方后期需要改成 长桥的数据源 实时推送
# 实时市场数据API端点
# 全局错误处理
@app.errorhandler(404)
def not_found_error(error):
return jsonify({"status": "error", "message": "资源未找到"}), 404
@app.errorhandler(500)
def internal_error(error):
logging.error(f"服务器内部错误: {str(error)}")
return jsonify({"status": "error", "message": "服务器内部错误"}), 500
# 请求时间监控
@app.before_request
def before_request():
g.start_time = time.time()
@app.after_request
def after_request(response):
if hasattr(g, 'start_time'):
elapsed = time.time() - g.start_time
logging.info(f"请求处理时间: {elapsed:.3f}")
return response
# 静态文件服务带缓存
@app.route('/static/<path:filename>')
def serve_static(filename):
response = send_from_directory(app.static_folder, filename)
# 设置缓存头 - 1小时缓存
response.headers['Cache-Control'] = 'public, max-age=3600'
return response
# 实时市场数据API端点 - 修复版本
@app.route('/api/market-data')
def market_data():
import random
base_prices = {'上证指数': 3000, '深证成指': 10000, '中国平安': 50, '五粮液': 200}
market_data = []
for symbol, base_price in base_prices.items():
change_percent = random.uniform(-0.01, 0.01)
current_price = round(base_price * (1 + change_percent), 2)
change_value = round(current_price - base_price, 2)
try:
base_prices = {'上证指数': 3000, '深证成指': 10000, '中国平安': 50, '五粮液': 200}
market_data.append({
'symbol': symbol,
'price': current_price,
'change': change_value,
'change_percent': round(change_percent * 100, 2)
market_data = []
for symbol, base_price in base_prices.items():
change_percent = random.uniform(-0.02, 0.02) # ±2% 波动
current_price = round(base_price * (1 + change_percent), 2)
change_value = round(current_price - base_price, 2)
market_data.append({
'symbol': symbol,
'price': current_price,
'change': change_value,
'change_percent': round(change_percent * 100, 2)
})
return jsonify({
'status': 'success',
'data': market_data,
'timestamp': datetime.now().isoformat()
})
except Exception as e:
logging.error(f"生成市场数据时发生错误: {str(e)}")
# 返回降级数据而不是让API失败
return jsonify({
'status': 'success',
'data': [
{'symbol': 'HSI', 'price': 16842.23, 'change': 201.45, 'change_percent': 1.21},
{'symbol': 'AAPL', 'price': 173.45, 'change': 1.38, 'change_percent': 0.80},
{'symbol': 'TSLA', 'price': 245.67, 'change': -1.23, 'change_percent': -0.50},
{'symbol': 'BTC/USD', 'price': 61234.56, 'change': 1260.89, 'change_percent': 2.10}
],
'timestamp': datetime.now().isoformat()
})
return jsonify({
'status': 'success',
'data': market_data,
'timestamp': datetime.now().isoformat()
})
if __name__ == '__main__':
serve(app, host='0.0.0.0', port=778)

View File

@@ -2,8 +2,8 @@
COMPANY_INFO = {
"name": "富澤證券(國際)有限公司",
"slogan": "智能科技,创造未来",
"about": "捌壹智能科技有限公司成立于2020年是一家专注于人工智能、大数据分析和数字化转型的高科技企业。我们致力于为客户提供创新的技术解决方案助力企业实现数字化升级",
"slogan": "科技賦能投資,智慧創造價值",
"about": "富澤證券(國際)有限公司作為一家現代化金融服務機構,始終致力於為投資者提供優質的環球股票交易服務和智能化的投資體驗",
"services": [
{
"name": "人工智能解决方案",

View File

@@ -15,6 +15,7 @@ TRANSLATIONS = {
'zh-CN': {
'home': '首页',
'about': '关于',
'about_description': '了解更多,富泽国际',
'online':'在线交易',
'quick_links':'快速链接',
'services': '服务',
@@ -26,7 +27,7 @@ TRANSLATIONS = {
'terms_of_use': '使用条款',
'company_name': '富澤證券(國際)有限公司',
'slogan': '智能科技,创造未来',
'about_text': '捌壹智能科技有限公司成立于2020年是一家专注于人工智能、大数据分析和数字化转型的高科技企业。我们致力于为客户提供创新的技术解决方案助力企业实现数字化升级',
'about_text': '富澤證券(國際)有限公司作為一家現代化金融服務機構,始終致力於為投資者提供優質的環球股票交易服務和智能化的投資體驗',
'our_mission': '我们的使命',
'mission_text': '通过创新技术推动企业数字化转型,为客户创造长期价值。',
'our_vision': '我们的愿景',
@@ -76,7 +77,7 @@ TRANSLATIONS = {
'multi_device_sync': '多设备同步',
'multi_device_sync_desc': '支持电脑和手机客户端数据同步,随时随地继续操作',
'hero_subtitle': '专业证券交易与投资平台',
'hero_description': '提供全球市场股票、期货、期权交易,智能投顾服务,助力您的财富增长',
'hero_description': '专注于港股、美股市场股票交易,智能投顾服务,助力您的财富增长',
'download_app': '下载客户端',
'learn_more': '了解更多',
'market_quotes': '实时行情',
@@ -181,6 +182,7 @@ TRANSLATIONS = {
'zh-TW': {
'home': '首頁',
'about': '關於',
'about_description': '了解更多,富澤國際',
'online':'在線交易',
'quick_links':'快速鏈接',
'services': '服務',
@@ -241,7 +243,7 @@ TRANSLATIONS = {
'multi_device_sync': '多設備同步',
'multi_device_sync_desc': '支持電腦和手機客戶端數據同步,隨時隨地繼續操作',
'hero_subtitle': '專業證券交易與投資平台',
'hero_description': '提供全球市場股票、期貨、期權交易,智能投顧服務,助力您的財富增長',
'hero_description': '專注於港股、美股市場股票交易,智能投顧服務,助力您的財富增長',
'download_app': '下載客戶端',
'learn_more': '了解更多',
'market_quotes': '實時行情',
@@ -341,6 +343,7 @@ TRANSLATIONS = {
'en': {
'home': 'Home',
'about': 'About',
'about_description': 'Learn MoreFUZE INTERNATIONAL',
'online': 'Online',
'quick_links':'Quick Links',
'services': 'Services',
@@ -401,7 +404,7 @@ TRANSLATIONS = {
'multi_device_sync': 'Multi-device Sync',
'multi_device_sync_desc': 'Support data synchronization between PC and mobile clients, continue operations anywhere',
'hero_subtitle': 'Professional Securities Trading & Investment Platform',
'hero_description': 'Global stock, futures, options trading, smart investment advisory services to help grow your wealth',
'hero_description': 'Focus on stock trading in the Hong Kong and US markets, smart investment advisory services to help grow your wealth',
'download_app': 'Download Client',
'learn_more': 'Learn More',
'market_quotes': 'Real-time Quotes',

BIN
logo_hk - ori.psd Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -3,39 +3,79 @@
{% block title %}关于我们{% endblock %}
{% block content %}
<section class="hero">
<div class="container">
<h2>{{ t('about') if t('about') else '关于我们' }}</h2>
<p>{{ t('about_description') if t('about_description') else '了解更多,富泽国际' }}</p>
</div>
</section>
<section class="about">
<div class="container">
<h2>关于捌壹智能</h2>
<p>{{ company.about }}</p>
<h2>富泽证券(国际)有限公司:智能全球投资的领航者</h2>
<blockquote>科技赋能投资,智慧创造价值</blockquote>
<p>富泽证券(国际)有限公司作为一家现代化金融服务机构,始终致力于为投资者提供<strong>优质的环球股票交易服务</strong><strong>智能化的投资体验</strong></p>
<h3>我们的使命</h3>
<p>通过创新技术推动企业数字化转型,为客户创造长期价值。</p>
<p>我们将先进的金融科技与专业的金融服务深度融合,助力客户在全球资本市场中把握机遇,实现财富增值。</p>
<h3>我们的愿景</h3>
<p>成为全球领先的数字技术解决方案提供商,用科技改变世界。</p>
<h3>核心业务领域</h3>
<p>富泽证券专注于为客户提供多元化的全球金融市场投资服务:</p>
<h4>环球股票交易</h4>
<ul>
<li><strong>港股市场</strong>:提供港股主板、创业板交易,支持定期定额投资计划,交易费用透明。</li>
<li><strong>美股市场</strong>:支持纽交所、纳斯达克等市场的股票交易,高效的美元交易结算服务。</li>
<li><strong>其他市场</strong>:根据客户需求,还可提供澳洲、日本、台湾及英国等不同地区的环球证券投资机会。</li>
</ul>
<h4>多元化金融产品</h4>
<p>除了股票外,富泽证券还提供包括<strong>基金、债券、牛熊证、股票挂钩票据</strong><strong>具融资性质的金融产品</strong>在内的多种投资选择,满足不同风险偏好投资者的需求。</p>
<h3>AI智能投资策略</h3>
<p>富泽证券大力投入金融科技研发,将人工智能技术深度融入投资决策全过程:</p>
<h4>智能投研分析</h4>
<p>通过自然语言处理技术我们的AI系统能够<strong>高效处理海量的研报、公告和新闻资讯</strong>,提取有价值的市场信号,为投资决策提供数据支持。</p>
<h4>理性投资决策</h4>
<p>AI系统完全依赖数据和算法进行判断<strong>避免情绪波动对投资决策的干扰</strong>,帮助投资者在市场波动时保持冷静,做出更稳定的判断。</p>
<h4>智能交易执行</h4>
<p>系统可根据预设条件<strong>自动执行买入或卖出指令</strong>,帮助客户把握稍纵即逝的投资机会,特别适合没有时间全天监控市场的投资者。</p>
<h3>多佣金解决方案</h3>
<p>富泽证券提供透明、灵活的费用结构,帮助投资者降低交易成本:</p>
<h4>差异化佣金方案</h4>
<p>我们根据客户的交易习惯和资产规模,提供<strong>个性化的佣金方案</strong>,大资金量和频繁交易者可获得更优惠的费率。</p>
<h4>费用透明化</h4>
<p>我们坚持<strong>费用公开透明</strong>的原则,明确告知客户所有相关费用,避免隐形收费。与行业内一些"免五"但可能存在合规风险的方案相比,我们更注重在合规前提下为客户提供真正优惠。</p>
<h3>技术平台与服务体验</h3>
<h4>先进的交易系统</h4>
<p>富泽证券提供<strong>稳定流畅的网上交易系统和手机应用程序</strong>支持港股、沪深A股及美股交易让客户随时随地把握投资机会。</p>
<h4>专业客户服务</h4>
<p>我们拥有<strong>专业的客户服务团队</strong>,能够及时回应客户的查询和解答投资过程中遇到的问题。</p>
<h4>资金安全保障</h4>
<p>为方便客户,我们提供<strong>多个转帐方法</strong>包括电子直接付款授权eDDA、转数快FPS以及一般网上银行转帐确保资金转移的便捷和安全。</p>
<h3>我们的理念</h3>
<p>富泽证券(国际)有限公司秉承<strong>"科技赋能投资,智慧创造价值"</strong>的理念,通过<strong>全球化的投资渠道、智能化的投资策略和个性化的服务方案</strong>,为客户提供专业、便捷、安全的金融服务。
</p>
<p>无论您是经验丰富的投资者还是刚入市的新手,富泽证券都将是您值得信赖的合作伙伴,助您在全球资本市场中实现投资目标。</p>
<p>富泽证券(国际)有限公司作为一家现代化金融服务机构,始终致力于为投资者提供<strong>优质的环球股票交易服务</strong><strong>智能化的投资体验</strong></p>
<p>我们将先进的金融科技与专业的金融服务深度融合,助力客户在全球资本市场中把握机遇,实现财富增值。</p>
<h3>核心业务领域</h3>
<p>富泽证券专注于为客户提供多元化的全球金融市场投资服务:</p>
</div>
</section>
<section class="team">
<div class="container">
<h2>领导团队</h2>
<div class="team-grid">
<div class="team-member">
<h3>张明</h3>
<p class="position">创始人 & CEO</p>
<p>人工智能专家拥有15年行业经验。</p>
</div>
<div class="team-member">
<h3>李华</h3>
<p class="position">技术总监</p>
<p>大数据和云计算领域专家。</p>
</div>
<div class="team-member">
<h3>王芳</h3>
<p class="position">市场总监</p>
<p>数字营销和品牌战略专家。</p>
</div>
</div>
</div>
</section>
{% endblock %}

View File

@@ -15,7 +15,7 @@
<div class="container">
<h1>
<a href="{{ url_for('index') }}" class="logo">
<img src="{{ url_for('static', filename='images/logo1.png') }}" alt="{{ t('company_name') }}"
<img src="{{ url_for('static', filename='images/logo_hk.svg') }}" alt="{{ t('company_name') }}"
class="logo-img">
<!-- {{ t('company_name') }} -->
</a>

View File

@@ -470,7 +470,7 @@
<div class="container">
<h1>
<a href="{{ url_for('index') }}" class="logo">
<img src="{{ url_for('static', filename='images/logo1.png') }}" alt="{{ t('company_name') }}"
<img src="{{ url_for('static', filename='images/logo_hk.svg') }}" alt="{{ t('company_name') }}"
class="logo-img">
<!-- {{ t('company_name') }} -->
</a>

View File

@@ -10,7 +10,7 @@
<h1>{{ t('slogan') }}</h1>
<p class="hero-subtitle">{{ t('hero_subtitle') if t('hero_subtitle') else '专业证券交易与投资平台' }}</p>
<p class="hero-description">{{ t('hero_description') if t('hero_description') else
'提供全球市场股票、期货、期权交易,智能投顾服务,助力您的财富增长' }}</p>
'专注于港股、美股市场股票交易,智能投顾服务,助力您的财富增长' }}</p>
<div class="hero-buttons">
<a href="{{ url_for('download') }}" class="btn btn-primary">{{ t('download_app') if t('download_app')
else '下载客户端' }}</a>