网站netlify
腾讯云
# 安装依赖
yarn
# 项目运行
yarn dev
# 项目打包
yarn build
server {
listen 81;
server_name _;
charset utf-8;
root /usr/share/nginx/html;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
root /home/fundsForWeb;
index index.html index.htm;
}
location /FundMApi/ {
proxy_pass https://fundmobapi.eastmoney.com;
proxy_read_timeout 1500; # 秒
proxy_connect_timeout 1500;
send_timeout 1500;
proxy_ssl_session_reuse off;
proxy_ssl_ciphers HIGH:!DH:!MD5;
}
location /FundMNewApi/ {
proxy_pass https://fundmobapi.eastmoney.com;
proxy_read_timeout 1500; # 秒
proxy_connect_timeout 1500;
send_timeout 1500;
proxy_ssl_session_reuse off;
proxy_ssl_ciphers HIGH:!DH:!MD5;
proxy_set_header 'User-Agent' 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Mobile Safari/537.36';
}
location /api/qt/ {
proxy_pass http://push2.eastmoney.com;
proxy_read_timeout 1500; # 秒
proxy_connect_timeout 1500;
send_timeout 1500;
proxy_ssl_session_reuse off;
proxy_ssl_ciphers HIGH:!DH:!MD5;
}
location /fundsuggest/ {
proxy_pass https://fundsuggest.eastmoney.com/;
proxy_read_timeout 1500; # 秒
proxy_connect_timeout 1500;
send_timeout 1500;
proxy_ssl_session_reuse off;
proxy_ssl_ciphers HIGH:!DH:!MD5;
}
location /rabt/ {
proxy_pass https://x2rr.github.io/;
proxy_read_timeout 1500; # 秒
proxy_connect_timeout 1500;
send_timeout 1500;
proxy_ssl_session_reuse off;
proxy_ssl_ciphers HIGH:!DH:!MD5;
}
location /bspapp {
proxy_pass https://2955b122-0e37-42a7-a4ee-4ddd503fe6b6.bspapp.com/http/user-center/;
proxy_read_timeout 1500; # 秒
proxy_connect_timeout 1500;
send_timeout 1500;
proxy_ssl_session_reuse off;
proxy_ssl_ciphers HIGH:!DH:!MD5;
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
- feat: 累计收益增加当日的估值,方便判断是否加仓;
- feat: 增加累计收益功能;以前用历史累计净值估算不准确;
- fix: 查看基金详情,点下一页,然后关闭;再查看详情,基金详情显示错误的bug;
- fix: 关闭当日收益曲线弹窗,还调用接口的问题;某些基金收益曲线不是最新的时,用最新收益来估算;
- feat: 当日收益曲线加上刷新按钮;
- fix: 打开持有收益率,不展示成本价输入框的bug
- 增加了最新的收益和收益率;
- 增加了累计净值的涨跌幅;