sbd-npm 1.3.89 → 1.3.91
Sign up to get free protection for your applications and to get access to all the features.
- package/constant.js +4 -2
- package/package.json +1 -1
- package/status.js +1 -0
- package/util.js +23 -1
package/constant.js
CHANGED
@@ -241,7 +241,7 @@ const MenuList = [
|
|
241
241
|
{'key': 'other_ipo', 'name': '新股发行', 'url': '/0x3b76d49d673ee38531dab00bfcc450083fdd6230'},
|
242
242
|
{'key': 'other_enterprise', 'name': '企业数据', 'url': '/0xcb48bdfb30499ea2b41af500ae3905de5cc1c944'},
|
243
243
|
{'key': 'other_house', 'name': '楼盘房价', 'url': '/0xab39d160fe44a53cef59baf869dc3b6dadb0ad91'},
|
244
|
-
{'key': 'other_wine', 'name': '
|
244
|
+
{'key': 'other_wine', 'name': '茅台酒价', 'url': '/0x6f199a371e4b0eb646d77fda25a3a4e3b26e5cbe'},
|
245
245
|
{'key': 'other_bond', 'name': '地方债数据', 'url': '/0x427069438c7026f7baa895b202baa1c632c400b8'},
|
246
246
|
{'key': 'other_convertible_bond', 'name': '可转债数据', 'url': '/0x1e55023f90df525c69889dfbb808579b2ccc06d8'},
|
247
247
|
{'key': 'other_fortune500', 'name': '财富500强', 'url': '/0x2d55a289cd72e271a737841186fa0a74560c3c69'},
|
@@ -260,11 +260,12 @@ const ClassifyList = [
|
|
260
260
|
'科创50',
|
261
261
|
'上证',
|
262
262
|
'深证',
|
263
|
-
'科创板',
|
264
263
|
'中小板',
|
265
264
|
'创业板',
|
266
265
|
'创业板50',
|
267
266
|
'创业板指',
|
267
|
+
'科创板',
|
268
|
+
'北交所',
|
268
269
|
'新股',
|
269
270
|
];
|
270
271
|
|
@@ -279,6 +280,7 @@ const IndexList = [
|
|
279
280
|
{'code': 'SZ399850', 'name': '深证50', 'is_industry': 0, 'is_key': 0},
|
280
281
|
{'code': 'SZ399673', 'name': '创业板50', 'is_industry': 0, 'is_key': 0},
|
281
282
|
{'code': 'SH000688', 'name': '科创50', 'is_industry': 0, 'is_key': 1},
|
283
|
+
{'code': 'BJ899050', 'name': '北证50', 'is_industry': 0, 'is_key': 0},
|
282
284
|
{'code': 'SH000698', 'name': '科创100', 'is_industry': 0, 'is_key': 0},
|
283
285
|
{'code': 'SH000903', 'name': '中证100', 'is_industry': 0, 'is_key': 1},
|
284
286
|
{'code': 'SH000905', 'name': '中证500', 'is_industry': 1, 'is_key': 1},
|
package/package.json
CHANGED
package/status.js
CHANGED
package/util.js
CHANGED
@@ -652,7 +652,19 @@ const Util = {
|
|
652
652
|
* @returns {string}
|
653
653
|
*/
|
654
654
|
code_to_market: function (code) {
|
655
|
-
|
655
|
+
if (Util.is_us(code)) {
|
656
|
+
return "US"
|
657
|
+
}
|
658
|
+
if (Util.is_hk(code)) {
|
659
|
+
return "HK"
|
660
|
+
}
|
661
|
+
if (Util.is_sh(code)) {
|
662
|
+
return "SH"
|
663
|
+
}
|
664
|
+
if (Util.is_bse(code)) {
|
665
|
+
return "BJ"
|
666
|
+
}
|
667
|
+
return "SZ"
|
656
668
|
},
|
657
669
|
|
658
670
|
/**
|
@@ -706,6 +718,16 @@ const Util = {
|
|
706
718
|
return prefix === "6";
|
707
719
|
},
|
708
720
|
|
721
|
+
/**
|
722
|
+
* 是否北交所股票
|
723
|
+
* @param code
|
724
|
+
* @returns {boolean}
|
725
|
+
*/
|
726
|
+
is_bse: function (code) {
|
727
|
+
let prefix = code.substr(0, 1);
|
728
|
+
return prefix === "4" || prefix === "8";
|
729
|
+
},
|
730
|
+
|
709
731
|
/**
|
710
732
|
* 是否A股股票
|
711
733
|
* @param code
|