sbd-npm 1.2.84 → 1.2.85

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
@@ -187,7 +187,8 @@ const MenuList = [
187
187
  {'key': 'us_cn', 'name': '中国概念股', 'url': '/bff1b2e208757edb89df6e62385a8c1b'},
188
188
  {'key': 'us_marijuana', 'name': '工业大麻', 'url': '/d3e38cb2006f647d269763f3f9df942b'},
189
189
  {'key': 'us_short_rank', 'name': '做空排行', 'url': '/918871a5e9af5bd87bcb54a4b1677595'},
190
- {'key': 'us_pe', 'name': '历史PE', 'url': '/aad2760a6cdbc1311cad07f7951d3b08'},
190
+ {'key': 'us_bond_yield', 'name': '美十年国债收益率', 'url': '/3d1ba074a5d8e2e0162fce0db80753d4'},
191
+ {'key': 'us_pe', 'name': '标普500历史PE', 'url': '/aad2760a6cdbc1311cad07f7951d3b08'},
191
192
  {'key': 'us_dollar', 'name': '美元关系图', 'url': '/6f9cfb3962d6c60c2364af35354e1298'},
192
193
  ]
193
194
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.2.84",
3
+ "version": "1.2.85",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/stock_basics.js CHANGED
@@ -684,15 +684,9 @@ let Stock = {
684
684
  });
685
685
  Util.post("/stock/" + Stock["code"], {action: "holder_num"}, function (j) {
686
686
  Stock["holder_chart"].hideLoading();
687
- let date_data = [];
688
- let holder_data = [];
689
- let price_data = [];
690
- let _html = [];
691
- let latest_date = 0;
692
- let max_holder_num = 0;
693
- let max_holder_num_date = 0;
687
+ let _html = [], date_data = [], holder_data = [], price_data = [];
688
+ let latest_date = 0, max_holder_num = 0, max_holder_num_date = 0, min_holder_num_date = 0;
694
689
  let min_holder_num = Util.one_year_second;
695
- let min_holder_num_date = 0;
696
690
  j["data"].forEach(function (item) {
697
691
  let date_format = Util.seconds_to_format(item["date"], "%Y-%m-%d");
698
692
  latest_date = Math.max(latest_date, item["date"]);