sbd-npm 1.3.24 → 1.3.26
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 +2 -3
- package/package.json +1 -1
- package/util.js +7 -2
package/constant.js
CHANGED
@@ -38,12 +38,12 @@ const MenuList = [
|
|
38
38
|
'menu': [
|
39
39
|
{'key': 'trend_price', 'name': '股价阶段涨跌幅度', 'url': '/0x84527c7c3487b39afd820f2b309355cd75c01653'},
|
40
40
|
{'key': 'trend_day3_stabilize', 'name': '连续三日收涨', 'url': '/0x7e9df652521f334030e0be383f5fe10f01a67243'},
|
41
|
-
{'key': 'trend_macd_down', 'name': 'MACD金叉', 'url': '/0x96943c359b08b02392a168ad6cd4b5703e3e9267'},
|
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
@@ -193,7 +193,12 @@ const Util = {
|
|
193
193
|
Util.show_tips("正在生成中", 0, "alert-danger");
|
194
194
|
Util.show_loading();
|
195
195
|
// 获取要截取的HTML元素
|
196
|
-
let element
|
196
|
+
let element;
|
197
|
+
if (document.getElementsByClassName("save_page_div").length > 0) {
|
198
|
+
element = document.getElementsByClassName("save_page_div")[0];
|
199
|
+
} else {
|
200
|
+
element = document.getElementById('page_content');
|
201
|
+
}
|
197
202
|
// 创建canvas元素
|
198
203
|
let canvas = document.createElement("canvas");
|
199
204
|
canvas.width = element.offsetWidth;
|
@@ -1078,7 +1083,7 @@ const Util = {
|
|
1078
1083
|
}
|
1079
1084
|
let table_options = {
|
1080
1085
|
"element_id": table_id,
|
1081
|
-
"caption": '<caption
|
1086
|
+
"caption": '<caption> <span id="index_data"></span><div class="pull-right" id="' + table_id + '_body_tips"></div></caption>',
|
1082
1087
|
"head_cols": head_cols
|
1083
1088
|
};
|
1084
1089
|
if (alert_tips.length > 0) {
|