sbd-npm 1.2.34 → 1.2.35
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 +1 -1
- package/package.json +1 -1
- package/summary_daily.js +1 -2
- package/util.js +6 -6
package/constant.js
CHANGED
package/package.json
CHANGED
package/summary_daily.js
CHANGED
@@ -581,8 +581,7 @@ $(document).ready(function () {
|
|
581
581
|
render_news_modal: function () {
|
582
582
|
Util.show_loading();
|
583
583
|
Util.post(location.pathname, {action: "pbc_news"}, function (j) {
|
584
|
-
let _html = [];
|
585
|
-
let index = 0;
|
584
|
+
let _html = [], index = 0;
|
586
585
|
j["data"].forEach(function (item) {
|
587
586
|
index++;
|
588
587
|
_html.push("<tr title='", item["content"], "'>");
|
package/util.js
CHANGED
@@ -997,16 +997,16 @@ const Util = {
|
|
997
997
|
_html.push("<tr><td colspan='3'>单位净值</td><td colspan='3'>", net, "</td><td colspan='2'>资产规模</td><td colspan='4'>", assets, "</td></tr>");
|
998
998
|
_html.push("<tr><td colspan='3'>成立日期</td><td colspan='3'>", public_date, "</td><td colspan='2'>发行日期</td><td colspan='4'>", issue_date, "</td></tr>");
|
999
999
|
_html.push("<tr><td colspan='3'>基金管理公司</td><td colspan='3'>", j["administrator"], "</td><td colspan='2'>基金经理</td><td colspan='4'>", j["managers"], "</td></tr>");
|
1000
|
-
_html.push("<tr><td colspan='4'>基金托管人</td><td colspan='8'>", j["custodian"], "</td></tr>");
|
1001
|
-
_html.push("<tr><td colspan='4'>经办律师事务所</td><td colspan='8'>", j["lawyer"], "</td></tr>");
|
1002
|
-
_html.push("<tr><td colspan='4'>会计师事务所</td><td colspan='8'>", j["accounting"], "</td></tr>");
|
1000
|
+
_html.push("<tr><td colspan='4'>基金托管人</td><td colspan='8'>", (j["custodian"] ? j["custodian"] : "--"), "</td></tr>");
|
1001
|
+
_html.push("<tr><td colspan='4'>经办律师事务所</td><td colspan='8'>", (j["lawyer"] ? j["lawyer"] : "--"), "</td></tr>");
|
1002
|
+
_html.push("<tr><td colspan='4'>会计师事务所</td><td colspan='8'>", (j["accounting"] ? j["accounting"] : "--"), "</td></tr>");
|
1003
1003
|
_html.push("<tr><td colspan='4'>注册地址</td><td colspan='8'>", Util.map_url(j["location"], j["location"]), "</td></tr>");
|
1004
1004
|
let fund_stock_url = "https://fund.eastmoney.com/" + j["fund_code"] + ".html";
|
1005
1005
|
if (j["type"] === 2) {
|
1006
1006
|
fund_stock_url = "http://fund.eastmoney.com/f10/ccmx_" + j["fund_code"] + ".html";
|
1007
1007
|
}
|
1008
1008
|
_html.push("<tr class='info'><th colspan='12' text-align='center'>", Util.pack_html_link(fund_stock_url, "持股明细"), " <span id='fund_stock_date_zone'></span></th></tr>");
|
1009
|
-
_html.push("<tr id='" + component_id + "_head'><th>序号</th><th>股票代码</th><th>股票名</th><th>PE</th><th>总市值</th><th>行业</th><th>地区</th><th>价格</th><th>年初至今</th><th>持有量</th><th>占比</th><th>持仓市值</th></tr>");
|
1009
|
+
_html.push("<tr id='" + component_id + "_head'><th>序号</th><th>股票代码</th><th>股票名</th><th>PE</th><th>总市值</th><th>行业</th><th>地区</th><th>价格</th><th>年初至今</th><th>近5日</th><th>持有量</th><th>占比</th><th>持仓市值</th></tr>");
|
1010
1010
|
_html.push("<tr class='" + component_id + "_tr'><td colspan='12'>暂无数据</td></tr>");
|
1011
1011
|
Util.render_table_html(component_id + "_body_body", _html);
|
1012
1012
|
if (j["date_list"]) {
|
@@ -1053,8 +1053,7 @@ const Util = {
|
|
1053
1053
|
}
|
1054
1054
|
}
|
1055
1055
|
});
|
1056
|
-
|
1057
|
-
Util.post(Util.get_url("fund_public"), payload, function (j) {
|
1056
|
+
Util.post(Util.get_url("fund_public"), {action: "public_fund_stock", fund_code: fund_code, date: date, pre_date: pre_date}, function (j) {
|
1058
1057
|
$("." + component_tr).each(function () {
|
1059
1058
|
$(this).remove();
|
1060
1059
|
});
|
@@ -1065,6 +1064,7 @@ const Util = {
|
|
1065
1064
|
_html.push("<td>", index + 1, "</td>");
|
1066
1065
|
_html = Util.stock_basics_html(_html, item);
|
1067
1066
|
_html.push("<td class='year_price_", item["code"], "'>", (item["stock_price"] ? Util.year_price_rate(item["stock_price"], item["year_price"]) : "--"), "</td>");
|
1067
|
+
_html.push("<td class='d5_price_", item["code"], "'>", (item["stock_price"] ? Util.year_price_rate(item["stock_price"], item["d5_price"]) : "--"), "</td>");
|
1068
1068
|
let stock_num_tips = "";
|
1069
1069
|
if (item["stock_num"] > 0 && item["pre_stock_num"] > 0) {
|
1070
1070
|
let gap_stock_num = item["stock_num"] - item["pre_stock_num"];
|