sbd-npm 1.2.88 → 1.2.89
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 +5 -3
package/package.json
CHANGED
package/util.js
CHANGED
@@ -966,8 +966,8 @@ const Util = {
|
|
966
966
|
{"name": "行业", "select_id": "stock_category_industry"},
|
967
967
|
{"name": "地区", "select_id": "stock_category_area"},
|
968
968
|
{"name": "当前价", "table_sort": 1},
|
969
|
-
{"name": "最高价"},
|
970
|
-
{"name": "最低价"},
|
969
|
+
{"name": "最高价", "table_sort": 1},
|
970
|
+
{"name": "最低价", "table_sort": 1},
|
971
971
|
{"name": "年初至今", "table_sort": 1},
|
972
972
|
{"name": "近5日", "table_sort": 1},
|
973
973
|
{"name": "52周最高", "table_sort": 1}
|
@@ -1304,6 +1304,7 @@ const Util = {
|
|
1304
1304
|
{"name": "收盘价", "table_sort": 1},
|
1305
1305
|
{"name": "最低价", "table_sort": 1},
|
1306
1306
|
{"name": "最高价", "table_sort": 1},
|
1307
|
+
{"name": "涨跌", "table_sort": 1},
|
1307
1308
|
{"name": "成交额", "table_sort": 1},
|
1308
1309
|
{"name": "总市值", "table_sort": 1},
|
1309
1310
|
]
|
@@ -1341,7 +1342,7 @@ const Util = {
|
|
1341
1342
|
}
|
1342
1343
|
Util.show_loading();
|
1343
1344
|
let payload = {coin: coin, start_date: $("#btc_modal_start_date").val(), end_date: $("#btc_modal_end_date").val(), action: "btc_data", "currency_type": $("#currency_type").val()};
|
1344
|
-
Util.post(
|
1345
|
+
Util.post(Util.get_url("coin_price"), payload, function (j) {
|
1345
1346
|
let _html = [], low_price = 0, high_price = 0;
|
1346
1347
|
j["data"].forEach(function (item) {
|
1347
1348
|
if (low_price === 0 || item["price"] < low_price) {
|
@@ -1362,6 +1363,7 @@ const Util = {
|
|
1362
1363
|
_html.push("<td>", item["price"], "</td>");
|
1363
1364
|
_html.push("<td>", item["low"], "</td>");
|
1364
1365
|
_html.push("<td>", item["high"], "</td>");
|
1366
|
+
_html.push("<td>", Util.parse_ratio(item["p_change"]), "</td>");
|
1365
1367
|
_html.push("<td>", Util.to_unit(item["amount"]), "</td>");
|
1366
1368
|
_html.push("<td>", Util.to_unit(item["market_capital"]), "</td>");
|
1367
1369
|
_html.push("</tr>");
|