sbd-npm 1.3.35 → 1.3.37
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/package.json +1 -1
- package/stock_basics.js +13 -7
- package/util.js +6 -3
package/package.json
CHANGED
package/stock_basics.js
CHANGED
@@ -198,23 +198,29 @@ let Stock = {
|
|
198
198
|
}
|
199
199
|
// 备注
|
200
200
|
let remark_html = [];
|
201
|
-
if (item["is_down_macd"]) {
|
202
|
-
remark_html.push("<b class='text-success'>MACD 下行</b>");
|
203
|
-
}
|
204
201
|
if (item["is_bull_trend"]) {
|
205
|
-
remark_html.push("<a href='" + Util.get_url("trend_bull_trend") + "'
|
202
|
+
remark_html.push("<a class='btn btn-xs btn-danger' href='" + Util.get_url("trend_bull_trend") + "'>多头趋势</a>");
|
203
|
+
}
|
204
|
+
if (item["is_kdj_cross"]) {
|
205
|
+
remark_html.push("<a class='btn btn-xs btn-danger' href='" + Util.get_url("trend_kdj") + "'>KDJ金叉</a>");
|
206
|
+
}
|
207
|
+
if (item["is_macd_cross"]) {
|
208
|
+
remark_html.push("<a class='btn btn-xs btn-danger' href='" + Util.get_url("trend_macd_cross") + "'>MACD金叉</a>");
|
209
|
+
}
|
210
|
+
if (item["is_margin_minimum"]) {
|
211
|
+
remark_html.push("<a class='btn btn-xs btn-danger' href='" + Util.get_url("rank_margin_minimum") + "'>融资余额创新低</a>");
|
206
212
|
}
|
207
213
|
if (item["xsg_date"] > 0) {
|
208
214
|
let xsg_date = Util.seconds_to_format(item["xsg_date"], "%Y-%m-%d");
|
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
|
215
|
+
remark_html.push("<b class='text-success'>最近解禁<a href='" + Util.get_url("holder_restricted") + "?tab=xsg_list&date=" + xsg_date + "'>" + xsg_date + "</a></b>, ");
|
210
216
|
}
|
211
217
|
if (item["price"] > 0 && item["price"] < item["block_trade_price"]) {
|
212
|
-
remark_html.push("<b class='text-danger'>当前价小于最近<a href='" + Util.get_url("daily_block") + "?code=" + item["code"] + "'>大宗交易价(" + item["block_trade_price"] + ")</a></b
|
218
|
+
remark_html.push("<b class='text-danger'>当前价小于最近<a href='" + Util.get_url("daily_block") + "?code=" + item["code"] + "'>大宗交易价(" + item["block_trade_price"] + ")</a></b>, ");
|
213
219
|
}
|
214
220
|
if (item["desc"]) {
|
215
221
|
remark_html.push("<br><br><p>" + item["desc"] + "</p>");
|
216
222
|
}
|
217
|
-
remark_html = remark_html.join("
|
223
|
+
remark_html = remark_html.join("");
|
218
224
|
// 同花顺|申万行业板块数据
|
219
225
|
if (item["industry_data"] && item["industry_data"].length > 0) {
|
220
226
|
if (remark_html.length > 0) {
|
package/util.js
CHANGED
@@ -2588,12 +2588,15 @@ const Util = {
|
|
2588
2588
|
}
|
2589
2589
|
if ($("#remark_" + code).length) {
|
2590
2590
|
let remark = "";
|
2591
|
-
if (item["is_down_macd"]) {
|
2592
|
-
remark += "<b>MACD 下行</b><br />";
|
2593
|
-
}
|
2594
2591
|
if (item["is_bull_trend"]) {
|
2595
2592
|
remark += "<b>" + Util.pack_html_link(Util.get_url("trend_bull_trend"), "多头趋势") + "</b><br />";
|
2596
2593
|
}
|
2594
|
+
if (item["is_kdj_cross"]) {
|
2595
|
+
remark += "<b>" + Util.pack_html_link(Util.get_url("trend_kdj"), "KDJ金叉") + "</b><br />";
|
2596
|
+
}
|
2597
|
+
if (item["is_macd_cross"]) {
|
2598
|
+
remark += "<b>" + Util.pack_html_link(Util.get_url("trend_macd_cross"), "MACD金叉") + "</b><br />";
|
2599
|
+
}
|
2597
2600
|
if (item["kdj_trend"] && item["kdj_trend"] > 0) {
|
2598
2601
|
let kdj_name = "KDJ金叉";
|
2599
2602
|
let kdj_url = Util.get_url("trend_kdj");
|