sbd-npm 1.3.39 → 1.3.40

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/constant.js +1 -1
  2. package/package.json +1 -1
  3. package/util.js +4 -4
package/constant.js CHANGED
@@ -21,7 +21,7 @@ const MenuList = [
21
21
  'icon': 'th',
22
22
  'menu': [
23
23
  {'key': 'daily_price_top', 'name': '每日新高', 'url': '/0x4bbed40927b5114222156b38c74fdb908e51289f'},
24
- {'key': 'daily_price_up_limit', 'name': '每日涨停', 'url': '/0x5f337fd193c250240f209a88a1f055eb07663b95'},
24
+ {'key': 'daily_price_limit_up', 'name': '每日涨停', 'url': '/0x7e05ba643accb5fc6fb4ed5962e560182bfbe782'},
25
25
  {'key': 'daily_margin', 'name': '融资融券', 'url': '/0x346eb98b16e29800315ad99545be9d391d0bdcf1'},
26
26
  {'key': 'daily_volume', 'name': '成交量(大量)', 'url': '/0xd92468b610939a0a904069b4293afd7f2e8c4411'},
27
27
  {'key': 'daily_gap', 'name': '缺口', 'url': '/0xc09193d6aa6e30481598783ef22d3bf5d0f79aad'},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.3.39",
3
+ "version": "1.3.40",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/util.js CHANGED
@@ -51,9 +51,9 @@ const Util = {
51
51
  },
52
52
 
53
53
  sbd_init: function () {
54
- Util.show_loading();
54
+ this.show_loading();
55
55
 
56
- Util.init_menu();
56
+ this.init_menu();
57
57
 
58
58
  $("[data-toggle='tooltip']").tooltip();
59
59
 
@@ -523,8 +523,8 @@ const Util = {
523
523
  }
524
524
  if (item["high"]) {
525
525
  let high_price = Util.digit_compare_trend(item["high"], item["previous_price"]);
526
- let up_limit_price = Math.floor((item["previous_price"] * 1.1) * 100) / 100;
527
- high_price = high_price.replace(/title='(.*?)'/, "title='" + up_limit_price + "'");
526
+ let limit_up_price = Math.floor((item["previous_price"] * 1.1) * 100) / 100;
527
+ high_price = high_price.replace(/title='(.*?)'/, "title='" + limit_up_price + "'");
528
528
  $("#high_" + code).html(high_price);
529
529
  }
530
530
  if (item["low"]) {