sbd-npm 1.2.34 → 1.2.37
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 +3 -3
- package/package.json +1 -1
- package/summary_daily.js +1 -2
- package/util.js +19 -17
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'},
|
@@ -241,7 +241,7 @@ const ClassifyList = [
|
|
241
241
|
'科创50',
|
242
242
|
'上证',
|
243
243
|
'深证',
|
244
|
-
'
|
244
|
+
'科创板',
|
245
245
|
'中小板',
|
246
246
|
'创业板',
|
247
247
|
'创业板50',
|
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
@@ -487,7 +487,7 @@ const Util = {
|
|
487
487
|
* @param code
|
488
488
|
* @returns {*}
|
489
489
|
*/
|
490
|
-
us_logo_html: function(code) {
|
490
|
+
us_logo_html: function (code) {
|
491
491
|
code = code.toUpperCase();
|
492
492
|
let logo_url = "https://storage.googleapis.com/iex/api/logos/" + code + ".png";
|
493
493
|
return '<a rel="noopener noreferrer nofollow" href="' + logo_url + '" target="_blank"><img alt="' + code + '" width="20px" src="' + logo_url + '"/><a>';
|
@@ -991,23 +991,23 @@ const Util = {
|
|
991
991
|
let assets = j["assets"] > 0 ? (j["assets"] + "亿") : "--";
|
992
992
|
let public_date = j["public_date"] > 0 ? Util.seconds_to_format(j["public_date"], "%Y-%m-%d") : "--";
|
993
993
|
let issue_date = j["issue_date"] > 0 ? Util.seconds_to_format(j["issue_date"], "%Y-%m-%d") : "--";
|
994
|
-
_html.push("<tr title='最后更新时间: ", Util.seconds_to_format(j["update_time"], "%Y-%m-%d"), "' class='info'><th colspan='
|
995
|
-
_html.push("<tr><td colspan='3'>基金代码</td><td colspan='
|
996
|
-
_html.push("<tr><td colspan='3'>基金类型</td><td colspan='
|
997
|
-
_html.push("<tr><td colspan='3'>单位净值</td><td colspan='
|
998
|
-
_html.push("<tr><td colspan='3'>成立日期</td><td colspan='
|
999
|
-
_html.push("<tr><td colspan='3'>基金管理公司</td><td colspan='
|
1000
|
-
_html.push("<tr><td colspan='
|
1001
|
-
_html.push("<tr><td colspan='
|
1002
|
-
_html.push("<tr><td colspan='
|
1003
|
-
_html.push("<tr><td colspan='
|
994
|
+
_html.push("<tr title='最后更新时间: ", Util.seconds_to_format(j["update_time"], "%Y-%m-%d"), "' class='info'><th colspan='14' text-align='center'>基金概况</th></tr>");
|
995
|
+
_html.push("<tr><td colspan='3'>基金代码</td><td colspan='4'>", Util.pack_html_link('https://fund.eastmoney.com/' + j["fund_code"] + '.html', j["fund_code"]), "</td><td colspan='3'>基金名</td><td colspan='4'>", Util.pack_html_link('https://fundf10.eastmoney.com/jbgk_' + j["fund_code"] + '.html', j["fund_name"]), "</td></tr>");
|
996
|
+
_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>");
|
997
|
+
_html.push("<tr><td colspan='3'>单位净值</td><td colspan='4'>", net, "</td><td colspan='3'>资产规模</td><td colspan='4'>", assets, "</td></tr>");
|
998
|
+
_html.push("<tr><td colspan='3'>成立日期</td><td colspan='4'>", public_date, "</td><td colspan='3'>发行日期</td><td colspan='4'>", issue_date, "</td></tr>");
|
999
|
+
_html.push("<tr><td colspan='3'>基金管理公司</td><td colspan='4'>", j["administrator"], "</td><td colspan='3'>基金经理</td><td colspan='4'>", j["managers"], "</td></tr>");
|
1000
|
+
_html.push("<tr><td colspan='5'>基金托管人</td><td colspan='9'>", (j["custodian"] ? j["custodian"] : "--"), "</td></tr>");
|
1001
|
+
_html.push("<tr><td colspan='5'>经办律师事务所</td><td colspan='9'>", (j["lawyer"] ? j["lawyer"] : "--"), "</td></tr>");
|
1002
|
+
_html.push("<tr><td colspan='5'>会计师事务所</td><td colspan='9'>", (j["accounting"] ? j["accounting"] : "--"), "</td></tr>");
|
1003
|
+
_html.push("<tr><td colspan='5'>注册地址</td><td colspan='9'>", 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
|
-
_html.push("<tr class='info'><th colspan='
|
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>");
|
1010
|
-
_html.push("<tr class='" + component_id + "_tr'><td colspan='
|
1008
|
+
_html.push("<tr class='info'><th colspan='14' 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>近5日</th><th>股东数</th><th>持有量</th><th>占比</th><th>持仓市值</th></tr>");
|
1010
|
+
_html.push("<tr class='" + component_id + "_tr'><td colspan='14'>暂无数据</td></tr>");
|
1011
1011
|
Util.render_table_html(component_id + "_body_body", _html);
|
1012
1012
|
if (j["date_list"]) {
|
1013
1013
|
_html = [];
|
@@ -1024,7 +1024,7 @@ const Util = {
|
|
1024
1024
|
Util.fetch_public_fund_stock(j["fund_code"], fsd_obj.val(), component_id);
|
1025
1025
|
}
|
1026
1026
|
} else {
|
1027
|
-
_html.push("<tr><td colspan='
|
1027
|
+
_html.push("<tr><td colspan='14'>暂无数据</td></tr>");
|
1028
1028
|
Util.render_table_html(component_id + "_body_body", _html);
|
1029
1029
|
}
|
1030
1030
|
});
|
@@ -1064,7 +1064,9 @@ const Util = {
|
|
1064
1064
|
_html.push("<tr class='" + component_tr + "'>");
|
1065
1065
|
_html.push("<td>", index + 1, "</td>");
|
1066
1066
|
_html = Util.stock_basics_html(_html, item);
|
1067
|
-
_html.push("<td
|
1067
|
+
_html.push("<td>", Util.year_price_rate(item["stock_price"], item["year_price"]), "</td>");
|
1068
|
+
_html.push("<td>", Util.year_price_rate(item["stock_price"], item["d5_price"]), "</td>");
|
1069
|
+
_html.push("<td>", Util.pack_holder_num(item), "</td>");
|
1068
1070
|
let stock_num_tips = "";
|
1069
1071
|
if (item["stock_num"] > 0 && item["pre_stock_num"] > 0) {
|
1070
1072
|
let gap_stock_num = item["stock_num"] - item["pre_stock_num"];
|
@@ -1086,7 +1088,7 @@ const Util = {
|
|
1086
1088
|
_html.push("</tr>");
|
1087
1089
|
});
|
1088
1090
|
} else {
|
1089
|
-
_html.push("<tr class='" + component_tr + "'><td colspan='
|
1091
|
+
_html.push("<tr class='" + component_tr + "'><td colspan='14'>暂无数据</td></tr>");
|
1090
1092
|
}
|
1091
1093
|
$(_html.join("")).insertAfter("#" + component_id + "_head");
|
1092
1094
|
Util.hide_tips();
|