sbd-npm 1.4.73 → 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.
- package/package.json +1 -1
- package/stock_basics.js +9 -2
- package/util.js +3 -3
package/package.json
CHANGED
package/stock_basics.js
CHANGED
@@ -140,8 +140,7 @@ let Stock = {
|
|
140
140
|
|
141
141
|
fetch_base: function () {
|
142
142
|
let html = [];
|
143
|
-
|
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,
|
package/util.js
CHANGED
@@ -64,7 +64,7 @@ const Util = {
|
|
64
64
|
singleDatePicker: true, // 单日期选择
|
65
65
|
singleClasses: "picker_2",
|
66
66
|
showDropdowns: true, // 开启年份和月份下拉
|
67
|
-
minDate: '1990-
|
67
|
+
minDate: '1990-11-26' // 上海证券交易所1990年11月26日正式成立,同年12月19日开始正式营业,深圳证券交易所1991年4月11日经中国人民银行批准成立,同年7月3日正式营业
|
68
68
|
},
|
69
69
|
|
70
70
|
sbd_init: function () {
|
@@ -3636,14 +3636,14 @@ const Util = {
|
|
3636
3636
|
html.push('<div class="form-group">');
|
3637
3637
|
html.push('<label for="', start_id, '"></label>');
|
3638
3638
|
html.push('<div class="col-md-6 col-sm-6 col-xs-12 form-group">');
|
3639
|
-
html.push('<input type="text" class="form-control has-feedback-left" id="', start_id, '" name="', start_id, '" title="开始时间" placeholder="开始时间" value="', start_date, '">');
|
3639
|
+
html.push('<input type="text" class="form-control has-feedback-left" autocomplete="off" id="', start_id, '" name="', start_id, '" title="开始时间" placeholder="开始时间" value="', start_date, '">');
|
3640
3640
|
html.push('<span class="fa fa-calendar-o form-control-feedback left" aria-hidden="true"></span>');
|
3641
3641
|
html.push('</div>');
|
3642
3642
|
html.push('</div>');
|
3643
3643
|
html.push('<div class="form-group" style="margin-left: -15px;">');
|
3644
3644
|
html.push('<label for="', end_id, '"></label>');
|
3645
3645
|
html.push('<div class="col-md-6 col-sm-6 col-xs-12 form-group">');
|
3646
|
-
html.push('<input type="text" class="form-control has-feedback-left" id="', end_id, '" name="', end_id, '" title="结束时间" placeholder="结束时间" value="', end_date, '">');
|
3646
|
+
html.push('<input type="text" class="form-control has-feedback-left" autocomplete="off" id="', end_id, '" name="', end_id, '" title="结束时间" placeholder="结束时间" value="', end_date, '">');
|
3647
3647
|
html.push('<span class="fa fa-calendar-o form-control-feedback left" aria-hidden="true"></span>');
|
3648
3648
|
html.push('</div>');
|
3649
3649
|
html.push('</div>');
|