sbd-npm 1.3.72 → 1.3.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/stock_basics.js +11 -6
- package/summary_daily.js +5 -5
- package/util.js +6 -6
package/package.json
CHANGED
package/stock_basics.js
CHANGED
@@ -367,6 +367,7 @@ let Stock = {
|
|
367
367
|
"element_id": "big_deal_summary_table",
|
368
368
|
"head_cols": [
|
369
369
|
{"name": "主力总净流入", "link": money_inflow_url},
|
370
|
+
{"name": "60日主力净流入"},
|
370
371
|
{"name": "20日主力净流入", "link": money_inflow_url + "?money_inflow_type=5"},
|
371
372
|
{"name": "10日主力净流入", "link": money_inflow_url + "?money_inflow_type=4"},
|
372
373
|
{"name": "5日主力净流入", "link": money_inflow_url + "?money_inflow_type=3"},
|
@@ -394,7 +395,7 @@ let Stock = {
|
|
394
395
|
}
|
395
396
|
if (j["money_net_inflow"]) {
|
396
397
|
let _html = [], i = 0, total_net_inflow = 0;
|
397
|
-
let day3_net_inflow = 0, day5_net_inflow = 0, day10_net_inflow = 0, day20_net_inflow = 0
|
398
|
+
let day3_net_inflow = 0, day5_net_inflow = 0, day10_net_inflow = 0, day20_net_inflow = 0, day60_net_inflow = 0;
|
398
399
|
j["money_net_inflow"].forEach(function (item) {
|
399
400
|
i++;
|
400
401
|
total_net_inflow += item["main_net_inflow"];
|
@@ -410,6 +411,9 @@ let Stock = {
|
|
410
411
|
if (i <= 20) {
|
411
412
|
day20_net_inflow += item["main_net_inflow"];
|
412
413
|
}
|
414
|
+
if (i <= 60) {
|
415
|
+
day60_net_inflow += item["main_net_inflow"];
|
416
|
+
}
|
413
417
|
_html.push("<tr>");
|
414
418
|
_html.push("<td>", Util.seconds_to_format(item["date"], "%Y-%m-%d"), "</td>");
|
415
419
|
_html.push("<td><b class='", Util.text_color(item["price_change"]), "'>", item["price"], "(", item["price_change"], "%)</b></td>");
|
@@ -425,11 +429,12 @@ let Stock = {
|
|
425
429
|
Util.render_table_html("big_deal_table_body", _html);
|
426
430
|
_html = [];
|
427
431
|
_html.push("<tr>");
|
428
|
-
_html.push("<td><b class='", Util.text_color(total_net_inflow), "'>", Util.to_unit(total_net_inflow,
|
429
|
-
_html.push("<td><b class='", Util.text_color(
|
430
|
-
_html.push("<td><b class='", Util.text_color(
|
431
|
-
_html.push("<td><b class='", Util.text_color(
|
432
|
-
_html.push("<td><b class='", Util.text_color(
|
432
|
+
_html.push("<td><b class='", Util.text_color(total_net_inflow), "'>", Util.to_unit(total_net_inflow, 3), "</b></td>");
|
433
|
+
_html.push("<td><b class='", Util.text_color(day60_net_inflow), "'>", Util.to_unit(day60_net_inflow, 3), "</b></td>");
|
434
|
+
_html.push("<td><b class='", Util.text_color(day20_net_inflow), "'>", Util.to_unit(day20_net_inflow, 3), "</b></td>");
|
435
|
+
_html.push("<td><b class='", Util.text_color(day10_net_inflow), "'>", Util.to_unit(day10_net_inflow, 3), "</b></td>");
|
436
|
+
_html.push("<td><b class='", Util.text_color(day5_net_inflow), "'>", Util.to_unit(day5_net_inflow, 3), "</b></td>");
|
437
|
+
_html.push("<td><b class='", Util.text_color(day3_net_inflow), "'>", Util.to_unit(day3_net_inflow, 3), "</b></td>");
|
433
438
|
_html.push("</tr>");
|
434
439
|
Util.render_table_html("big_deal_summary_table_body", _html);
|
435
440
|
}
|
package/summary_daily.js
CHANGED
@@ -110,7 +110,7 @@ $(function () {
|
|
110
110
|
let index_name = item["href"] ? Util.pack_html_link(item["href"], item["name"]) : item["name"];
|
111
111
|
_html.push('<span class="count_top"><i class="fa"></i> ', index_name, '</span>');
|
112
112
|
_html.push('<div class="count ', cls, '">', item["value"], '</div>');
|
113
|
-
_html.push('<span class="count_bottom"><i class="', cls, '"><i class="fa ', sort, '"></i>', item["change"], '(<span id="', change_rate_id, '">', item["change_rate"], '</span>%)</i></span>');
|
113
|
+
_html.push('<span class="count_bottom"><i class="', cls, '"><i class="fa ', sort, '"></i>', item["change"], '(<span id="', change_rate_id, '">', Util.to_float(item["change_rate"], 2), '</span>%)</i></span>');
|
114
114
|
_html.push('</div>');
|
115
115
|
});
|
116
116
|
$("#index_summary_data").html(_html.join(""));
|
@@ -450,9 +450,9 @@ $(function () {
|
|
450
450
|
_html.push("<tr>");
|
451
451
|
_html.push("<td>", Util.seconds_to_format(item["date"], "%Y-%m-%d"), "</td>");
|
452
452
|
_html.push("<td>", item["open"], "</td>");
|
453
|
-
_html.push("<td>", item["close"], "</td>");
|
454
453
|
_html.push("<td>", item["low"], "</td>");
|
455
454
|
_html.push("<td>", item["high"], "</td>");
|
455
|
+
_html.push("<td>", item["close"], "</td>");
|
456
456
|
_html.push("<td>", Util.parse_ratio(item["p_change_rate"]), "</td>");
|
457
457
|
_html.push("<td data-val='", item["volume"], "'>", Util.to_unit(item["volume"]), "股</td>");
|
458
458
|
_html.push("<td data-val='", item["amount"], "'>", Util.to_unit(item["amount"]), "</td>");
|
@@ -624,13 +624,13 @@ $(function () {
|
|
624
624
|
$("#index_hist_modal_title").html(Util.pack_html_link("https://m.10jqka.com.cn/stockpage/48_883957/", "同花顺全A指数"));
|
625
625
|
Util.init_table_skeleton({
|
626
626
|
"element_id": "index_hist_modal_body",
|
627
|
-
"caption": '<caption class="text-right"><div class="form-inline"><div class="form-group" id="index_hist_modal_start_end_date"></div><button class="btn btn-default" id="index_hist_modal_query">查 询</button></div></caption>',
|
627
|
+
"caption": '<caption class="text-right" style="margin-top: -10px; padding-bottom: 10px;"><div class="form-inline"><div class="form-group" id="index_hist_modal_start_end_date"></div><button class="btn btn-default" id="index_hist_modal_query">查 询</button></div></caption>',
|
628
628
|
"head_cols": [
|
629
|
-
{"name": "日期", "table_sort": 1},
|
629
|
+
{"name": "日期", "class": "info", "table_sort": 1},
|
630
630
|
{"name": "开盘价", "table_sort": 1},
|
631
|
-
{"name": "收盘价", "table_sort": 1},
|
632
631
|
{"name": "最低价", "table_sort": 1},
|
633
632
|
{"name": "最高价", "table_sort": 1},
|
633
|
+
{"name": "收盘价", "table_sort": 1},
|
634
634
|
{"name": "涨跌", "table_sort": 1},
|
635
635
|
{"name": "成交量", "table_sort": 1},
|
636
636
|
{"name": "成交额", "table_sort": 1},
|
package/util.js
CHANGED
@@ -1636,9 +1636,9 @@ const Util = {
|
|
1636
1636
|
Util.init_modal_skeleton(component_id);
|
1637
1637
|
Util.init_table_skeleton({
|
1638
1638
|
"element_id": component_id + "_body",
|
1639
|
-
"caption": '<caption class="text-right"><div class="form-inline"><div class="form-group" id="currency_modal_start_end_date"></div><button class="btn btn-default" id="' + component_id + '_query">查 询</button></div></caption>',
|
1639
|
+
"caption": '<caption class="text-right" style="margin-top: -10px;"><div class="form-inline"><div class="form-group" id="currency_modal_start_end_date"></div><button class="btn btn-default" id="' + component_id + '_query">查 询</button></div></caption>',
|
1640
1640
|
"head_cols": [
|
1641
|
-
{"name": "日期", "table_sort": 1},
|
1641
|
+
{"name": "日期", "class": "info", "table_sort": 1},
|
1642
1642
|
{"name": "价格", "table_sort": 1},
|
1643
1643
|
{"name": "最低价", "table_sort": 1},
|
1644
1644
|
{"name": "最高价", "table_sort": 1},
|
@@ -1724,13 +1724,13 @@ const Util = {
|
|
1724
1724
|
Util.init_modal_skeleton(component_id);
|
1725
1725
|
Util.init_table_skeleton({
|
1726
1726
|
"element_id": component_id + "_body",
|
1727
|
-
"caption": '<caption class="text-right"><div class="form-inline"><div class="form-group" id="' + component_id + '_start_end_date"></div><button class="btn btn-default" id="' + component_id + '_query">查 询</button></div></caption>',
|
1727
|
+
"caption": '<caption class="text-right" style="margin-top: -10px;"><div class="form-inline"><div class="form-group" id="' + component_id + '_start_end_date"></div><button class="btn btn-default" id="' + component_id + '_query">查 询</button></div></caption>',
|
1728
1728
|
"head_cols": [
|
1729
|
-
{"name": "日期", "table_sort": 1},
|
1729
|
+
{"name": "日期", "class": "info", "table_sort": 1},
|
1730
1730
|
{"name": "开盘价", "table_sort": 1},
|
1731
|
-
{"name": "收盘价", "table_sort": 1},
|
1732
1731
|
{"name": "最低价", "table_sort": 1},
|
1733
1732
|
{"name": "最高价", "table_sort": 1},
|
1733
|
+
{"name": "收盘价", "table_sort": 1},
|
1734
1734
|
{"name": "涨跌", "table_sort": 1},
|
1735
1735
|
{"name": "成交额", "table_sort": 1},
|
1736
1736
|
{"name": "总市值", "table_sort": 1},
|
@@ -1791,9 +1791,9 @@ const Util = {
|
|
1791
1791
|
}
|
1792
1792
|
_html.push("<td>", Util.seconds_to_format(item["date"], "%Y-%m-%d"), "</td>");
|
1793
1793
|
_html.push("<td>", item["open"], "</td>");
|
1794
|
-
_html.push("<td>", item["price"], "</td>");
|
1795
1794
|
_html.push("<td>", item["low"], "</td>");
|
1796
1795
|
_html.push("<td>", item["high"], "</td>");
|
1796
|
+
_html.push("<td>", item["price"], "</td>");
|
1797
1797
|
_html.push("<td>", Util.parse_ratio(item["p_change"]), "</td>");
|
1798
1798
|
_html.push("<td>", Util.to_unit(item["amount"]), "</td>");
|
1799
1799
|
_html.push("<td>", Util.to_unit(item["market_capital"]), "</td>");
|