sbd-npm 1.4.74 → 1.4.75

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/stock_basics.js +9 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.4.74",
3
+ "version": "1.4.75",
4
4
  "description": "Stock Big Data",
5
5
  "author": "DHQ <dhq314@gmail.com>",
6
6
  "license": "ISC",
package/stock_basics.js CHANGED
@@ -140,8 +140,7 @@ let Stock = {
140
140
 
141
141
  fetch_base: function () {
142
142
  let html = [];
143
- let code_obj = $("#code");
144
- code_obj.html(Util.snowball_url(code_obj.text()));
143
+ $("#code").html(Util.snowball_url(Stock.code));
145
144
 
146
145
  let ttm_obj = $("#time_to_market");
147
146
  Stock.ttm_second = parseInt(ttm_obj.text());
@@ -275,12 +274,20 @@ let Stock = {
275
274
  $("#holder_num").html(Util.pack_html_link(holder_num_url + "?code=" + Stock.code, holder_num));
276
275
  }
277
276
  });
277
+ if (item["is_retire"] && item["is_retire"] === 1) {
278
+ let code_a_obj = $('#code a').first();
279
+ if (!code_a_obj.hasClass('label-default')) {
280
+ code_a_obj.addClass('label label-default');
281
+ code_a_obj.attr("title", "已退市");
282
+ }
283
+ }
278
284
  Util.hide_tips();
279
285
  });
280
286
  },
281
287
 
282
288
  fetch_hist_data: function () {
283
289
  Util.show_loading();
290
+ Util.set_table_loading("hist_table_body");
284
291
  let hist_type = $("#hist_type").val();
285
292
  let payload = {
286
293
  sort_type: Stock.sort_type,