sbd-npm 1.3.35 → 1.3.36

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.3.35",
3
+ "version": "1.3.36",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/stock_basics.js CHANGED
@@ -198,12 +198,15 @@ 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
202
  remark_html.push("<a href='" + Util.get_url("trend_bull_trend") + "'><b class='text-danger'>多头趋势</b></a>");
206
203
  }
204
+ if (item["is_kdj_cross"]) {
205
+ remark_html.push("<a href='" + Util.get_url("trend_kdj") + "'><b class='text-danger'>KDJ金叉</b></a>");
206
+ }
207
+ if (item["is_macd_cross"]) {
208
+ remark_html.push("<a href='" + Util.get_url("trend_macd_cross") + "'><b class='text-danger'>MACD金叉</b></a>");
209
+ }
207
210
  if (item["xsg_date"] > 0) {
208
211
  let xsg_date = Util.seconds_to_format(item["xsg_date"], "%Y-%m-%d");
209
212
  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
@@ -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");