sbd-npm 1.3.2 → 1.3.4
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 +3 -1
- package/package.json +1 -1
- package/util.js +16 -13
package/constant.js
CHANGED
@@ -139,6 +139,7 @@ const MenuList = [
|
|
139
139
|
{'key': 'concept_cloud', 'name': '心似白云常自在', 'url': '/0xaacc2078f38307e8a6855ecd96c69af39e1d69d3'},
|
140
140
|
{'key': 'concept_vegetable', 'name': 'Veget', 'url': '/0xbd14b9e9686c14863ea0849fb60ba90acf4e35eb'},
|
141
141
|
{'key': 'concept_zan', 'name': 'zangyn', 'url': '/0xbdc27e0a9908ee586033dbb801c57369e687810c'},
|
142
|
+
{'key': 'concept_follow', 'name': '跟我走吧14', 'url': '/0x70da61572340cef1dd3506f6505b1d2fc8d45156'},
|
142
143
|
{'key': 'concept_peng', 'name': '吴小朋同学', 'url': '/0x02073ae93ccbbda6e2f6a9d7588ba4f7c30a9af8'},
|
143
144
|
{'key': 'concept_xiong', 'name': '王朝雄', 'url': '/0x7bf85e4b9a10a5a144cb079425581844d185a52e'},
|
144
145
|
{'key': 'concept_penny', 'name': '梁斌penny', 'url': '/0xe796e2ec1b573ab027f72072147f8dfddc5d3368'},
|
@@ -147,7 +148,7 @@ const MenuList = [
|
|
147
148
|
{'key': 'concept_star50', 'name': '科创50', 'url': '/0x9b4e2daac43b0391842cb8e62c8b9aa07662d8bd'},
|
148
149
|
{'key': 'concept_bellwether', 'name': '龙头股', 'url': '/0x4acb881cf7b392df48e10b52fe77115836d4cc10'},
|
149
150
|
{'key': 'concept_market_situation', 'name': '市值风云', 'url': '/0xa2df531f71114d2001427d83d9955d2ab0a50cdf'},
|
150
|
-
{'key': 'concept_down_top', 'name': '15-21
|
151
|
+
{'key': 'concept_down_top', 'name': '15-21年超跌股', 'url': '/0x4f30e7aa31c910be8b4cecf1ec5cbcfa0fcd74b7'},
|
151
152
|
{'key': 'concept_auto_intelligent', 'name': '智能电动车', 'url': '/0x4594dd03fe141df964e980080769c5e171243ef0'},
|
152
153
|
{'key': 'concept_hk', 'name': '港股', 'url': '/0xd63fedf985a711ff5b3b6567ee94e1ba49d3787c'},
|
153
154
|
{'key': 'concept_us', 'name': '美股', 'url': '/0x77b7acd63bd93517f933bf0a02dafe82260f4791'},
|
@@ -178,6 +179,7 @@ const MenuList = [
|
|
178
179
|
{'key': 'hk_hsh35', 'name': '恒生香港35指数', 'url': '/0x5eff66742c612a2423c451e7d112014ecccc6af9'},
|
179
180
|
{'key': 'hk_hsm100', 'name': '恒生中国100指数', 'url': '/0x759fcb84a0a322125df6748dffad66d7b2b44c2d'},
|
180
181
|
{'key': 'hk_biotechnology', 'name': '生物科技', 'url': '/0xa131be85db2beb939e93207d0966c3710c7b761a'},
|
182
|
+
{'key': 'hk_sell_short', 'name': '沽空排行', 'url': '/0x4ecddc987891875a42d206620cd97ca382613485'},
|
181
183
|
]
|
182
184
|
},
|
183
185
|
{
|
package/package.json
CHANGED
package/util.js
CHANGED
@@ -230,7 +230,7 @@ const Util = {
|
|
230
230
|
* @returns {string}
|
231
231
|
*/
|
232
232
|
stock_url: function (code, name) {
|
233
|
-
return "
|
233
|
+
return Util.pack_html_link("/stock/" + code, name);
|
234
234
|
},
|
235
235
|
|
236
236
|
/**
|
@@ -474,14 +474,10 @@ const Util = {
|
|
474
474
|
* @returns {*}
|
475
475
|
*/
|
476
476
|
stock_hk_html: function (html, item, exchange_rate) {
|
477
|
-
let name = item["name"];
|
478
|
-
if (item["english_name"] && item["english_name"] != "NULL") {
|
479
|
-
name = item["name"] + "(" + item["english_name"] + ")";
|
480
|
-
}
|
481
477
|
let market_capital_hkd = Util.to_float(item["market_capital"], 2);
|
482
478
|
let market_capital_cny = Util.to_float((item["market_capital"] * exchange_rate) / 100, 2);
|
483
479
|
html.push("<td>", Util.snowball_url(item["code"]), "</td>");
|
484
|
-
html.push("<td>", Util.stock_url(item["code"], name), "</td>");
|
480
|
+
html.push("<td>", Util.stock_url(item["code"], item["name"]), "</td>");
|
485
481
|
html.push("<td class='hk_industry'>", item["industry"], "</td>");
|
486
482
|
html.push("<td>", Util.map_url(item["province_city"]), "</td>");
|
487
483
|
html.push("<td>", Util.to_float((item["pe_ttm"] ? item["pe_ttm"] : item["pe"]), 2), "</td>");
|
@@ -2647,7 +2643,7 @@ const Util = {
|
|
2647
2643
|
if (digit > previous_digit) {
|
2648
2644
|
cls = "text-danger";
|
2649
2645
|
ratio_val = Math.round(((digit - previous_digit) / previous_digit) * 10000) / 100;
|
2650
|
-
trend_ratio = "(+" + ratio_val + "%)";
|
2646
|
+
trend_ratio = "(+" + Math.min(ratio_val, 999) + "%)";
|
2651
2647
|
} else if (digit < previous_digit) {
|
2652
2648
|
cls = "text-success";
|
2653
2649
|
ratio_val = Math.round(((previous_digit - digit) / previous_digit) * 10000) / 100;
|
@@ -2770,12 +2766,7 @@ const Util = {
|
|
2770
2766
|
let holder_url = Util.get_url("holder_num") + "?code=" + item["code"];
|
2771
2767
|
let holder_info = "";
|
2772
2768
|
if (item["pre_holder_num"] && item["pre_holder_num"] > 0) {
|
2773
|
-
|
2774
|
-
if (rate > 9) {
|
2775
|
-
holder_info = '<b data-val="900" title="' + item["pre_holder_num"] + '" class="text-danger">' + item["holder_num"] + '(+900%)</b>';
|
2776
|
-
} else {
|
2777
|
-
holder_info = Util.digit_compare_trend(item["holder_num"], item["pre_holder_num"]);
|
2778
|
-
}
|
2769
|
+
holder_info = Util.digit_compare_trend(item["holder_num"], item["pre_holder_num"]);
|
2779
2770
|
} else {
|
2780
2771
|
holder_info = Util.digit_compare_trend(item["holder_num"], 0);
|
2781
2772
|
}
|
@@ -3574,6 +3565,18 @@ const Util = {
|
|
3574
3565
|
}
|
3575
3566
|
chart_instance.clear();
|
3576
3567
|
chart_instance.setOption({
|
3568
|
+
//graphic: [{ // 如何给echarts的图表加上水印
|
3569
|
+
// type: 'text',
|
3570
|
+
//left: 'center',
|
3571
|
+
//top: 'center',
|
3572
|
+
//position: 'fixed',
|
3573
|
+
//z: 100,
|
3574
|
+
//style: {
|
3575
|
+
//fill: '#000',
|
3576
|
+
//text: '这是一个水印',
|
3577
|
+
//font: 'bold 20px Microsoft YaHei'
|
3578
|
+
//}
|
3579
|
+
//}],
|
3577
3580
|
"legend": {},
|
3578
3581
|
"grid": {"x": 40, "y": 60, "x2": 40, "y2": 20},
|
3579
3582
|
"tooltip": {
|