sbd-npm 1.3.59 → 1.3.60
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/util.js +23 -3
package/package.json
CHANGED
package/util.js
CHANGED
@@ -1120,7 +1120,7 @@ const Util = {
|
|
1120
1120
|
_html.push("<td>", item["assets"], "亿</td>");
|
1121
1121
|
_html.push("<td>", item["fund_type"], "</td>");
|
1122
1122
|
_html.push("<td>", item["invest_type"], "</td>");
|
1123
|
-
_html.push("<td>", Util.
|
1123
|
+
_html.push("<td>", Util.pack_fund_administrator(item), "</td>");
|
1124
1124
|
_html.push("<td>", public_date, "</td>");
|
1125
1125
|
_html.push("<td data-val='", item["stock_num"], "' title='", item["stock_num"], "'>", Util.to_unit(item["stock_num"], 3), "股</td>");
|
1126
1126
|
_html.push("<td data-val='", item["market_capital"], "' title='", item["market_capital"], "'>", Util.to_unit(item["market_capital"], 3), "</td>");
|
@@ -1313,8 +1313,7 @@ const Util = {
|
|
1313
1313
|
_html.push("<tr><td colspan='3'>基金类型</td><td colspan='4'>", j["fund_type"], "</td><td colspan='3'>投资类型</td><td colspan='4'>", j["invest_type"], "</td></tr>");
|
1314
1314
|
_html.push("<tr><td colspan='3'>单位净值</td><td colspan='4'>", net, "</td><td colspan='3'>资产规模</td><td colspan='4'>", assets, "</td></tr>");
|
1315
1315
|
_html.push("<tr><td colspan='3'>成立日期</td><td colspan='4'>", public_date, "</td><td colspan='3'>发行日期</td><td colspan='4'>", issue_date, "</td></tr>");
|
1316
|
-
|
1317
|
-
_html.push("<tr><td colspan='3'>基金管理公司</td><td colspan='4'>", administrator, "</td><td colspan='3'>基金经理</td><td colspan='4'>", j["managers"], "</td></tr>");
|
1316
|
+
_html.push("<tr><td colspan='3'>基金管理公司</td><td colspan='4'>", Util.pack_fund_administrator(j), "</td><td colspan='3'>基金经理</td><td colspan='4'>", j["managers"], "</td></tr>");
|
1318
1317
|
_html.push("<tr><td colspan='5'>基金托管人</td><td colspan='9'>", (j["custodian"] ? j["custodian"] : "--"), "</td></tr>");
|
1319
1318
|
_html.push("<tr><td colspan='5'>经办律师事务所</td><td colspan='9'>", (j["lawyer"] ? j["lawyer"] : "--"), "</td></tr>");
|
1320
1319
|
_html.push("<tr><td colspan='5'>会计师事务所</td><td colspan='9'>", (j["accounting"] ? j["accounting"] : "--"), "</td></tr>");
|
@@ -2998,6 +2997,9 @@ const Util = {
|
|
2998
2997
|
*/
|
2999
2998
|
pack_holder_num: function (item) {
|
3000
2999
|
let holder_info = "--";
|
3000
|
+
if (item["code"] && Util.is_hk(item["code"])) {
|
3001
|
+
return holder_info;
|
3002
|
+
}
|
3001
3003
|
if (item["holder_num"] && item["holder_num"] > 0) {
|
3002
3004
|
if (item["pre_holder_num"] && item["pre_holder_num"] > 0) {
|
3003
3005
|
holder_info = Util.digit_compare_trend(item["holder_num"], item["pre_holder_num"]);
|
@@ -3022,6 +3024,24 @@ const Util = {
|
|
3022
3024
|
return Util.pack_html_link("/stock/" + item["code"] + "?tab=public_fund", fund_num);
|
3023
3025
|
},
|
3024
3026
|
|
3027
|
+
/**
|
3028
|
+
* 组装基金公司数据
|
3029
|
+
* @param item
|
3030
|
+
* @returns {string}
|
3031
|
+
*/
|
3032
|
+
pack_fund_administrator: function (item) {
|
3033
|
+
if (item["administrator"]) {
|
3034
|
+
let url = "";
|
3035
|
+
if (item["administrator_code"]) {
|
3036
|
+
url = "https://fund.eastmoney.com/company/" + item["administrator_code"] + ".html";
|
3037
|
+
} else {
|
3038
|
+
url = "https://baike.baidu.com/item/" + item["administrator"].replace("基金管理", "基金");
|
3039
|
+
}
|
3040
|
+
return Util.pack_html_link(url, item["administrator"]);
|
3041
|
+
}
|
3042
|
+
return "--";
|
3043
|
+
},
|
3044
|
+
|
3025
3045
|
/**
|
3026
3046
|
* 雪球人数关注排名数据
|
3027
3047
|
* @param item
|