sbd-npm 1.2.48 → 1.2.50

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
@@ -40,6 +40,7 @@ const MenuList = [
40
40
  {'key': 'trend_money_inflow', 'name': '资金流入历史最高', 'url': '/dc1303ba221de0c4fb85cd3cb513c547'},
41
41
  {'key': 'trend_month', 'name': '月线趋势', 'url': '/218cd8e3c5ea55629cac28ee0e543233'},
42
42
  {'key': 'trend_boll', 'name': '布林线', 'url': '/0c9b231a72e40475d6f985fd67bdb718'},
43
+ {'key': 'trend_kdj', 'name': 'KDJ金叉', 'url': '/e213b8b8b1d3049db79b606f727fa94a'},
43
44
  {'key': 'trend_bull_trend', 'name': '多头趋势', 'url': '/11c801537253fbfc175fadf8f645721d'},
44
45
  {'key': 'trend_ma20_60', 'name': '20、60日均线交叉', 'url': '/4bf72713d83469ad6ec1d9fc3be8886f'},
45
46
  {'key': 'trend_macd_down', 'name': 'MACD下行', 'url': '/ff97a31b4ffbabe71315e75c4fd62047'},
@@ -139,6 +140,7 @@ const MenuList = [
139
140
  {'key': 'concept_market_situation', 'name': '市值风云', 'url': '/02fdaf4d66cdecb092bcd65f569aa493'},
140
141
  {'key': 'concept_wen', 'name': '崇文不尚武', 'url': '/b6fd64a2c54250b8ac039123e74e9b7e'},
141
142
  {'key': 'concept_dao', 'name': '成长股事(大道)', 'url': '/7b7ea877f6793752e2b981d82da81e1b'},
143
+ {'key': 'concept_zan', 'name': 'zangyn', 'url': '/860a3a9647efad436894b4aa3843da42'},
142
144
  {'key': 'concept_down_top', 'name': '15-21年的超跌股', 'url': '/ae3bbf97a358392cfaa0ceb35cb3fb57'},
143
145
  {'key': 'concept_cloud', 'name': '心似白云常自在', 'url': '/1d883188398a3a8c743748c5eb81fe7b'},
144
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.48",
3
+ "version": "1.2.50",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/stock_basics.js CHANGED
@@ -947,7 +947,8 @@ let Stock = {
947
947
  _html.push("</tr>");
948
948
  });
949
949
  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>亿市值');
950
+ total_public_fund = Util.pack_html_link(Util.get_url("trend_fund_hold"), '<span class="label label-info">' + total_public_fund + '</span>');
951
+ $("#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
952
  if ($("#public_fund_date").length === 0) {
952
953
  Util.post("/stock/" + Stock["code"], {action: "public_fund_date"}, function (j) {
953
954
  let _html = [];