sbd-npm 1.2.74 → 1.2.75
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 +0 -1
- package/package.json +1 -1
- package/stock_basics.js +15 -3
package/constant.js
CHANGED
@@ -134,7 +134,6 @@ const MenuList = [
|
|
134
134
|
'icon': 'retweet',
|
135
135
|
'menu': [
|
136
136
|
{'key': 'concept_recommend', 'name': '关注', 'url': '/27ca098faad33a8e4d109efe0112fd16'},
|
137
|
-
{'key': 'concept_macd', 'name': 'MACD', 'url': '/3400774e910fb611625b31d049d571fb'},
|
138
137
|
{'key': 'concept_cloud', 'name': '心似白云常自在', 'url': '/1d883188398a3a8c743748c5eb81fe7b'},
|
139
138
|
{'key': 'concept_vegetable', 'name': 'Veget', 'url': '/b1769a58f0f3d4a92bad61c97a2232f0'},
|
140
139
|
{'key': 'concept_zan', 'name': 'zangyn', 'url': '/860a3a9647efad436894b4aa3843da42'},
|
package/package.json
CHANGED
package/stock_basics.js
CHANGED
@@ -416,6 +416,18 @@ let Stock = {
|
|
416
416
|
|
417
417
|
fetch_rps_data: function () {
|
418
418
|
Util.show_loading();
|
419
|
+
Util.init_table_skeleton({
|
420
|
+
"element_id": "rps_table",
|
421
|
+
"head_cols": [
|
422
|
+
{"name": "时间"},
|
423
|
+
{"name": "RPS20", "tooltip": "20日股价相对强度,表示过去20个交易日内,该股票的价格涨幅超过了市场上多少的股票,该值为85,表示该股在过去20日内的价格涨幅超过了市场上85%的股票"},
|
424
|
+
{"name": "20日涨跌"},
|
425
|
+
{"name": "RPS60", "tooltip": "60日股价相对强度,表示过去60个交易日内,该股票的价格涨幅超过了市场上多少的股票,该值为85,表示该股在过去60日内的价格涨幅超过了市场上85%的股票"},
|
426
|
+
{"name": "60日涨跌"},
|
427
|
+
{"name": "RPS120", "tooltip": "120日股价相对强度,表示过去120个交易日内,该股票的价格涨幅超过了市场上多少的股票,该值为85,表示该股在过去120日内的价格涨幅超过了市场上85%的股票"},
|
428
|
+
{"name": "120日涨跌"},
|
429
|
+
]
|
430
|
+
});
|
419
431
|
Util.post("/stock/" + Stock.code, {action: "rps"}, function (j) {
|
420
432
|
let _html = [];
|
421
433
|
j["data"].forEach(function (item) {
|
@@ -430,15 +442,15 @@ let Stock = {
|
|
430
442
|
_html.push("</tr>");
|
431
443
|
});
|
432
444
|
if (_html.length > 0) {
|
433
|
-
Util.render_table_html("
|
445
|
+
Util.render_table_html("rps_table_body", _html);
|
434
446
|
} else {
|
435
447
|
let now = Util.now();
|
436
448
|
if ((now - Stock.ttm_second) < Util.one_year_second) {
|
437
|
-
let obj = $("#
|
449
|
+
let obj = $("#rps_table_body");
|
438
450
|
let td_num = obj.parent().find('thead td').length;
|
439
451
|
obj.html('<tr><td colspan="' + td_num + '">上市时间(' + Util.seconds_to_format(Stock.ttm_second, "%Y-%m-%d") + ')不足一年不做统计!</td></tr>');
|
440
452
|
} else {
|
441
|
-
Util.render_table_html("
|
453
|
+
Util.render_table_html("rps_table_body", []);
|
442
454
|
}
|
443
455
|
}
|
444
456
|
Util.hide_tips();
|