sbd-npm 1.5.56 → 1.5.58
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/status.js +3 -6
- package/util.js +25 -17
package/constant.js
CHANGED
|
@@ -171,7 +171,6 @@ const MenuList = [
|
|
|
171
171
|
{'key': 'portfolio_benjamin', 'name': 'Benjamin华', 'url': '/0x1cc3f28dd896b3c7aa72d8d3f24e96adc41ab39c'},
|
|
172
172
|
{'key': 'portfolio_chen', 'name': '陈营长极品投资', 'url': '/0x3f8cbeeeb38138a626e935017a4cc25f47ce3dbe'},
|
|
173
173
|
{'key': 'portfolio_zeng', 'name': '老曾阿牛', 'url': '/0x2cf53b473b916e1d8b9998de00bb782171bb2630'},
|
|
174
|
-
{'key': 'portfolio_hk_mutual', 'name': '港股通新票', 'url': '/0xa496fad09b737531211cb588399cd5c9cac2f8b5'},
|
|
175
174
|
{'key': 'portfolio_bellwether', 'name': '龙头股', 'url': '/0x7cdfb14131c3693c439a90333790eeb5fce70a12'},
|
|
176
175
|
{'key': 'portfolio_market_situation', 'name': '市值风云', 'url': '/0x3720c6de05378152ef0e758b56199bfcbc15274b'},
|
|
177
176
|
{'key': 'portfolio_chip', 'name': '芯片半导体', 'url': '/0x05ad16cc1cc6b9ee1f3bb134e798a83037878de3'},
|
|
@@ -202,6 +201,7 @@ const MenuList = [
|
|
|
202
201
|
{'key': 'hk_sell_short', 'name': '沽空排行', 'url': '/0x4ecddc987891875a42d206620cd97ca382613485'},
|
|
203
202
|
{'key': 'hk_mutual', 'name': '港股通持股排行', 'url': '/0x310a47a6abd868f19cd3fdbf2f2566813cb45d57'},
|
|
204
203
|
{'key': 'hk_institutional_positions', 'name': '机构持仓变化', 'url': '/0xe5606bba43cf85cc3870f3608fe556648ce13084'},
|
|
204
|
+
{'key': 'hk_new_mutual', 'name': '港股通新入通股', 'url': '/0xf64298e1029e6e4490069f20286bb7cabf986c9e'},
|
|
205
205
|
{'key': 'hk_prepare_mutual', 'name': '准入通股', 'url': '/0x737d14bafc0049c5a4b3a2ef34e6c2a8e37462bc'}
|
|
206
206
|
]
|
|
207
207
|
},
|
package/package.json
CHANGED
package/status.js
CHANGED
|
@@ -544,12 +544,9 @@ $(function () {
|
|
|
544
544
|
if (navigator.systemLanguage) {
|
|
545
545
|
html.push("<tr><td class='text-right'>系统语言</td><td class='text-left' style='word-break: break-all'>" + navigator.systemLanguage + "</td></tr>");
|
|
546
546
|
}
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
if (navigator.deviceMemory) {
|
|
551
|
-
html.push("<tr><td class='text-right'>设备内存</td><td class='text-left' style='word-break: break-all'>", navigator.deviceMemory, "GB</td></tr>");
|
|
552
|
-
}
|
|
547
|
+
html.push("<tr><td class='text-right'>CPU逻辑核心数</td><td class='text-left' style='word-break: break-all'>", navigator.hardwareConcurrency, "</td></tr>");
|
|
548
|
+
// navigator.deviceMemory 属于需要安全上下文(Secure Context)才能使用的API console.log(window.isSecureContext, location.protocol);
|
|
549
|
+
html.push("<tr><td class='text-right'>设备内存</td><td class='text-left' style='word-break: break-all'>", navigator.deviceMemory, "GB</td></tr>");
|
|
553
550
|
if (navigator.connection) {
|
|
554
551
|
if (navigator.connection.effectiveType) {
|
|
555
552
|
html.push("<tr><td class='text-right'>网络类型</td><td class='text-left' style='word-break: break-all'>", navigator.connection.effectiveType.toUpperCase(), "</td></tr>");
|
package/util.js
CHANGED
|
@@ -629,14 +629,13 @@ const Util = {
|
|
|
629
629
|
html.push("<td class='hk_industry'>", item.industry, "</td>");
|
|
630
630
|
html.push("<td>", Util.map_url(item.province_city), "</td>");
|
|
631
631
|
html.push("<td>", Util.to_float((item.pe_ttm ? item.pe_ttm : item.pe), 2), "</td>");
|
|
632
|
-
html.push("<td>", Util.to_float(item.pb, 2), "</td>");
|
|
633
|
-
html.push("<td>", Util.to_float(item.total_shares, 2), "亿</td>");
|
|
634
632
|
html.push("<td>", Util.to_float(item.market_capital, 3), "亿</td>");
|
|
635
633
|
html.push("<td class='price_", item.code, "'>", item.price, "</td>");
|
|
636
634
|
html.push("<td>", Util.year_price_rate(item.price, item.year_price), "</td>");
|
|
637
635
|
html.push("<td>", Util.year_price_rate(item.price, item.d5_price), "</td>");
|
|
638
636
|
html.push("<td>", Util.digit_compare_trend(item.high_52week, item.price), "</td>");
|
|
639
637
|
html.push("<td>", Util.digit_compare_trend(item.low_52week, item.price), "</td>");
|
|
638
|
+
html.push("<td>", Util.pack_fund_num(item), "</td>");
|
|
640
639
|
return html;
|
|
641
640
|
},
|
|
642
641
|
|
|
@@ -2998,19 +2997,19 @@ const Util = {
|
|
|
2998
2997
|
let code_list = Util.get_code_list(element_id);
|
|
2999
2998
|
if (code_list.length > 0) {
|
|
3000
2999
|
Util.show_loading();
|
|
3001
|
-
let tips_object =
|
|
3002
|
-
if (tips_object
|
|
3003
|
-
tips_object.
|
|
3000
|
+
let tips_object = document.getElementById(element_id + "_tips");
|
|
3001
|
+
if (tips_object) {
|
|
3002
|
+
tips_object.innerHTML = '共 <span class="label label-info">' + code_list.length + '</span> 家';
|
|
3004
3003
|
}
|
|
3005
3004
|
let payload = {action: "code_detail", code_list: code_list.join("-")};
|
|
3006
3005
|
$("#" + element_id).parent().find('thead td').each(function() {
|
|
3007
3006
|
let title = $(this).text();
|
|
3008
3007
|
if (title === "股东数") {
|
|
3009
|
-
payload["
|
|
3008
|
+
payload["is_exist_holder"] = 1;
|
|
3010
3009
|
} else if (title === "基金数") {
|
|
3011
|
-
payload["
|
|
3010
|
+
payload["is_exist_fund"] = 1;
|
|
3012
3011
|
} else if (title === "主力资金") {
|
|
3013
|
-
payload["
|
|
3012
|
+
payload["is_exist_money_inflow"] = 1;
|
|
3014
3013
|
}
|
|
3015
3014
|
});
|
|
3016
3015
|
Util.post("/action", payload, function (j) {
|
|
@@ -3345,8 +3344,7 @@ const Util = {
|
|
|
3345
3344
|
}
|
|
3346
3345
|
}
|
|
3347
3346
|
if (item.code && Util.is_cn(item.code)) {
|
|
3348
|
-
|
|
3349
|
-
return Util.pack_html_link(holder_url, holder_info);
|
|
3347
|
+
return Util.pack_html_link("/stock/" + item.code + "?tab=holder_data", holder_info);
|
|
3350
3348
|
}
|
|
3351
3349
|
return holder_info
|
|
3352
3350
|
},
|
|
@@ -3357,14 +3355,24 @@ const Util = {
|
|
|
3357
3355
|
* @returns {string}
|
|
3358
3356
|
*/
|
|
3359
3357
|
pack_fund_num: function (item) {
|
|
3360
|
-
let
|
|
3361
|
-
if (item.code &&
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3358
|
+
let fund_info = "--";
|
|
3359
|
+
if (item.code && Util.is_hk(item.code)) {
|
|
3360
|
+
if (item.snowball_follower) {
|
|
3361
|
+
return item.snowball_follower;
|
|
3362
|
+
}
|
|
3363
|
+
} else {
|
|
3364
|
+
if (item.cur_fund_num && item.cur_fund_num > 0) {
|
|
3365
|
+
if (item.pre_fund_num && item.pre_fund_num > 0) {
|
|
3366
|
+
fund_info = Util.digit_compare_trend(item.cur_fund_num, item.pre_fund_num);
|
|
3367
|
+
} else {
|
|
3368
|
+
fund_info = item.cur_fund_num;
|
|
3369
|
+
}
|
|
3370
|
+
}
|
|
3371
|
+
if (item.code && Util.is_cn(item.code)) {
|
|
3372
|
+
return Util.pack_html_link("/stock/" + item.code + "?tab=public_fund", fund_info);
|
|
3373
|
+
}
|
|
3366
3374
|
}
|
|
3367
|
-
return
|
|
3375
|
+
return fund_info;
|
|
3368
3376
|
},
|
|
3369
3377
|
|
|
3370
3378
|
/**
|