sbd-npm 1.3.5 → 1.3.6
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/util.js +3 -6
package/package.json
CHANGED
package/util.js
CHANGED
@@ -471,22 +471,19 @@ const Util = {
|
|
471
471
|
* 港股股票的基础HTML
|
472
472
|
* @param html
|
473
473
|
* @param item
|
474
|
-
* @param exchange_rate
|
475
474
|
* @returns {*}
|
476
475
|
*/
|
477
|
-
stock_hk_html: function (html, item
|
478
|
-
let market_capital_hkd = Util.to_float(item["market_capital"], 2);
|
479
|
-
let market_capital_cny = Util.to_float((item["market_capital"] * exchange_rate) / 100, 2);
|
476
|
+
stock_hk_html: function (html, item) {
|
480
477
|
html.push("<td>", Util.snowball_url(item["code"]), "</td>");
|
481
478
|
html.push("<td>", Util.stock_url(item["code"], item["name"]), "</td>");
|
482
479
|
html.push("<td class='hk_industry'>", item["industry"], "</td>");
|
483
480
|
html.push("<td>", Util.map_url(item["province_city"]), "</td>");
|
484
481
|
html.push("<td>", Util.to_float((item["pe_ttm"] ? item["pe_ttm"] : item["pe"]), 2), "</td>");
|
485
482
|
html.push("<td>", Util.to_float(item["total_shares"], 2), "亿</td>");
|
486
|
-
html.push("<td>",
|
487
|
-
html.push("<td>", item["chairman"], "</td>");
|
483
|
+
html.push("<td>", Util.to_float(item["market_capital"], 3), "亿</td>");
|
488
484
|
html.push("<td class='price_", item["code"], "'>", item["price"], "</td>");
|
489
485
|
html.push("<td>", Util.year_price_rate(item["price"], item["year_price"]), "</td>");
|
486
|
+
html.push("<td>", Util.year_price_rate(item["price"], item["d5_price"]), "</td>");
|
490
487
|
html.push("<td>", Util.digit_compare_trend(item["high_52week"], item["price"]), "</td>");
|
491
488
|
html.push("<td>", Util.digit_compare_trend(item["low_52week"], item["price"]), "</td>");
|
492
489
|
return html;
|