sbd-npm 1.3.43 → 1.3.44
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/stock_basics.js +13 -8
package/package.json
CHANGED
package/stock_basics.js
CHANGED
@@ -215,7 +215,7 @@ let Stock = {
|
|
215
215
|
remark_html.push("<b class='text-success'>最近解禁<a href='" + Util.get_url("holder_restricted") + "?tab=xsg_list&date=" + xsg_date + "'>" + xsg_date + "</a></b>, ");
|
216
216
|
}
|
217
217
|
if (item["price"] > 0 && item["price"] < item["block_trade_price"]) {
|
218
|
-
remark_html.push("<b class='text-danger'>当前价小于最近<a href='" + Util.get_url("daily_block") + "?code=" + item["code"] + "'>大宗交易价(" + item["block_trade_price"] + ")</a></b>, ");
|
218
|
+
remark_html.push("<b class='text-danger'>当前价小于最近<a href='" + Util.get_url("daily_block") + "?code=" + item["code"] + "&start_date=" + Util.seconds_to_format(Stock.ttm_second, "%Y-%m-%d") + "'>大宗交易价(" + item["block_trade_price"] + ")</a></b>, ");
|
219
219
|
}
|
220
220
|
if (item["desc"]) {
|
221
221
|
remark_html.push("<br><br><p>" + item["desc"] + "</p>");
|
@@ -1155,14 +1155,18 @@ 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 = 0, rzye_high = 0;
|
1158
|
+
let date_data = [], rzye_data = [], rqye_data = [], price_data = [], rqye_color_data = [], rzye_low = 0, rzye_high = 0, rqye_low = 0, rqye_high = 0;
|
1159
1159
|
j["data"].forEach(function (item) {
|
1160
|
+
date_data.push(Util.seconds_to_format(item["date"], "%Y-%m-%d"));
|
1160
1161
|
if (rzye_low === 0 || item["rzye"] < rzye_low) {
|
1161
1162
|
rzye_low = item["rzye"];
|
1162
1163
|
}
|
1163
1164
|
rzye_high = Math.max(rzye_high, item["rzye"]);
|
1164
|
-
date_data.push(Util.seconds_to_format(item["date"], "%Y-%m-%d"));
|
1165
1165
|
rzye_data.push(Util.to_hundred_million(item["rzye"], 3));
|
1166
|
+
if (rqye_low === 0 || item["rqye"] < rqye_low) {
|
1167
|
+
rqye_low = item["rqye"];
|
1168
|
+
}
|
1169
|
+
rqye_high = Math.max(rqye_high, item["rqye"]);
|
1166
1170
|
rqye_data.push(Util.to_ten_thousand(item["rqye"], 2));
|
1167
1171
|
price_data.push(item["price"]);
|
1168
1172
|
rqye_color_data.push("#E74C3C");
|
@@ -1190,23 +1194,24 @@ let Stock = {
|
|
1190
1194
|
rqye_summary = " 最新融券余额(" + Util.seconds_to_format(d1["date"], "%Y-%m-%d") + "): " + Util.to_unit(d1["rqye"], 3) + rqye_dist_tips;
|
1191
1195
|
}
|
1192
1196
|
}
|
1193
|
-
margin_summary
|
1197
|
+
margin_summary += ' 当前最高: <span style="color: #FFF;" class="label label-danger">' + Util.strip_html(Util.to_unit(rzye_high, 3)) + '</span> 当前最低: <span style="color: #FFF;" class="label label-success">' + Util.strip_html(Util.to_unit(rzye_low, 3)) + "</span>";
|
1194
1198
|
if (j["rzye_high"] && j["rzye_high"]["date"] && j["rzye_high"]["date"] > 0) {
|
1195
|
-
margin_summary += ' 历史最高: ' + Util.to_unit(j["rzye_high"]["rzye"], 3) + '(' + Util.seconds_to_format(j["rzye_high"]["date"], "%Y-%m-%d") + ')';
|
1199
|
+
margin_summary += ' 历史最高: <span style="color: #FFF;" class="label label-danger">' + Util.strip_html(Util.to_unit(j["rzye_high"]["rzye"], 3)) + '</span>(' + Util.seconds_to_format(j["rzye_high"]["date"], "%Y-%m-%d") + ')';
|
1196
1200
|
}
|
1197
1201
|
if (j["rzye_low"] && j["rzye_low"]["date"] && j["rzye_low"]["date"] > 0) {
|
1198
|
-
margin_summary += ' 历史最低: ' + Util.to_unit(j["rzye_low"]["rzye"], 3) + '(' + Util.seconds_to_format(j["rzye_low"]["date"], "%Y-%m-%d") + ')';
|
1202
|
+
margin_summary += ' 历史最低: <span style="color: #FFF;" class="label label-success">' + Util.strip_html(Util.to_unit(j["rzye_low"]["rzye"], 3)) + '</span>(' + Util.seconds_to_format(j["rzye_low"]["date"], "%Y-%m-%d") + ')';
|
1199
1203
|
}
|
1200
1204
|
if (j["less_rate"]) {
|
1201
1205
|
margin_summary += ' 当前最新融资余额超过历史 <span style="color: #FFF;" class="label label-info">' + j["less_rate"] + '%</span> 分位水平';
|
1202
1206
|
}
|
1203
1207
|
$("#margin_summary").html(margin_summary);
|
1204
1208
|
Stock["rzye_chart"] = Util.multi_axis_line(Stock["rzye_chart"], "rzye_line_canvas", date_data, '融资余额(单位:亿)', rzye_data, '股价', price_data);
|
1209
|
+
rqye_summary += ' 当前最高: <span style="color: #FFF;" class="label label-danger">' + Util.strip_html(Util.to_unit(rqye_high, 3)) + '</span> 当前最低: <span style="color: #FFF;" class="label label-success">' + Util.strip_html(Util.to_unit(rqye_low, 3)) + "</span>";
|
1205
1210
|
if (j["rqye_high"] && j["rqye_high"]["date"] && j["rqye_high"]["date"] > 0) {
|
1206
|
-
rqye_summary += ' 历史最高: ' + Util.to_unit(j["rqye_high"]["rqye"], 3) + '(' + Util.seconds_to_format(j["rqye_high"]["date"], "%Y-%m-%d") + ')';
|
1211
|
+
rqye_summary += ' 历史最高: <span style="color: #FFF;" class="label label-danger">' + Util.strip_html(Util.to_unit(j["rqye_high"]["rqye"], 3)) + '</span>(' + Util.seconds_to_format(j["rqye_high"]["date"], "%Y-%m-%d") + ')';
|
1207
1212
|
}
|
1208
1213
|
if (j["rqye_low"] && j["rqye_low"]["date"] && j["rqye_low"]["date"] > 0) {
|
1209
|
-
rqye_summary += ' 历史最低: ' + Util.to_unit(j["rqye_low"]["rqye"], 3) + '(' + Util.seconds_to_format(j["rqye_low"]["date"], "%Y-%m-%d") + ')';
|
1214
|
+
rqye_summary += ' 历史最低: <span style="color: #FFF;" class="label label-success">' + Util.strip_html(Util.to_unit(j["rqye_low"]["rqye"], 3)) + '</span>(' + Util.seconds_to_format(j["rqye_low"]["date"], "%Y-%m-%d") + ')';
|
1210
1215
|
}
|
1211
1216
|
$("#rqye_summary").html(" [" + rqye_summary + " ]");
|
1212
1217
|
Stock["rqye_chart"] = Util.chart_bar_line(Stock["rqye_chart"], "rqye_line_canvas", date_data, rqye_data, '融券余额(单位:万)', rqye_color_data, price_data, '股价');
|