sbd-npm 1.3.81 → 1.3.83

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
@@ -153,6 +153,7 @@ const MenuList = [
153
153
  {'key': 'portfolio_star50', 'name': '科创50', 'url': '/0x378b2601d83c467f81f1d4e323c8bfbc72f6cc0d'},
154
154
  {'key': 'portfolio_bellwether', 'name': '龙头股', 'url': '/0x7cdfb14131c3693c439a90333790eeb5fce70a12'},
155
155
  {'key': 'portfolio_market_situation', 'name': '市值风云', 'url': '/0x3720c6de05378152ef0e758b56199bfcbc15274b'},
156
+ {'key': 'portfolio_huawei', 'name': '华为产业链', 'url': '/0xb0705c802705f225d8a4a8d726ad5eeb42c7c22d'},
156
157
  {'key': 'portfolio_chip', 'name': '芯片半导体', 'url': '/0x05ad16cc1cc6b9ee1f3bb134e798a83037878de3'},
157
158
  {'key': 'portfolio_auto_intelligent', 'name': '智能电动车', 'url': '/0xa4dd0bd98c5924bf4c9f944ea97a93cbb0a6cb35'},
158
159
  {'key': 'portfolio_hk', 'name': '港股', 'url': '/0x64616c9e7d2445c983368baebc4a19eb71b551d8'},
@@ -286,5 +287,6 @@ const IndexList = [
286
287
  {'code': 'hsci', 'name': '恒生综合指数', 'is_industry': 1, 'is_key': 1},
287
288
  {'code': 'hstech', 'name': '恒生科技指数', 'is_industry': 0, 'is_key': 1},
288
289
  {'code': 'sp500', 'name': '标普500指数', 'is_industry': 1, 'is_key': 1},
290
+ {'code': 'ths_all_a', 'name': '同花顺全A指数', 'is_industry': 0, 'is_key': 0},
289
291
  {'code': 'usdcnh', 'name': '美元离岸人民币汇率', 'is_industry': 0, 'is_key': 0},
290
292
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.3.81",
3
+ "version": "1.3.83",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/stock_basics.js CHANGED
@@ -1055,7 +1055,9 @@ let Stock = {
1055
1055
  Util.post("/stock/" + Stock["code"], payload, function (j) {
1056
1056
  Stock["rzye_chart"].hideLoading();
1057
1057
  let date_data = [], rzye_data = [], rqye_data = [], price_data = [], rqye_color_data = [], rzye_low = Number.MAX_SAFE_INTEGER, rzye_high = 0, rqye_low = Number.MAX_SAFE_INTEGER, rqye_high = 0;
1058
+ let latest_date = 0, margin_summary = "", rqye_summary = "";
1058
1059
  j["data"].forEach(function (item) {
1060
+ latest_date = Math.max(latest_date, item["date"]);
1059
1061
  date_data.push(Util.seconds_to_format(item["date"], "%Y-%m-%d"));
1060
1062
  rzye_low = Math.min(rzye_low, item["rzye"]);
1061
1063
  rzye_high = Math.max(rzye_high, item["rzye"]);
@@ -1066,7 +1068,8 @@ let Stock = {
1066
1068
  price_data.push(item["price"]);
1067
1069
  rqye_color_data.push("#E74C3C");
1068
1070
  });
1069
- let margin_summary = "", rqye_summary = "";
1071
+ latest_date = Util.seconds_to_format(latest_date, "%Y-%m-%d");
1072
+ $("#stock_margin_url").attr("href", Util.get_url("trend_margin") + "?start_date=" + latest_date + "&end_date=" + latest_date);
1070
1073
  if (j["latest"].length > 0) {
1071
1074
  if (j["latest"].length === 1) {
1072
1075
  margin_summary = " 最新融资余额(" + Util.seconds_to_format(j["latest"][0]["date"], "%Y-%m-%d") + "): " + Util.to_unit(j["latest"][0]["rzye"], 3);