sbd-npm 1.3.95 → 1.3.96

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/constant.js CHANGED
@@ -93,7 +93,7 @@ const MenuList = [
93
93
  ]
94
94
  },
95
95
  {
96
- 'name': '数字币',
96
+ 'name': '加密货币',
97
97
  'icon': 'btc',
98
98
  'menu': [
99
99
  {'key': 'coin_summary', 'name': '币种概况', 'url': '/0xe244823c82ac550749d230e467b4b7045b3662a5'},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.3.95",
3
+ "version": "1.3.96",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/summary_daily.js CHANGED
@@ -73,10 +73,13 @@ $(function () {
73
73
  return false;
74
74
  }
75
75
  Util.show_loading();
76
- Util.post(location.pathname, {date: $("#trade_date").val(), action: "market_overview"}, function (j) {
76
+ Util.post(location.pathname, {date: $("#trade_date").val(), action: "market_overview", is_init: Util.is_init}, function (j) {
77
77
  DailySummary.pack_market_overview(j["market_overview"]);
78
78
  DailySummary.fetch_statistics_daily();
79
79
  DailySummary.fetch_hsgt_ten(0);
80
+ if (j["date"] && !Util.is_mobile()) {
81
+ DailySummary.init_date_component(j["date"]);
82
+ }
80
83
  });
81
84
  },
82
85
 
@@ -492,6 +495,22 @@ $(function () {
492
495
  $("#index_hist_modal_url").attr("href", c["url"]);
493
496
  }
494
497
  });
498
+ },
499
+
500
+ init_date_component: function(trade_date) {
501
+ let date_html = [];
502
+ date_html.push('<ul class="nav navbar-nav" style="margin-top: 10px;"><li class="nav-item">');
503
+ date_html.push('<div class="form-group">');
504
+ date_html.push('<label for="trade_date"></label>');
505
+ date_html.push('<div class="col-md-6 col-sm-6 col-xs-12 form-group" style="width: 200px;">');
506
+ date_html.push('<input type="text" class="form-control has-feedback-left" id="trade_date" name="trade_date" title="时间" placeholder="时间" value="">');
507
+ date_html.push('<span class="fa fa-calendar-o form-control-feedback left" aria-hidden="true"></span>');
508
+ date_html.push('</div>');
509
+ date_html.push('</div>');
510
+ date_html.push('</li></ul>');
511
+ $('.top_nav .nav_menu nav div.toggle').after(date_html.join(""));
512
+ $("#trade_date").val(Util.seconds_to_format(trade_date, "%Y-%m-%d"));
513
+ Util.init_date_range_picker("trade_date", DailySummary.fetch_data);
495
514
  }
496
515
 
497
516
  };