sbd-npm 1.2.38 → 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/package.json +1 -1
- package/stock_basics.js +10 -8
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,7 +351,7 @@ let Stock = {
|
|
348
351
|
Util.init_table_skeleton({
|
349
352
|
"element_id": "big_deal_summary_table",
|
350
353
|
"head_cols": [
|
351
|
-
{"name": "
|
354
|
+
{"name": "主力总净流入"},
|
352
355
|
{"name": "20日主力净流入"},
|
353
356
|
{"name": "10日主力净流入"},
|
354
357
|
{"name": "5日主力净流入"},
|
@@ -911,14 +914,13 @@ let Stock = {
|
|
911
914
|
{"name": ""},
|
912
915
|
]
|
913
916
|
});
|
914
|
-
|
917
|
+
let payload = {
|
915
918
|
action: "public_fund",
|
916
|
-
public_fund_date: $("#public_fund_date").val()
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
let total_stock_num = 0;
|
921
|
-
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;
|
922
924
|
j["data"].forEach(function (item) {
|
923
925
|
total_public_fund++;
|
924
926
|
total_stock_num += item["stock_num"];
|