sbd-npm 1.2.49 → 1.2.51

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/.npmignore ADDED
@@ -0,0 +1 @@
1
+ sbd-npm.md
package/README.md CHANGED
@@ -8,6 +8,8 @@
8
8
  yum install -y nodejs
9
9
  ```
10
10
 
11
+ [https://nodejs.org/en/download/releases/](https://nodejs.org/en/download/releases/)
12
+
11
13
  ## 登录 [NPM](https://www.npmjs.com/)
12
14
 
13
15
  ```
@@ -33,3 +35,13 @@ npm version 1.0.1
33
35
  ```
34
36
 
35
37
  或直接修改 `package.json` 里的 `version` 字段
38
+
39
+ ## 配置 Access Token
40
+
41
+ 项目根目录创建 `.npmrc` 文件,写入以下代码
42
+
43
+ ```
44
+ registry=https://registry.npmjs.org/
45
+ //registry.npmjs.org/:always-auth=true
46
+ //registry.npmjs.org/:_authToken=npm_r0oogXok12345678902ZX1P1w2ns
47
+ ```
package/constant.js CHANGED
@@ -140,6 +140,7 @@ const MenuList = [
140
140
  {'key': 'concept_market_situation', 'name': '市值风云', 'url': '/02fdaf4d66cdecb092bcd65f569aa493'},
141
141
  {'key': 'concept_wen', 'name': '崇文不尚武', 'url': '/b6fd64a2c54250b8ac039123e74e9b7e'},
142
142
  {'key': 'concept_dao', 'name': '成长股事(大道)', 'url': '/7b7ea877f6793752e2b981d82da81e1b'},
143
+ {'key': 'concept_zan', 'name': 'zangyn', 'url': '/860a3a9647efad436894b4aa3843da42'},
143
144
  {'key': 'concept_down_top', 'name': '15-21年的超跌股', 'url': '/ae3bbf97a358392cfaa0ceb35cb3fb57'},
144
145
  {'key': 'concept_cloud', 'name': '心似白云常自在', 'url': '/1d883188398a3a8c743748c5eb81fe7b'},
145
146
  {'key': 'concept_niu', 'name': '老曾阿牛', 'url': '/0f4a2714971424024c1ddd8651c26569'},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.2.49",
3
+ "version": "1.2.51",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/stock_basics.js CHANGED
@@ -298,9 +298,6 @@ let Stock = {
298
298
  hist_low_price = item["low"];
299
299
  }
300
300
  hist_high_price = Math.max(hist_high_price, item["high"]);
301
- if (hist_type === "week") {
302
- item["date"] += Util.one_day_second * 5 - 1;
303
- }
304
301
  total_amount += item["amount"];
305
302
  total_volume += item["volume"] * 100;
306
303
  _html.push("<tr>");
@@ -947,7 +944,8 @@ let Stock = {
947
944
  _html.push("</tr>");
948
945
  });
949
946
  Util.render_table_html("public_fund_table_body", _html);
950
- $("#public_fund_tips").html('共 <span class="label label-info">' + total_public_fund + '</span> 家, <span class="label label-info">' + Util.to_hundred_million(total_stock_num, 3) + '</span> 亿股,<span class="label label-info">' + Util.to_hundred_million(total_market_capital, 3) + '</span>亿市值');
947
+ total_public_fund = Util.pack_html_link(Util.get_url("trend_fund_hold"), '<span class="label label-info">' + total_public_fund + '</span>');
948
+ $("#public_fund_tips").html('共 ' + total_public_fund + ' 家, <span class="label label-info">' + Util.to_hundred_million(total_stock_num, 3) + '</span> 亿股,<span class="label label-info">' + Util.to_hundred_million(total_market_capital, 3) + '</span>亿市值');
951
949
  if ($("#public_fund_date").length === 0) {
952
950
  Util.post("/stock/" + Stock["code"], {action: "public_fund_date"}, function (j) {
953
951
  let _html = [];