sbd-npm 1.2.37 → 1.2.38

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.2.37",
3
+ "version": "1.2.38",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/stock_basics.js CHANGED
@@ -348,6 +348,7 @@ let Stock = {
348
348
  Util.init_table_skeleton({
349
349
  "element_id": "big_deal_summary_table",
350
350
  "head_cols": [
351
+ {"name": "所有主力净流入"},
351
352
  {"name": "20日主力净流入"},
352
353
  {"name": "10日主力净流入"},
353
354
  {"name": "5日主力净流入"},
@@ -374,14 +375,11 @@ let Stock = {
374
375
  //Stock.pack_big_deal("big_deal1", j["data"], "最近一天", date, date);
375
376
  }
376
377
  if (j["money_net_inflow"]) {
377
- let _html = [];
378
- let i = 0;
379
- let day3_net_inflow = 0;
380
- let day5_net_inflow = 0;
381
- let day10_net_inflow = 0;
382
- let day20_net_inflow = 0;
378
+ let _html = [], i = 0, total_net_inflow = 0;
379
+ let day3_net_inflow = 0, day5_net_inflow = 0, day10_net_inflow = 0, day20_net_inflow = 0
383
380
  j["money_net_inflow"].forEach(function (item) {
384
381
  i++;
382
+ total_net_inflow += item["main_net_inflow"];
385
383
  if (i <= 3) {
386
384
  day3_net_inflow += item["main_net_inflow"];
387
385
  }
@@ -409,6 +407,7 @@ let Stock = {
409
407
  Util.render_table_html("big_deal_table_body", _html);
410
408
  _html = [];
411
409
  _html.push("<tr>");
410
+ _html.push("<td><b class='", Util.text_color(total_net_inflow), "'>", Util.to_unit(total_net_inflow), "</b></td>");
412
411
  _html.push("<td><b class='", Util.text_color(day20_net_inflow), "'>", Util.to_unit(day20_net_inflow), "</b></td>");
413
412
  _html.push("<td><b class='", Util.text_color(day10_net_inflow), "'>", Util.to_unit(day10_net_inflow), "</b></td>");
414
413
  _html.push("<td><b class='", Util.text_color(day5_net_inflow), "'>", Util.to_unit(day5_net_inflow), "</b></td>");
@@ -907,7 +906,7 @@ let Stock = {
907
906
  {"name": "投资类型"},
908
907
  {"name": "基金管理公司"},
909
908
  {"name": "成立日期", "table_sort": 1},
910
- {"name": "持有量", "table_sort": 1},
909
+ {"name": "持有量", "table_sort": 1, "class": "info"},
911
910
  {"name": "持仓市值", "table_sort": 1},
912
911
  {"name": ""},
913
912
  ]
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='12'>Loading...</td></tr>").insertAfter("#" + component_id + "_head");
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 () {