sbd-npm 1.5.59 → 1.5.60
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/snowball_tool.js +9 -1
- package/stock_basics.js +4 -5
- package/util.js +6 -2
package/package.json
CHANGED
package/snowball_tool.js
CHANGED
|
@@ -374,7 +374,15 @@ $(function () {
|
|
|
374
374
|
html.push("<td class='code_item'>", Util.snowball_url(Util.is_alphabet(item.code) ? item.code.toUpperCase() : item.code), "</td>");
|
|
375
375
|
html.push("<td>", Util.stock_url(item.code, item.name ? item.name : item.code.toUpperCase()), "</td>");
|
|
376
376
|
html.push("<td>", Util.map_url((item.province_city && item.province_city !== "None") ? item.province_city : item.area), "</td>");
|
|
377
|
-
|
|
377
|
+
if (item.industry) {
|
|
378
|
+
if (item.industry.length > 6) {
|
|
379
|
+
html.push("<td title='", item.industry, "'>", item.industry.slice(0, 6), "</td>");
|
|
380
|
+
} else {
|
|
381
|
+
html.push("<td>", item.industry, "</td>");
|
|
382
|
+
}
|
|
383
|
+
} else {
|
|
384
|
+
html.push("<td>--</td>");
|
|
385
|
+
}
|
|
378
386
|
html.push("<td class='price_", item.code.toLowerCase(), "'>", item.stock_price, "</td>");
|
|
379
387
|
html.push("<td>", Util.year_price_rate(item.stock_price, item.year_price), "</td>");
|
|
380
388
|
html.push("<td>", Util.year_price_rate(item.stock_price, item.d5_price), "</td>");
|
package/stock_basics.js
CHANGED
|
@@ -119,7 +119,6 @@ let Stock = {
|
|
|
119
119
|
{"name": "成交均价"},
|
|
120
120
|
{"name": "成交量", "sort_type": "volume"},
|
|
121
121
|
{"name": "量比", "sort_type": "volume_ratio", "tooltip": "当日成交量与过去5日平均成交量的比"},
|
|
122
|
-
{"name": "量比30", "sort_type": "volume_ratio30", "tooltip": "当日成交量与过去30日平均成交量的比"},
|
|
123
122
|
{"name": "成交额", "sort_type": "amount"},
|
|
124
123
|
{"name": "换手率", "sort_type": "turnover"},
|
|
125
124
|
]
|
|
@@ -148,10 +147,11 @@ let Stock = {
|
|
|
148
147
|
|
|
149
148
|
let concept_object = $("#concept");
|
|
150
149
|
if (concept_object.length > 0) {
|
|
151
|
-
let concept_array = concept_object.html().split(",");
|
|
152
150
|
html = [];
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
let query_url = Util.get_url("query_list");
|
|
152
|
+
let concept_array = concept_object.html().split(",");
|
|
153
|
+
concept_array.forEach(function (concept) {
|
|
154
|
+
html.push('<a target="_blank" rel="noopener noreferrer nofollow" href="', query_url, '?concept=', concept, '" class="btn btn-xs btn-warning">', concept, '</a> ');
|
|
155
155
|
});
|
|
156
156
|
concept_object.html(html.join(""));
|
|
157
157
|
}
|
|
@@ -339,7 +339,6 @@ let Stock = {
|
|
|
339
339
|
html.push("<td>", Util.to_float(item.amount / (item.volume * 100), 2), "</td>");
|
|
340
340
|
html.push("<td>", Util.to_float(item.volume / 10000, 2), "万手</td>");
|
|
341
341
|
html.push("<td>", item.volume_ratio, "</td>");
|
|
342
|
-
html.push("<td>", (item.volume_ratio30 ? item.volume_ratio30 : "--"), "</td>");
|
|
343
342
|
html.push("<td>", Util.to_hundred_million(item.amount), "亿</td>");
|
|
344
343
|
html.push("<td>", (item.turnover > 0 ? (item.turnover + "%") : "--"), "</td>");
|
|
345
344
|
html.push("</tr>");
|
package/util.js
CHANGED
|
@@ -626,7 +626,11 @@ const Util = {
|
|
|
626
626
|
item.name = item.name.replace("有限公司", "").replace("集团", "").replace("股份", "");
|
|
627
627
|
}
|
|
628
628
|
html.push("<td>", Util.stock_url(item.code, item.name), "</td>");
|
|
629
|
-
|
|
629
|
+
if (item.industry && item.industry.length > 6) {
|
|
630
|
+
html.push("<td class='hk_industry' title='", item.industry, "'>", item.industry.slice(0, 6), "</td>");
|
|
631
|
+
} else {
|
|
632
|
+
html.push("<td class='hk_industry'>", item.industry, "</td>");
|
|
633
|
+
}
|
|
630
634
|
html.push("<td>", Util.map_url(item.province_city), "</td>");
|
|
631
635
|
html.push("<td>", Util.to_float((item.pe_ttm ? item.pe_ttm : item.pe), 2), "</td>");
|
|
632
636
|
html.push("<td>", Util.to_float(item.market_capital, 3), "亿</td>");
|
|
@@ -3335,10 +3339,10 @@ const Util = {
|
|
|
3335
3339
|
* @returns {string}
|
|
3336
3340
|
*/
|
|
3337
3341
|
pack_holder_num: function (item) {
|
|
3338
|
-
let holder_info = "--";
|
|
3339
3342
|
if (item.snowball_follower && item.code && Util.is_hk(item.code)) {
|
|
3340
3343
|
return item.snowball_follower;
|
|
3341
3344
|
}
|
|
3345
|
+
let holder_info = "--";
|
|
3342
3346
|
if (item.holder_num && item.holder_num > 0) {
|
|
3343
3347
|
if (item.pre_holder_num && item.pre_holder_num > 0) {
|
|
3344
3348
|
holder_info = Util.digit_compare_trend(item.holder_num, item.pre_holder_num);
|