sbd-npm 1.1.3 → 1.1.4
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 +12 -3
package/package.json
CHANGED
package/util.js
CHANGED
@@ -285,11 +285,20 @@ let Util = {
|
|
285
285
|
$(this).html(price);
|
286
286
|
});
|
287
287
|
$(".year_price_" + code).each(function () {
|
288
|
-
|
289
|
-
|
290
|
-
|
288
|
+
if (item["year_price"]) {
|
289
|
+
$(this).html(Util.year_price_rate(item["price"], item["year_price"]));
|
290
|
+
} else {
|
291
|
+
let year_price = $(this).attr("data-val");
|
292
|
+
if (year_price) {
|
293
|
+
$(this).html(Util.year_price_rate(item["price"], Util.to_float(year_price)));
|
294
|
+
}
|
291
295
|
}
|
292
296
|
});
|
297
|
+
if (item["high_52week"]) {
|
298
|
+
$(".high_52week_" + code).each(function () {
|
299
|
+
$(this).html(Util.year_price_rate(item["price"], item["high_52week"]));
|
300
|
+
});
|
301
|
+
}
|
293
302
|
}
|
294
303
|
if (item["high"]) {
|
295
304
|
let high_price = Util.digit_compare_trend(item["high"], item["previous_price"]);
|