sbd-npm 1.5.61 → 1.5.63

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.5.61",
3
+ "version": "1.5.63",
4
4
  "description": "Stock Big Data",
5
5
  "author": "DHQ <dhq314@gmail.com>",
6
6
  "license": "ISC",
package/status.js CHANGED
@@ -236,7 +236,7 @@ $(function () {
236
236
  let this_object = $(this);
237
237
  let td_text = this_object.text();
238
238
  if (!td_text.includes("checking")) {
239
- this_object.text("checking...")
239
+ this_object.text("checking...");
240
240
  this_object.parent().addClass("info");
241
241
  let ip = this_object.parent().parent().children('td').eq(1).text();
242
242
  Util.post(location.pathname, {"action": "check_ip", "ip": ip}, function (ip_data) {
package/stock_basics.js CHANGED
@@ -210,9 +210,9 @@ let Stock = {
210
210
  if (item.is_margin_minimum) {
211
211
  remark_html.push("<a class='btn btn-xs btn-danger' href='" + Util.get_url("rank_margin_minimum") + "'>融资余额创新低</a>");
212
212
  }
213
- if (item.xsg_date > 0) {
214
- let xsg_date = Util.seconds_to_format(item.xsg_date, "%Y-%m-%d");
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>, ");
213
+ if (item.restricted_date && item.restricted_date > 0) {
214
+ let restricted_date = Util.seconds_to_format(item.restricted_date, "%Y-%m-%d");
215
+ remark_html.push("<b class='text-success'>最近解禁<a href='" + Util.get_url("holder_restricted") + "?tab=restricted_list&date=" + restricted_date + "'>" + restricted_date + "</a></b>, ");
216
216
  }
217
217
  if (item.price > 0 && item.price < item.block_trade_price) {
218
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>, ");