sbd-npm 1.3.34 → 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/constant.js +1 -1
- package/package.json +1 -1
- package/stock_basics.js +6 -3
- package/util.js +12 -5
package/constant.js
CHANGED
@@ -145,7 +145,7 @@ const MenuList = [
|
|
145
145
|
{'key': 'portfolio_zan', 'name': 'zangyn', 'url': '/0xccb07ddaf4f1219b7b5ae64780e7905206927873'},
|
146
146
|
{'key': 'portfolio_peng', 'name': '吴小朋同学', 'url': '/0x4f1a316c05731e365ec1b7ef454d98206fa973f6'},
|
147
147
|
{'key': 'portfolio_penny', 'name': '梁斌penny', 'url': '/0x34ec770b56fbd946e2a3467664efbe674d04f6ec'},
|
148
|
-
{'key': 'portfolio_wen', 'name': '
|
148
|
+
{'key': 'portfolio_wen', 'name': '李健2013', 'url': '/0xe09c047550390159bda66d6315743427dd7ccae4'},
|
149
149
|
{'key': 'portfolio_patience', 'name': '耐力投资', 'url': '/0x55ecbeeabd7ad78dba8c38a9325b2889798622b3'},
|
150
150
|
{'key': 'portfolio_star50', 'name': '科创50', 'url': '/0x378b2601d83c467f81f1d4e323c8bfbc72f6cc0d'},
|
151
151
|
{'key': 'portfolio_bellwether', 'name': '龙头股', 'url': '/0x7cdfb14131c3693c439a90333790eeb5fce70a12'},
|
package/package.json
CHANGED
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
@@ -371,9 +371,13 @@ const Util = {
|
|
371
371
|
html.push("<td>", Util.industry_url(item["code"], item["industry"]), "</td>");
|
372
372
|
html.push("<td>", Util.map_url((item["province_city"] && item["province_city"] !== "None") ? item["province_city"] : item["area"]), "</td>");
|
373
373
|
let price = item["stock_price"] ? item["stock_price"] : item["price"];
|
374
|
-
let pre_price = item["pre_price"] ? item["pre_price"] : (item["previous_price"] ? item["previous_price"] : 0)
|
374
|
+
let pre_price = item["pre_price"] ? item["pre_price"] : (item["previous_price"] ? item["previous_price"] : 0);
|
375
375
|
if (pre_price > 0) {
|
376
|
-
|
376
|
+
if (item["no_refresh_price"] && item["no_refresh_price"] > 0) {
|
377
|
+
html.push("<td>", Util.digit_compare_trend(item["no_refresh_price"], pre_price), "</td>");
|
378
|
+
} else {
|
379
|
+
html.push("<td class='price_", item["code"].toLowerCase(), "'>", Util.digit_compare_trend(price, pre_price), "</td>");
|
380
|
+
}
|
377
381
|
} else {
|
378
382
|
html.push("<td class='price_", item["code"].toLowerCase(), "'>", price, "</td>");
|
379
383
|
}
|
@@ -2584,12 +2588,15 @@ const Util = {
|
|
2584
2588
|
}
|
2585
2589
|
if ($("#remark_" + code).length) {
|
2586
2590
|
let remark = "";
|
2587
|
-
if (item["is_down_macd"]) {
|
2588
|
-
remark += "<b>MACD 下行</b><br />";
|
2589
|
-
}
|
2590
2591
|
if (item["is_bull_trend"]) {
|
2591
2592
|
remark += "<b>" + Util.pack_html_link(Util.get_url("trend_bull_trend"), "多头趋势") + "</b><br />";
|
2592
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
|
+
}
|
2593
2600
|
if (item["kdj_trend"] && item["kdj_trend"] > 0) {
|
2594
2601
|
let kdj_name = "KDJ金叉";
|
2595
2602
|
let kdj_url = Util.get_url("trend_kdj");
|