sbd-npm 1.3.33 → 1.3.35

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.
Files changed (3) hide show
  1. package/constant.js +2 -2
  2. package/package.json +1 -1
  3. package/util.js +6 -2
package/constant.js CHANGED
@@ -40,7 +40,7 @@ const MenuList = [
40
40
  {'key': 'trend_day3_stabilize', 'name': '连续三日收涨', 'url': '/0x7e9df652521f334030e0be383f5fe10f01a67243'},
41
41
  {'key': 'trend_contra_trade', 'name': '反包', 'url': '/0xa3645ec3bf460f8c0c2ce35d22ab3f50bdd87c5f'},
42
42
  {'key': 'trend_kdj', 'name': 'KDJ金叉', 'url': '/0x3382bdaec4e8715ce27ca2b538dce09a2f8f5e50'},
43
- {'key': 'trend_macd_down', 'name': 'MACD金叉', 'url': '/0x96943c359b08b02392a168ad6cd4b5703e3e9267'},
43
+ {'key': 'trend_macd_cross', 'name': 'MACD金叉', 'url': '/0x277bc35fcd21059103dd7917c8bfe0c474880b85'},
44
44
  {'key': 'trend_bull_trend', 'name': '多头趋势', 'url': '/0x37b24777154ee090926e57bfa5602efa5c89b8a8'},
45
45
  {'key': 'trend_money_inflow', 'name': '资金流入历史最高', 'url': '/0xfbfc92be1eebe9ccf5b2f14b9a2ea25f2cc941b8'},
46
46
  {'key': 'trend_month', 'name': '月线趋势', 'url': '/0x9199702d80c49b940f774cdb275403f6bc293c78'},
@@ -145,7 +145,7 @@ const MenuList = [
145
145
  {'key': 'portfolio_zan', 'name': 'zangyn', 'url': '/0xccb07ddaf4f1219b7b5ae64780e7905206927873'},
146
146
  {'key': 'portfolio_peng', 'name': '吴小朋同学', 'url': '/0x4f1a316c05731e365ec1b7ef454d98206fa973f6'},
147
147
  {'key': 'portfolio_penny', 'name': '梁斌penny', 'url': '/0x34ec770b56fbd946e2a3467664efbe674d04f6ec'},
148
- {'key': 'portfolio_wen', 'name': '崇文不尚武', 'url': '/0xe09c047550390159bda66d6315743427dd7ccae4'},
148
+ {'key': 'portfolio_wen', 'name': '李健2013', 'url': '/0xe09c047550390159bda66d6315743427dd7ccae4'},
149
149
  {'key': 'portfolio_patience', 'name': '耐力投资', 'url': '/0x55ecbeeabd7ad78dba8c38a9325b2889798622b3'},
150
150
  {'key': 'portfolio_star50', 'name': '科创50', 'url': '/0x378b2601d83c467f81f1d4e323c8bfbc72f6cc0d'},
151
151
  {'key': 'portfolio_bellwether', 'name': '龙头股', 'url': '/0x7cdfb14131c3693c439a90333790eeb5fce70a12'},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.3.33",
3
+ "version": "1.3.35",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/util.js CHANGED
@@ -371,9 +371,13 @@ const Util = {
371
371
  html.push("<td>", Util.industry_url(item["code"], item["industry"]), "</td>");
372
372
  html.push("<td>", Util.map_url((item["province_city"] && item["province_city"] !== "None") ? item["province_city"] : item["area"]), "</td>");
373
373
  let price = item["stock_price"] ? item["stock_price"] : item["price"];
374
- let pre_price = item["pre_price"] ? item["pre_price"] : (item["previous_price"] ? item["previous_price"] : 0)
374
+ let pre_price = item["pre_price"] ? item["pre_price"] : (item["previous_price"] ? item["previous_price"] : 0);
375
375
  if (pre_price > 0) {
376
- html.push("<td class='price_", item["code"].toLowerCase(), "'>", Util.digit_compare_trend(price, pre_price), "</td>");
376
+ if (item["no_refresh_price"] && item["no_refresh_price"] > 0) {
377
+ html.push("<td>", Util.digit_compare_trend(item["no_refresh_price"], pre_price), "</td>");
378
+ } else {
379
+ html.push("<td class='price_", item["code"].toLowerCase(), "'>", Util.digit_compare_trend(price, pre_price), "</td>");
380
+ }
377
381
  } else {
378
382
  html.push("<td class='price_", item["code"].toLowerCase(), "'>", price, "</td>");
379
383
  }