sbd-npm 1.2.32 → 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 +4 -2
- package/package.json +1 -1
- package/summary_daily.js +1 -2
- package/util.js +7 -6
- package/.npmignore +0 -1
package/constant.js
CHANGED
@@ -138,9 +138,9 @@ const MenuList = [
|
|
138
138
|
{'key': 'concept_market_situation', 'name': '市值风云', 'url': '/02fdaf4d66cdecb092bcd65f569aa493'},
|
139
139
|
{'key': 'concept_down_top', 'name': '15-21年的超跌股', 'url': '/ae3bbf97a358392cfaa0ceb35cb3fb57'},
|
140
140
|
{'key': 'concept_cloud', 'name': '心似白云常自在', 'url': '/1d883188398a3a8c743748c5eb81fe7b'},
|
141
|
-
{'key': 'concept_cannon', 'name': '黄家礼炮', 'url': '/d6128a3ad91d545f2920fa2e324c37e1'},
|
142
141
|
{'key': 'concept_wen', 'name': '崇文不尚武', 'url': '/b6fd64a2c54250b8ac039123e74e9b7e'},
|
143
142
|
{'key': 'concept_niu', 'name': '老曾阿牛', 'url': '/0f4a2714971424024c1ddd8651c26569'},
|
143
|
+
{'key': 'concept_dao', 'name': '成长股事(大道)', 'url': '/7b7ea877f6793752e2b981d82da81e1b'},
|
144
144
|
{'key': 'concept_qian', 'name': '唐史主任司马迁', 'url': '/8b3e40fe74b4870244bc51125da7675a'},
|
145
145
|
{'key': 'concept_dan', 'name': '但斌', 'url': '/3ac0a5857b1d9a111497c0e817e647a1'},
|
146
146
|
{'key': 'concept_hill', 'name': '高瓴资本', 'url': '/9891755f194db180f1fe9a8c47a51829'},
|
@@ -239,7 +239,9 @@ const ClassifyList = [
|
|
239
239
|
'中证500',
|
240
240
|
'中证100',
|
241
241
|
'科创50',
|
242
|
-
'
|
242
|
+
'上证',
|
243
|
+
'深证',
|
244
|
+
'科创板',
|
243
245
|
'中小板',
|
244
246
|
'创业板',
|
245
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
@@ -25,6 +25,7 @@ const Util = {
|
|
25
25
|
load_token: "loading_div",
|
26
26
|
interval_timer: null,
|
27
27
|
stock_timer_id: 0,
|
28
|
+
is_init: 0,
|
28
29
|
// 1年的天数
|
29
30
|
one_year_day: 365,
|
30
31
|
// 一天的秒数
|
@@ -996,16 +997,16 @@ const Util = {
|
|
996
997
|
_html.push("<tr><td colspan='3'>单位净值</td><td colspan='3'>", net, "</td><td colspan='2'>资产规模</td><td colspan='4'>", assets, "</td></tr>");
|
997
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>");
|
998
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>");
|
999
|
-
_html.push("<tr><td colspan='4'>基金托管人</td><td colspan='8'>", j["custodian"], "</td></tr>");
|
1000
|
-
_html.push("<tr><td colspan='4'>经办律师事务所</td><td colspan='8'>", j["lawyer"], "</td></tr>");
|
1001
|
-
_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>");
|
1002
1003
|
_html.push("<tr><td colspan='4'>注册地址</td><td colspan='8'>", Util.map_url(j["location"], j["location"]), "</td></tr>");
|
1003
1004
|
let fund_stock_url = "https://fund.eastmoney.com/" + j["fund_code"] + ".html";
|
1004
1005
|
if (j["type"] === 2) {
|
1005
1006
|
fund_stock_url = "http://fund.eastmoney.com/f10/ccmx_" + j["fund_code"] + ".html";
|
1006
1007
|
}
|
1007
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>");
|
1008
|
-
_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>");
|
1009
1010
|
_html.push("<tr class='" + component_id + "_tr'><td colspan='12'>暂无数据</td></tr>");
|
1010
1011
|
Util.render_table_html(component_id + "_body_body", _html);
|
1011
1012
|
if (j["date_list"]) {
|
@@ -1052,8 +1053,7 @@ const Util = {
|
|
1052
1053
|
}
|
1053
1054
|
}
|
1054
1055
|
});
|
1055
|
-
|
1056
|
-
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) {
|
1057
1057
|
$("." + component_tr).each(function () {
|
1058
1058
|
$(this).remove();
|
1059
1059
|
});
|
@@ -1064,6 +1064,7 @@ const Util = {
|
|
1064
1064
|
_html.push("<td>", index + 1, "</td>");
|
1065
1065
|
_html = Util.stock_basics_html(_html, item);
|
1066
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>");
|
1067
1068
|
let stock_num_tips = "";
|
1068
1069
|
if (item["stock_num"] > 0 && item["pre_stock_num"] > 0) {
|
1069
1070
|
let gap_stock_num = item["stock_num"] - item["pre_stock_num"];
|
package/.npmignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
sbd-npm.md
|