sbd-npm 1.5.56 → 1.5.57

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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.5.56",
3
+ "version": "1.5.57",
4
4
  "description": "Stock Big Data",
5
5
  "author": "DHQ <dhq314@gmail.com>",
6
6
  "license": "ISC",
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
- if (navigator.hardwareConcurrency) {
548
- html.push("<tr><td class='text-right'>CPU逻辑核心数</td><td class='text-left' style='word-break: break-all'>", navigator.hardwareConcurrency, "</td></tr>");
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
@@ -2998,19 +2998,19 @@ const Util = {
2998
2998
  let code_list = Util.get_code_list(element_id);
2999
2999
  if (code_list.length > 0) {
3000
3000
  Util.show_loading();
3001
- let tips_object = $("#" + element_id + "_tips");
3002
- if (tips_object.length) {
3003
- tips_object.html('共 <span class="label label-info">' + code_list.length + '</span> 家');
3001
+ let tips_object = document.getElementById(element_id + "_tips");
3002
+ if (tips_object) {
3003
+ tips_object.innerHTML = '共 <span class="label label-info">' + code_list.length + '</span> 家';
3004
3004
  }
3005
3005
  let payload = {action: "code_detail", code_list: code_list.join("-")};
3006
3006
  $("#" + element_id).parent().find('thead td').each(function() {
3007
3007
  let title = $(this).text();
3008
3008
  if (title === "股东数") {
3009
- payload["is_holder"] = 1;
3009
+ payload["is_exist_holder"] = 1;
3010
3010
  } else if (title === "基金数") {
3011
- payload["is_fund"] = 1;
3011
+ payload["is_exist_fund"] = 1;
3012
3012
  } else if (title === "主力资金") {
3013
- payload["is_money_inflow"] = 1;
3013
+ payload["is_exist_money_inflow"] = 1;
3014
3014
  }
3015
3015
  });
3016
3016
  Util.post("/action", payload, function (j) {
@@ -3345,8 +3345,7 @@ const Util = {
3345
3345
  }
3346
3346
  }
3347
3347
  if (item.code && Util.is_cn(item.code)) {
3348
- let holder_url = "/stock/" + item.code + "?tab=holder_data";
3349
- return Util.pack_html_link(holder_url, holder_info);
3348
+ return Util.pack_html_link("/stock/" + item.code + "?tab=holder_data", holder_info);
3350
3349
  }
3351
3350
  return holder_info
3352
3351
  },
@@ -3357,14 +3356,18 @@ const Util = {
3357
3356
  * @returns {string}
3358
3357
  */
3359
3358
  pack_fund_num: function (item) {
3360
- let fund_num = "--";
3361
- if (item.code && !Util.is_cn(item.code)) {
3362
- return fund_num;
3363
- }
3359
+ let fund_info = "--";
3364
3360
  if (item.cur_fund_num && item.cur_fund_num > 0) {
3365
- fund_num = Util.digit_compare_trend(item.cur_fund_num, item.pre_fund_num);
3361
+ if (item.pre_fund_num && item.pre_fund_num > 0) {
3362
+ fund_info = Util.digit_compare_trend(item.cur_fund_num, item.pre_fund_num);
3363
+ } else {
3364
+ fund_info = item.cur_fund_num;
3365
+ }
3366
+ }
3367
+ if (item.code && Util.is_cn(item.code)) {
3368
+ return Util.pack_html_link("/stock/" + item.code + "?tab=public_fund", fund_info);
3366
3369
  }
3367
- return Util.pack_html_link("/stock/" + item.code + "?tab=public_fund", fund_num);
3370
+ return fund_info;
3368
3371
  },
3369
3372
 
3370
3373
  /**