sbd-npm 1.3.23 → 1.3.25
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 +3 -4
- package/package.json +1 -1
- package/util.js +10 -5
package/constant.js
CHANGED
@@ -37,13 +37,13 @@ const MenuList = [
|
|
37
37
|
'icon': 'edit',
|
38
38
|
'menu': [
|
39
39
|
{'key': 'trend_price', 'name': '股价阶段涨跌幅度', 'url': '/0x84527c7c3487b39afd820f2b309355cd75c01653'},
|
40
|
-
{'key': 'trend_day3_stabilize', 'name': '
|
41
|
-
{'key': 'trend_macd_down', 'name': 'MACD金叉', 'url': '/0x96943c359b08b02392a168ad6cd4b5703e3e9267'},
|
40
|
+
{'key': 'trend_day3_stabilize', 'name': '连续三日收涨', 'url': '/0x7e9df652521f334030e0be383f5fe10f01a67243'},
|
42
41
|
{'key': 'trend_kdj', 'name': 'KDJ金叉', 'url': '/0x3382bdaec4e8715ce27ca2b538dce09a2f8f5e50'},
|
42
|
+
{'key': 'trend_macd_down', 'name': 'MACD金叉', 'url': '/0x96943c359b08b02392a168ad6cd4b5703e3e9267'},
|
43
|
+
{'key': 'trend_bull_trend', 'name': '多头趋势', 'url': '/0x37b24777154ee090926e57bfa5602efa5c89b8a8'},
|
43
44
|
{'key': 'trend_money_inflow', 'name': '资金流入历史最高', 'url': '/0xfbfc92be1eebe9ccf5b2f14b9a2ea25f2cc941b8'},
|
44
45
|
{'key': 'trend_month', 'name': '月线趋势', 'url': '/0x9199702d80c49b940f774cdb275403f6bc293c78'},
|
45
46
|
{'key': 'trend_boll', 'name': '布林线', 'url': '/0x7f2c6b9542ce7626669ab4910cbf7e8812883fea'},
|
46
|
-
{'key': 'trend_bull_trend', 'name': '多头趋势', 'url': '/0x37b24777154ee090926e57bfa5602efa5c89b8a8'},
|
47
47
|
{'key': 'trend_ma20_60', 'name': '20、60日均线交叉', 'url': '/0x4f3b8625bcfcf0c4289b0a7df82d0afc1af4d026'},
|
48
48
|
{'key': 'trend_doji', 'name': '十字星', 'url': '/0x60f986e9f89a1dfafc8ae792bf0b5fb8e0d1887c'},
|
49
49
|
{'key': 'trend_ma510', 'name': '突破5、10日均线', 'url': '/0x46044beeaca896fe6acd86be3c94778f4c57e316'},
|
@@ -143,7 +143,6 @@ const MenuList = [
|
|
143
143
|
{'key': 'portfolio_tianjin', 'name': '天津股侠', 'url': '/0xb8428e42237a7485a787e2ab1b5ae0f057258f18'},
|
144
144
|
{'key': 'portfolio_zan', 'name': 'zangyn', 'url': '/0xccb07ddaf4f1219b7b5ae64780e7905206927873'},
|
145
145
|
{'key': 'portfolio_peng', 'name': '吴小朋同学', 'url': '/0x4f1a316c05731e365ec1b7ef454d98206fa973f6'},
|
146
|
-
{'key': 'portfolio_xiong', 'name': '王朝雄', 'url': '/0x343ce49bbb77316cea85c3daa44370d4c808b59d'},
|
147
146
|
{'key': 'portfolio_penny', 'name': '梁斌penny', 'url': '/0x34ec770b56fbd946e2a3467664efbe674d04f6ec'},
|
148
147
|
{'key': 'portfolio_wen', 'name': '崇文不尚武', 'url': '/0xe09c047550390159bda66d6315743427dd7ccae4'},
|
149
148
|
{'key': 'portfolio_patience', 'name': '耐力投资', 'url': '/0x55ecbeeabd7ad78dba8c38a9325b2889798622b3'},
|
package/package.json
CHANGED
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年的天数
|
@@ -192,7 +193,11 @@ const Util = {
|
|
192
193
|
Util.show_tips("正在生成中", 0, "alert-danger");
|
193
194
|
Util.show_loading();
|
194
195
|
// 获取要截取的HTML元素
|
195
|
-
|
196
|
+
if (document.getElementsByClassName("save_page_div").length > 0) {
|
197
|
+
let element = document.getElementsByClassName("save_page_div")[0];
|
198
|
+
} else {
|
199
|
+
let element = document.getElementById('page_content');
|
200
|
+
}
|
196
201
|
// 创建canvas元素
|
197
202
|
let canvas = document.createElement("canvas");
|
198
203
|
canvas.width = element.offsetWidth;
|
@@ -216,7 +221,7 @@ const Util = {
|
|
216
221
|
img.src = canvas.toDataURL("image/png");
|
217
222
|
// 创建一个下载链接并模拟点击
|
218
223
|
let link = document.createElement("a");
|
219
|
-
link.download = "
|
224
|
+
link.download = "stock_big_data_" + Util.now() + ".png";
|
220
225
|
link.href = img.src;
|
221
226
|
link.click();
|
222
227
|
|
@@ -1077,7 +1082,7 @@ const Util = {
|
|
1077
1082
|
}
|
1078
1083
|
let table_options = {
|
1079
1084
|
"element_id": table_id,
|
1080
|
-
"caption": '<caption
|
1085
|
+
"caption": '<caption> <span id="index_data"></span><div class="pull-right" id="' + table_id + '_body_tips"></div></caption>',
|
1081
1086
|
"head_cols": head_cols
|
1082
1087
|
};
|
1083
1088
|
if (alert_tips.length > 0) {
|
@@ -2665,7 +2670,7 @@ const Util = {
|
|
2665
2670
|
countdown_refresh_index_price: function (interval, element_id, index_list, is_us, is_refresh) {
|
2666
2671
|
if (interval > 0) {
|
2667
2672
|
$("#" + element_id + "_tips").html("交易中, " + interval + " 秒后刷新");
|
2668
|
-
setTimeout(function () {
|
2673
|
+
Util.countdown_timer_id = setTimeout(function () {
|
2669
2674
|
Util.countdown_refresh_index_price(interval - 1, element_id, index_list, is_us, is_refresh);
|
2670
2675
|
}, 1000);
|
2671
2676
|
} else {
|
@@ -2677,7 +2682,7 @@ const Util = {
|
|
2677
2682
|
countdown_func: function (interval, tips_id, callback_func) {
|
2678
2683
|
if (interval > 0) {
|
2679
2684
|
$("#" + tips_id).html("交易中, " + interval + " 秒后刷新");
|
2680
|
-
setTimeout(function () {
|
2685
|
+
Util.countdown_timer_id = setTimeout(function () {
|
2681
2686
|
Util.countdown_func(interval - 1, tips_id, callback_func);
|
2682
2687
|
}, 1000);
|
2683
2688
|
} else {
|