sbd-npm 1.3.20 → 1.3.22

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
@@ -37,6 +37,7 @@ const MenuList = [
37
37
  'icon': 'edit',
38
38
  'menu': [
39
39
  {'key': 'trend_price', 'name': '股价阶段涨跌幅度', 'url': '/0x84527c7c3487b39afd820f2b309355cd75c01653'},
40
+ {'key': 'trend_day3_stabilize', 'name': '连续三日收红', 'url': '/0x7e9df652521f334030e0be383f5fe10f01a67243'},
40
41
  {'key': 'trend_macd_down', 'name': 'MACD金叉', 'url': '/0x96943c359b08b02392a168ad6cd4b5703e3e9267'},
41
42
  {'key': 'trend_kdj', 'name': 'KDJ金叉', 'url': '/0x3382bdaec4e8715ce27ca2b538dce09a2f8f5e50'},
42
43
  {'key': 'trend_money_inflow', 'name': '资金流入历史最高', 'url': '/0xfbfc92be1eebe9ccf5b2f14b9a2ea25f2cc941b8'},
@@ -46,7 +47,6 @@ const MenuList = [
46
47
  {'key': 'trend_ma20_60', 'name': '20、60日均线交叉', 'url': '/0x4f3b8625bcfcf0c4289b0a7df82d0afc1af4d026'},
47
48
  {'key': 'trend_doji', 'name': '十字星', 'url': '/0x60f986e9f89a1dfafc8ae792bf0b5fb8e0d1887c'},
48
49
  {'key': 'trend_ma510', 'name': '突破5、10日均线', 'url': '/0x46044beeaca896fe6acd86be3c94778f4c57e316'},
49
- {'key': 'trend_day3_stabilize', 'name': '连续三日收红', 'url': '/0x7e9df652521f334030e0be383f5fe10f01a67243'},
50
50
  {'key': 'trend_holder_minimum', 'name': '股东数历史最少', 'url': '/0xf0c0c360a283689c83ae216c6bbb03777d8068ca'},
51
51
  {'key': 'trend_down_maximum', 'name': '历史高位最大跌幅', 'url': '/0x8d7b8abeec94e2ebe4b25115272d9d5899355c43'},
52
52
  {'key': 'trend_fund_hold', 'name': '基金数持股变化', 'url': '/0x706c0e77ca3e314b5186c763e6ee857b744e9880'},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.3.20",
3
+ "version": "1.3.22",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/stock_basics.js CHANGED
@@ -1220,9 +1220,11 @@ let Stock = {
1220
1220
 
1221
1221
  fetch_hkex_holding_modal: function () {
1222
1222
  Util.init_modal_skeleton("hkex_holding_modal", '');
1223
- $("#hkex_holding_modal_title").html("[" + Stock["name"] + "]港股通持股明细数据<span style='color: #BDBDBD;' id='hkex_holding_modal_summary'></span>");
1224
1223
  let hhm_obj = $('#hkex_holding_modal');
1225
1224
  hhm_obj.on('shown.bs.modal', function (e) {
1225
+ let url = $("#hkex_holding_summary").find("a").first().attr("href");
1226
+ let title = Util.pack_html_link(url, "[" + Stock["name"] + "]港股通持股明细数据");
1227
+ $("#hkex_holding_modal_title").html(title + "<span style='color: #BDBDBD;' id='hkex_holding_modal_summary'></span>");
1226
1228
  Util.init_table_skeleton({
1227
1229
  "element_id": "hkex_holding_modal_body",
1228
1230
  "caption": "none",
package/util.js CHANGED
@@ -2835,17 +2835,16 @@ const Util = {
2835
2835
  * @returns {string}
2836
2836
  */
2837
2837
  pack_holder_num: function (item) {
2838
+ let holder_info = "--";
2838
2839
  if (item["holder_num"] && item["holder_num"] > 0) {
2839
- let holder_url = Util.get_url("holder_num") + "?code=" + item["code"];
2840
- let holder_info = "";
2841
2840
  if (item["pre_holder_num"] && item["pre_holder_num"] > 0) {
2842
2841
  holder_info = Util.digit_compare_trend(item["holder_num"], item["pre_holder_num"]);
2843
2842
  } else {
2844
2843
  holder_info = Util.digit_compare_trend(item["holder_num"], 0);
2845
2844
  }
2846
- return Util.pack_html_link(holder_url, holder_info);
2847
2845
  }
2848
- return "--";
2846
+ let holder_url = Util.get_url("holder_num") + "?code=" + item["code"];
2847
+ return Util.pack_html_link(holder_url, holder_info);
2849
2848
  },
2850
2849
 
2851
2850
  /**
@@ -2854,11 +2853,11 @@ const Util = {
2854
2853
  * @returns {string}
2855
2854
  */
2856
2855
  pack_fund_num: function (item) {
2856
+ let fund_num = "--";
2857
2857
  if (item["cur_fund_num"] && item["cur_fund_num"] > 0) {
2858
- let fund_num = Util.digit_compare_trend(item["cur_fund_num"], item["pre_fund_num"]);
2859
- return Util.pack_html_link("/stock/" + item["code"] + "?tab=public_fund", fund_num);
2858
+ fund_num = Util.digit_compare_trend(item["cur_fund_num"], item["pre_fund_num"]);
2860
2859
  }
2861
- return "--";
2860
+ return Util.pack_html_link("/stock/" + item["code"] + "?tab=public_fund", fund_num);
2862
2861
  },
2863
2862
 
2864
2863
  /**