sbd-npm 1.1.73 → 1.1.74
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 -7
- package/.npmignore +0 -1
package/package.json
CHANGED
package/util.js
CHANGED
@@ -391,15 +391,11 @@ const Util = {
|
|
391
391
|
$("#average_" + code).html(Util.to_float(item["amount"] / item["volume"], 2));
|
392
392
|
}
|
393
393
|
let remark_obj = $("#remark_" + code);
|
394
|
-
if (remark_obj.length > 0) {
|
394
|
+
if (remark_obj.length > 0 && ((item["buy"] && item["buy"] > 0) || (item["sell"] && item["sell"] > 0))) {
|
395
395
|
remark_obj.removeClass("success");
|
396
396
|
remark_obj.removeClass("danger");
|
397
|
-
|
398
|
-
|
399
|
-
remark_obj.attr("title", "五档卖出: " + Util.to_hundred_million(item["sell"]) + "亿\n 五档买入: " + Util.to_hundred_million(item["buy"]) + "亿");
|
400
|
-
} else {
|
401
|
-
remark_obj.attr("title", "");
|
402
|
-
}
|
397
|
+
remark_obj.addClass(item["buy"] > item["sell"] ? "danger" : "success");
|
398
|
+
remark_obj.attr("title", "五档卖出: " + Util.to_hundred_million(item["sell"]) + "亿\n 五档买入: " + Util.to_hundred_million(item["buy"]) + "亿");
|
403
399
|
}
|
404
400
|
},
|
405
401
|
|
package/.npmignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
sbd-npm.md
|