sbd-npm 1.3.44 → 1.3.45
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/constant.js +2 -1
- package/package.json +1 -1
- package/stock_basics.js +4 -8
- package/util.js +2 -0
package/constant.js
CHANGED
@@ -139,9 +139,10 @@ const MenuList = [
|
|
139
139
|
'icon': 'retweet',
|
140
140
|
'menu': [
|
141
141
|
{'key': 'portfolio_recommend', 'name': '关注', 'url': '/0x2da99e58e28de94b670c4200657ac7e26dd8dceb'},
|
142
|
-
{'key': '
|
142
|
+
{'key': 'portfolio_chen', 'name': '陈营长极品投资', 'url': '/0x3f8cbeeeb38138a626e935017a4cc25f47ce3dbe'},
|
143
143
|
{'key': 'portfolio_vegetable', 'name': 'Veget', 'url': '/0x671dd9dcfca7dbc220c8164c92a74d2c561c6464'},
|
144
144
|
{'key': 'portfolio_follow', 'name': '跟我走吧14', 'url': '/0x4aa68e74a66297c0ece1bb05fad20c32ee1db9e4'},
|
145
|
+
{'key': 'portfolio_cloud', 'name': '心似白云常自在', 'url': '/0x9ea6081b57418a7f987775631043f7f924e25cff'},
|
145
146
|
{'key': 'portfolio_tianjin', 'name': '天津股侠', 'url': '/0xb8428e42237a7485a787e2ab1b5ae0f057258f18'},
|
146
147
|
{'key': 'portfolio_zan', 'name': 'zangyn', 'url': '/0xccb07ddaf4f1219b7b5ae64780e7905206927873'},
|
147
148
|
{'key': 'portfolio_peng', 'name': '吴小朋同学', 'url': '/0x4f1a316c05731e365ec1b7ef454d98206fa973f6'},
|
package/package.json
CHANGED
package/stock_basics.js
CHANGED
@@ -1155,19 +1155,15 @@ let Stock = {
|
|
1155
1155
|
};
|
1156
1156
|
Util.post("/stock/" + Stock["code"], payload, function (j) {
|
1157
1157
|
Stock["rzye_chart"].hideLoading();
|
1158
|
-
let date_data = [], rzye_data = [], rqye_data = [], price_data = [], rqye_color_data = [], rzye_low =
|
1158
|
+
let date_data = [], rzye_data = [], rqye_data = [], price_data = [], rqye_color_data = [], rzye_low = Number.MAX_SAFE_INTEGER, rzye_high = 0, rqye_low = Number.MAX_SAFE_INTEGER, rqye_high = 0;
|
1159
1159
|
j["data"].forEach(function (item) {
|
1160
1160
|
date_data.push(Util.seconds_to_format(item["date"], "%Y-%m-%d"));
|
1161
|
-
|
1162
|
-
rzye_low = item["rzye"];
|
1163
|
-
}
|
1161
|
+
rzye_low = Math.min(rzye_low, item["rzye"]);
|
1164
1162
|
rzye_high = Math.max(rzye_high, item["rzye"]);
|
1165
1163
|
rzye_data.push(Util.to_hundred_million(item["rzye"], 3));
|
1166
|
-
|
1167
|
-
rqye_low = item["rqye"];
|
1168
|
-
}
|
1164
|
+
rqye_low = Math.min(rqye_low, item["rqye"]);
|
1169
1165
|
rqye_high = Math.max(rqye_high, item["rqye"]);
|
1170
|
-
rqye_data.push(Util.to_ten_thousand(item["rqye"],
|
1166
|
+
rqye_data.push(Util.to_ten_thousand(item["rqye"], 3));
|
1171
1167
|
price_data.push(item["price"]);
|
1172
1168
|
rqye_color_data.push("#E74C3C");
|
1173
1169
|
});
|
package/util.js
CHANGED
@@ -37,6 +37,8 @@ const Util = {
|
|
37
37
|
one_week_second: 604800,
|
38
38
|
// 1年的秒数(365 * 86400)
|
39
39
|
one_year_second: 31536000,
|
40
|
+
// 32位最大数字(Number.MAX_SAFE_INTEGER:2^53 - 1,即 9007199254740991,Number.MAX_VALUE:1.7976931348623157e+308)
|
41
|
+
max_32bit_integer: 4294967295,
|
40
42
|
|
41
43
|
// https://omnipotent.net/jquery.sparkline/
|
42
44
|
SparkOptions: {
|