diff --git a/inc/getBasic.inc.php b/inc/getBasic.inc.php index 6c8d9c3..cb0a4b6 100644 --- a/inc/getBasic.inc.php +++ b/inc/getBasic.inc.php @@ -100,8 +100,6 @@ function tscodeToName($ts_code){ return $ts_code; } -} - function getBasicExtData($ts_code,$item,$day_st,$day_end){ $mysqli = get_mysqli_connection(); $allowed_items = ['total_mv','circ_mv','total_mv_all','circ_mv_all','pe_ttm','pb','ps','total_share','float_share','free_share']; diff --git a/index-2.php b/index-2.php index b030b87..20fab5d 100644 --- a/index-2.php +++ b/index-2.php @@ -196,112 +196,67 @@
-
+

研究报告

- -
-

以下是最新的市场研究报告,点击可查看详情。

-
- -
- (.*?)<\/title>/i', $content, $matches); - $title = !empty($matches[1]) ? $matches[1] : $fileName; - - // 输出链接 - echo ' - - ' . htmlspecialchars($title) . ' - '; - } - - } else { - echo '
- 暂无研究报告 -
'; +

按日期查看研究报告。

+ -
- -
- -
- - - + +
+ +
+ + + +
+ + +
+ + @@ -329,7 +284,15 @@ console.log(url); window.open(url); } - + + function showReportGroup(date) { + document.querySelectorAll('.report-group').forEach(el => el.style.display = 'none'); + if (date) { + const target = document.getElementById('report-' + date); + if (target) target.style.display = 'block'; + } + } + // 股票搜索功能 document.getElementById('search-stock').addEventListener('click', function() { const stockCode = document.getElementById('ts_code').value.trim();