sbd-npm 1.1.49 → 1.1.50

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.
Files changed (3) hide show
  1. package/menu.js +1 -1
  2. package/package.json +1 -1
  3. package/util.js +7 -6
package/menu.js CHANGED
@@ -127,10 +127,10 @@ const MenuList = [
127
127
  {'key': 'concept_recommend', 'name': '关注', 'url': '/0f7226866475982d2a80497b9fa1719a'},
128
128
  {'key': 'concept_bellwether', 'name': '龙头股', 'url': '/2e1a34cc6bd2d6e92f962e4ef9b9f333'},
129
129
  {'key': 'concept_market_situation', 'name': '市值风云', 'url': '/4229754a8bec7b021c259956c70dba74'},
130
+ {'key': 'concept_cannon', 'name': '黄家礼炮', 'url': '/8cd8b9d6e96fba8cc87185ec5aa3b429'},
130
131
  {'key': 'concept_niu', 'name': '老曾阿牛', 'url': '/65656ebe27216279cd66db60c7837349'},
131
132
  {'key': 'concept_qian', 'name': '唐史主任司马迁', 'url': '/ee1480d344e0a5cc26db27e180f1e75e'},
132
133
  {'key': 'concept_dan', 'name': '但斌', 'url': '/548a55ff9dc4e6e09d02693cd6428983'},
133
- {'key': 'concept_cannon', 'name': '黄家礼炮', 'url': '/8cd8b9d6e96fba8cc87185ec5aa3b429'},
134
134
  {'key': 'concept_hill', 'name': '高瓴资本', 'url': '/a260940f6937ebb225f802b1dffd772e'},
135
135
  {'key': 'concept_hk', 'name': '港股', 'url': '/8bb2e92c534697fd52bff0faa7af854e'},
136
136
  {'key': 'concept_us', 'name': '美股', 'url': '/43d9d1304310863541c8bbb8ea8e8664'},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.1.49",
3
+ "version": "1.1.50",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/util.js CHANGED
@@ -345,6 +345,12 @@ const Util = {
345
345
  $(this).html(Util.year_price_rate(item["price"], item["high_52week"]));
346
346
  });
347
347
  }
348
+ if (item["holder_num"] && item["holder_num"] > 0 && item["pre_holder_num"]) {
349
+ $(".holder_" + code).each(function () {
350
+ let url = Util.get_url("holder_num") + "?code=" + item["code"];
351
+ $(this).html(Util.pack_html_link(url, Util.digit_compare_trend(item["holder_num"], item["pre_holder_num"])));
352
+ });
353
+ }
348
354
  }
349
355
  if (item["high"]) {
350
356
  let high_price = Util.digit_compare_trend(item["high"], item["previous_price"]);
@@ -798,12 +804,7 @@ const Util = {
798
804
  if (stock_category !== "us") {
799
805
  _html.push("<td id='amount_", item["code"], "'>--</td>");
800
806
  _html.push("<td id='average_", item["code"], "'>--</td>");
801
- let holder_num = "--";
802
- if (item["holder_num"] && item["holder_num"] > 0) {
803
- let url = Util.get_url("holder_num") + "?code=" + item["code"];
804
- holder_num = Util.pack_html_link(url, Util.digit_compare_trend(item["holder_num"], item["pre_holder_num"]));
805
- }
806
- _html.push("<td id='holder_", item["code"], "'>", holder_num, "</td>");
807
+ _html.push("<td class='holder_", item["code"], "'>--</td>");
807
808
  _html.push("<td id='remark_", item["code"], "'></td>");
808
809
  }
809
810
  _html.push("</tr>");