refactor: 前端库整理与图表标准化

库文件整理:
- 所有JS/CSS/字体库统一到lib/js/、lib/css/、lib/webfonts/
- 按名称-版本格式重命名(jquery-3.6.0.min.js等)
- 删除约80个重复/废弃的库文件副本
- 更新17个文件中的引用路径

图表模式标准化:
- moneyflow/realestate/estate3个页面从$.ajax/PHP注入转为fetch+loading overlay模式
- 新增moneyflowData/estateData两个AJAX端点
- chartmoneyflow.js、estate.js移至deprecated

README.md更新为完整功能介绍

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
2026-05-26 14:34:28 +08:00
co-authored by Claude Code
parent 7e57cae242
commit f3f9d19da7
202 changed files with 580 additions and 502999 deletions
+35
View File
@@ -151,3 +151,38 @@ if($_REQUEST['t']=='newTBD'){
$data2 = $result->fetch_all(MYSQLI_ASSOC);
jsonResponse(['datas' => $data, 'dataExt' => $data2]);
}
/*
* moneyflowData: 资金流向数据
*/
if($_REQUEST['t']=='moneyflowData'){
include_once __DIR__."/getData.inc.php";
include_once __DIR__."/getBasic.inc.php";
$code = $_REQUEST['code'] ?? 'sh';
$hsgt = $_REQUEST['hsgt'] ?? 'north_money';
$stacked = $_REQUEST['stacked'] ?? '1';
$t_start = $_REQUEST['t_start'] ?? '2015-06-01';
$t_end = $_REQUEST['t_end'] ?? date('Y-m-d');
$indexData = getIndexData(codetocode($code), date('Ymd',strtotime($t_start)), date('Ymd',strtotime($t_end)));
$flowData = getMoneyFlowData($hsgt, date('Ymd',strtotime($t_start)), date('Ymd',strtotime($t_end)), $stacked);
jsonResponse([
'indexData' => $indexData['data'],
'flowData' => $flowData['data'],
'data_max' => $flowData['data_max'],
'data_min' => $flowData['data_min'],
'data_avg' => $flowData['data_avg'],
'data_last' => $flowData['data_last'],
]);
}
/*
* estateData: 房地产挂牌数据
*/
if($_REQUEST['t']=='estateData'){
include_once __DIR__."/getEstate.inc.php";
$city = $_REQUEST['city'] ?? '宁波';
$t_start = $_REQUEST['t_start'] ?? '2023-06-20';
$t_end = $_REQUEST['t_end'] ?? date('Y-m-d');
$data = getEstateData($city, $t_start, $t_end);
jsonResponse($data);
}