sbd-npm 1.1.6 → 1.1.7
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/summary_daily.js +4 -1
package/package.json
CHANGED
package/summary_daily.js
CHANGED
@@ -105,7 +105,10 @@ $(document).ready(function () {
|
|
105
105
|
* @param pr
|
106
106
|
*/
|
107
107
|
pack_change_percent: function (pr) {
|
108
|
-
let
|
108
|
+
let pr_array = [pr["r10_7"], pr["r7_5"], pr["r5_3"], pr["r3_0"], pr["r0_3"], pr["r3_5"], pr["r5_7"], pr["r7_10"]];
|
109
|
+
pr_array.sort(function(pr1, pr2){return pr2 - pr1});
|
110
|
+
//pr_array = pr_array.slice(0, 3);
|
111
|
+
let total_rate = pr_array[0] + pr_array[1];
|
109
112
|
let _pack_stock_rate = function (rate_range, rate, bg_color) {
|
110
113
|
let rate_width = Math.round((rate / total_rate) * 100);
|
111
114
|
rate_width = rate_width > 0 ? rate_width : 1;
|