sbd-npm 1.3.23 → 1.3.24

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 -3
package/constant.js CHANGED
@@ -37,7 +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
+ {'key': 'trend_day3_stabilize', 'name': '连续三日收涨', 'url': '/0x7e9df652521f334030e0be383f5fe10f01a67243'},
41
41
  {'key': 'trend_macd_down', 'name': 'MACD金叉', 'url': '/0x96943c359b08b02392a168ad6cd4b5703e3e9267'},
42
42
  {'key': 'trend_kdj', 'name': 'KDJ金叉', 'url': '/0x3382bdaec4e8715ce27ca2b538dce09a2f8f5e50'},
43
43
  {'key': 'trend_money_inflow', 'name': '资金流入历史最高', 'url': '/0xfbfc92be1eebe9ccf5b2f14b9a2ea25f2cc941b8'},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.3.23",
3
+ "version": "1.3.24",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/util.js CHANGED
@@ -26,6 +26,7 @@ const Util = {
26
26
  load_token: "loading_div",
27
27
  interval_timer: null,
28
28
  stock_timer_id: 0,
29
+ countdown_timer_id: 0,
29
30
  is_init: 0,
30
31
  is_load: false,
31
32
  // 1年的天数
@@ -216,7 +217,7 @@ const Util = {
216
217
  img.src = canvas.toDataURL("image/png");
217
218
  // 创建一个下载链接并模拟点击
218
219
  let link = document.createElement("a");
219
- link.download = "sbd_page_content_" + Util.now() + ".png";
220
+ link.download = "stock_big_data_" + Util.now() + ".png";
220
221
  link.href = img.src;
221
222
  link.click();
222
223
 
@@ -2665,7 +2666,7 @@ const Util = {
2665
2666
  countdown_refresh_index_price: function (interval, element_id, index_list, is_us, is_refresh) {
2666
2667
  if (interval > 0) {
2667
2668
  $("#" + element_id + "_tips").html("交易中, " + interval + " 秒后刷新");
2668
- setTimeout(function () {
2669
+ Util.countdown_timer_id = setTimeout(function () {
2669
2670
  Util.countdown_refresh_index_price(interval - 1, element_id, index_list, is_us, is_refresh);
2670
2671
  }, 1000);
2671
2672
  } else {
@@ -2677,7 +2678,7 @@ const Util = {
2677
2678
  countdown_func: function (interval, tips_id, callback_func) {
2678
2679
  if (interval > 0) {
2679
2680
  $("#" + tips_id).html("交易中, " + interval + " 秒后刷新");
2680
- setTimeout(function () {
2681
+ Util.countdown_timer_id = setTimeout(function () {
2681
2682
  Util.countdown_func(interval - 1, tips_id, callback_func);
2682
2683
  }, 1000);
2683
2684
  } else {