sbd-npm 1.2.54 → 1.2.56
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/.npmignore +1 -0
- package/constant.js +0 -2
- package/package.json +1 -1
- package/stock_basics.js +3 -7
- package/util.js +6 -10
package/.npmignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
sbd-npm.md
|
package/constant.js
CHANGED
@@ -50,8 +50,6 @@ const MenuList = [
|
|
50
50
|
{'key': 'trend_fund_hold', 'name': '基金数持股变化', 'url': '/067740976f85ec14ddae02b51829ce35'},
|
51
51
|
{'key': 'trend_week_minimum', 'name': '周成交低点', 'url': '/722d94429b8e689fe78dca1cf67a4c67'},
|
52
52
|
{'key': 'trend_margin', 'name': '融资融券余额涨幅', 'url': '/1964a6bc56dc3ce6825b23667c7fb588'},
|
53
|
-
{'key': 'trend_down', 'name': '当前连跌个股', 'url': '/07fb907c7e7572fbeae98bacf5c44593'},
|
54
|
-
{'key': 'trend_down_analysis', 'name': '连跌反弹概率', 'url': '/e9a32e4601fca33a9c3b68103f61c3bc'},
|
55
53
|
{'key': 'trend_index_month', 'name': '指数每年月份涨跌', 'url': '/86691e421938098bab7679e43bea67a6'},
|
56
54
|
{'key': 'trend_ma', 'name': '均线近似重合', 'url': '/712e8f604264dd718f5fccd173418b67'},
|
57
55
|
{'key': 'trend_k_compare', 'name': 'K线对比', 'url': '/413957dbd93723d1bad2071da463c551'},
|
package/package.json
CHANGED
package/stock_basics.js
CHANGED
@@ -198,16 +198,12 @@ let Stock = {
|
|
198
198
|
}
|
199
199
|
// 备注
|
200
200
|
let remark_html = [];
|
201
|
-
if (item["down_day"] > 0) {
|
202
|
-
let down_ratio = "";
|
203
|
-
if (item["down_ratio"] > 0) {
|
204
|
-
down_ratio = "(" + item["down_ratio"] + "%)";
|
205
|
-
}
|
206
|
-
remark_html.push("<b class='text-success'>" + item["down_day"] + "天连跌" + down_ratio + "</b>");
|
207
|
-
}
|
208
201
|
if (item["is_down_macd"] === 1) {
|
209
202
|
remark_html.push("<b class='text-success'>MACD 下行</b>");
|
210
203
|
}
|
204
|
+
if (item["is_bull_trend"] === 1) {
|
205
|
+
remark_html.push("<b class='text-success'>多头趋势</b>");
|
206
|
+
}
|
211
207
|
if (item["xsg_date"] > 0) {
|
212
208
|
let xsg_date = Util.seconds_to_format(item["xsg_date"], "%Y-%m-%d");
|
213
209
|
remark_html.push("<b class='text-success'>最近解禁<a href='" + Util.get_url("holder_restricted") + "?tab=xsg_list&date=" + xsg_date + "'>" + xsg_date + "</a></b>");
|
package/util.js
CHANGED
@@ -2188,18 +2188,14 @@ const Util = {
|
|
2188
2188
|
}
|
2189
2189
|
if ($("#remark_" + code).length) {
|
2190
2190
|
let remark = "";
|
2191
|
-
if (
|
2192
|
-
|
2193
|
-
if (item["down_ratio"] > 0) {
|
2194
|
-
down_ratio = "(" + item["down_ratio"] + "%)";
|
2195
|
-
}
|
2196
|
-
remark += "<b>" + item["down_day"] + "天连跌" + down_ratio + "</b><br />";
|
2191
|
+
if (item["is_down_macd"] && item["is_down_macd"] > 0) {
|
2192
|
+
remark += "<b>MACD 下行</b><br />";
|
2197
2193
|
}
|
2198
|
-
if (
|
2199
|
-
remark += "<b
|
2194
|
+
if (item["is_bull_trend"] && item["is_bull_trend"] > 0) {
|
2195
|
+
remark += "<b>多头趋势</b><br />";
|
2200
2196
|
}
|
2201
|
-
if (
|
2202
|
-
remark += "<b>
|
2197
|
+
if (item["kdj_trend"] && item["kdj_trend"] > 0) {
|
2198
|
+
remark += "<b>" + (item["kdj_trend"] === 2 ? "周" : "") + "KDJ金叉</b><br />";
|
2203
2199
|
}
|
2204
2200
|
$("#remark_" + code).html(remark);
|
2205
2201
|
}
|