sbd-npm 1.2.36 → 1.2.39
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/constant.js +2 -2
- package/package.json +1 -1
- package/stock_basics.js +15 -14
- package/util.js +1 -1
package/constant.js
CHANGED
@@ -45,7 +45,7 @@ const MenuList = [
|
|
45
45
|
{'key': 'trend_doji', 'name': '十字星', 'url': '/718eac2cccaef1c7968f2d121b5f3070'},
|
46
46
|
{'key': 'trend_ma510', 'name': '突破5、10日均线', 'url': '/4d6d7ee173c87b1f939fa454093a63c7'},
|
47
47
|
{'key': 'trend_holder_minimum', 'name': '股东数历史最少', 'url': '/a9e45d918bc565afd76047cafea25824'},
|
48
|
-
{'key': 'trend_fund_hold', 'name': '
|
48
|
+
{'key': 'trend_fund_hold', 'name': '基金数持股变化', 'url': '/067740976f85ec14ddae02b51829ce35'},
|
49
49
|
{'key': 'trend_week_minimum', 'name': '周成交低点', 'url': '/722d94429b8e689fe78dca1cf67a4c67'},
|
50
50
|
{'key': 'trend_margin', 'name': '融资融券余额涨幅', 'url': '/1964a6bc56dc3ce6825b23667c7fb588'},
|
51
51
|
{'key': 'trend_down', 'name': '当前连跌个股', 'url': '/07fb907c7e7572fbeae98bacf5c44593'},
|
@@ -143,7 +143,7 @@ const MenuList = [
|
|
143
143
|
{'key': 'concept_dao', 'name': '成长股事(大道)', 'url': '/7b7ea877f6793752e2b981d82da81e1b'},
|
144
144
|
{'key': 'concept_qian', 'name': '唐史主任司马迁', 'url': '/8b3e40fe74b4870244bc51125da7675a'},
|
145
145
|
{'key': 'concept_dan', 'name': '但斌', 'url': '/3ac0a5857b1d9a111497c0e817e647a1'},
|
146
|
-
{'key': '
|
146
|
+
{'key': 'concept_auto_intelligent', 'name': '智能电动车', 'url': '/cd7be404357809849d267f24fceebcd2'},
|
147
147
|
{'key': 'concept_hk', 'name': '港股', 'url': '/ef12a56d360da9b20c79a763681de1e4'},
|
148
148
|
{'key': 'concept_us', 'name': '美股', 'url': '/f986a81550e4d8a902f8bc0ef07757a6'},
|
149
149
|
{'key': 'concept_chip', 'name': '芯片', 'url': '/491de7096b1cb9355766e5ffdd7018b6'},
|
package/package.json
CHANGED
package/stock_basics.js
CHANGED
@@ -86,6 +86,9 @@ let Stock = {
|
|
86
86
|
Stock.fetch_report_organization();
|
87
87
|
break;
|
88
88
|
case "public_fund":
|
89
|
+
$("#is_fund_ten").click(function () {
|
90
|
+
Stock.fetch_public_fund();
|
91
|
+
});
|
89
92
|
Stock.fetch_public_fund();
|
90
93
|
break;
|
91
94
|
case "public_fund_change":
|
@@ -348,6 +351,7 @@ let Stock = {
|
|
348
351
|
Util.init_table_skeleton({
|
349
352
|
"element_id": "big_deal_summary_table",
|
350
353
|
"head_cols": [
|
354
|
+
{"name": "主力总净流入"},
|
351
355
|
{"name": "20日主力净流入"},
|
352
356
|
{"name": "10日主力净流入"},
|
353
357
|
{"name": "5日主力净流入"},
|
@@ -374,14 +378,11 @@ let Stock = {
|
|
374
378
|
//Stock.pack_big_deal("big_deal1", j["data"], "最近一天", date, date);
|
375
379
|
}
|
376
380
|
if (j["money_net_inflow"]) {
|
377
|
-
let _html = [];
|
378
|
-
let
|
379
|
-
let day3_net_inflow = 0;
|
380
|
-
let day5_net_inflow = 0;
|
381
|
-
let day10_net_inflow = 0;
|
382
|
-
let day20_net_inflow = 0;
|
381
|
+
let _html = [], i = 0, total_net_inflow = 0;
|
382
|
+
let day3_net_inflow = 0, day5_net_inflow = 0, day10_net_inflow = 0, day20_net_inflow = 0
|
383
383
|
j["money_net_inflow"].forEach(function (item) {
|
384
384
|
i++;
|
385
|
+
total_net_inflow += item["main_net_inflow"];
|
385
386
|
if (i <= 3) {
|
386
387
|
day3_net_inflow += item["main_net_inflow"];
|
387
388
|
}
|
@@ -409,6 +410,7 @@ let Stock = {
|
|
409
410
|
Util.render_table_html("big_deal_table_body", _html);
|
410
411
|
_html = [];
|
411
412
|
_html.push("<tr>");
|
413
|
+
_html.push("<td><b class='", Util.text_color(total_net_inflow), "'>", Util.to_unit(total_net_inflow), "</b></td>");
|
412
414
|
_html.push("<td><b class='", Util.text_color(day20_net_inflow), "'>", Util.to_unit(day20_net_inflow), "</b></td>");
|
413
415
|
_html.push("<td><b class='", Util.text_color(day10_net_inflow), "'>", Util.to_unit(day10_net_inflow), "</b></td>");
|
414
416
|
_html.push("<td><b class='", Util.text_color(day5_net_inflow), "'>", Util.to_unit(day5_net_inflow), "</b></td>");
|
@@ -907,19 +909,18 @@ let Stock = {
|
|
907
909
|
{"name": "投资类型"},
|
908
910
|
{"name": "基金管理公司"},
|
909
911
|
{"name": "成立日期", "table_sort": 1},
|
910
|
-
{"name": "持有量", "table_sort": 1},
|
912
|
+
{"name": "持有量", "table_sort": 1, "class": "info"},
|
911
913
|
{"name": "持仓市值", "table_sort": 1},
|
912
914
|
{"name": ""},
|
913
915
|
]
|
914
916
|
});
|
915
|
-
|
917
|
+
let payload = {
|
916
918
|
action: "public_fund",
|
917
|
-
public_fund_date: $("#public_fund_date").val()
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
let total_stock_num = 0;
|
922
|
-
let total_market_capital = 0;
|
919
|
+
public_fund_date: $("#public_fund_date").val(),
|
920
|
+
is_fund_ten: $("#is_fund_ten").prop("checked") ? 1 : 0
|
921
|
+
};
|
922
|
+
Util.post("/stock/" + Stock["code"], payload, function (j) {
|
923
|
+
let _html = [], total_public_fund = 0, total_stock_num = 0, total_market_capital = 0;
|
923
924
|
j["data"].forEach(function (item) {
|
924
925
|
total_public_fund++;
|
925
926
|
total_stock_num += item["stock_num"];
|
package/util.js
CHANGED
@@ -1042,7 +1042,7 @@ const Util = {
|
|
1042
1042
|
$("." + component_tr).each(function () {
|
1043
1043
|
$(this).remove();
|
1044
1044
|
});
|
1045
|
-
$("<tr class='" + component_tr + "'><td colspan='
|
1045
|
+
$("<tr class='" + component_tr + "'><td colspan='14'>Loading...</td></tr>").insertAfter("#" + component_id + "_head");
|
1046
1046
|
let pre_date = 0;
|
1047
1047
|
date = parseInt(date);
|
1048
1048
|
$("#fund_stock_date").find("option").each(function () {
|