sbd-npm 1.3.63 → 1.3.64
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 +2 -0
package/package.json
CHANGED
package/util.js
CHANGED
@@ -482,6 +482,7 @@ const Util = {
|
|
482
482
|
$("#price_change_" + code).html(Util.year_price_rate(item["price"], item["previous_price"]));
|
483
483
|
} else {
|
484
484
|
let price = Util.digit_compare_trend(item["price"], item["previous_price"]);
|
485
|
+
let price_change_rate = Util.calc_change_rate(item["price"], item["previous_price"], 4);
|
485
486
|
$(".price_" + code).each(function () {
|
486
487
|
if ($(this).attr("data-color")) {
|
487
488
|
let pre_price = parseFloat(Util.strip_bracket_string($(this).text()));
|
@@ -496,6 +497,7 @@ const Util = {
|
|
496
497
|
$(this).attr("data-color", $(this).css("background-color"));
|
497
498
|
}
|
498
499
|
$(this).html(price);
|
500
|
+
$(this).attr("data-val", price_change_rate);
|
499
501
|
});
|
500
502
|
}
|
501
503
|
$(".year_price_" + code).each(function () {
|