sbd-npm 1.3.14 → 1.3.16
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 +2 -1
- package/package.json +1 -1
- package/summary_daily.js +1 -1
- package/util.js +5 -3
package/constant.js
CHANGED
@@ -138,8 +138,9 @@ const MenuList = [
|
|
138
138
|
{'key': 'portfolio_recommend', 'name': '关注', 'url': '/0x2da99e58e28de94b670c4200657ac7e26dd8dceb'},
|
139
139
|
{'key': 'portfolio_cloud', 'name': '心似白云常自在', 'url': '/0x9ea6081b57418a7f987775631043f7f924e25cff'},
|
140
140
|
{'key': 'portfolio_vegetable', 'name': 'Veget', 'url': '/0x671dd9dcfca7dbc220c8164c92a74d2c561c6464'},
|
141
|
-
{'key': 'portfolio_zan', 'name': 'zangyn', 'url': '/0xccb07ddaf4f1219b7b5ae64780e7905206927873'},
|
142
141
|
{'key': 'portfolio_follow', 'name': '跟我走吧14', 'url': '/0x4aa68e74a66297c0ece1bb05fad20c32ee1db9e4'},
|
142
|
+
{'key': 'portfolio_tianjin', 'name': '天津股侠', 'url': '/0xb8428e42237a7485a787e2ab1b5ae0f057258f18'},
|
143
|
+
{'key': 'portfolio_zan', 'name': 'zangyn', 'url': '/0xccb07ddaf4f1219b7b5ae64780e7905206927873'},
|
143
144
|
{'key': 'portfolio_peng', 'name': '吴小朋同学', 'url': '/0x4f1a316c05731e365ec1b7ef454d98206fa973f6'},
|
144
145
|
{'key': 'portfolio_xiong', 'name': '王朝雄', 'url': '/0x343ce49bbb77316cea85c3daa44370d4c808b59d'},
|
145
146
|
{'key': 'portfolio_penny', 'name': '梁斌penny', 'url': '/0x34ec770b56fbd946e2a3467664efbe674d04f6ec'},
|
package/package.json
CHANGED
package/summary_daily.js
CHANGED
@@ -538,7 +538,7 @@ $(document).ready(function () {
|
|
538
538
|
Util.post(location.pathname, payload, function (j) {
|
539
539
|
Util.render_type_option($("#p_change_industry"), j["data"], "industry", Modal.render_stock_rate_html);
|
540
540
|
Util.render_type_option($("#p_change_area"), j["data"], "area", Modal.render_stock_rate_html);
|
541
|
-
Modal["p_change_data"] = j["data"];
|
541
|
+
Modal["p_change_data"] = j["data"] ? j["data"] : [];
|
542
542
|
Modal.render_stock_rate_html();
|
543
543
|
$("#p_change_type").change(function () {
|
544
544
|
if (!Util.is_load) {
|
package/util.js
CHANGED
@@ -547,6 +547,7 @@ const Util = {
|
|
547
547
|
html.push("<td class='hk_industry'>", item["industry"], "</td>");
|
548
548
|
html.push("<td>", Util.map_url(item["province_city"]), "</td>");
|
549
549
|
html.push("<td>", Util.to_float((item["pe_ttm"] ? item["pe_ttm"] : item["pe"]), 2), "</td>");
|
550
|
+
html.push("<td>", Util.to_float(item["pb"], 2), "</td>");
|
550
551
|
html.push("<td>", Util.to_float(item["total_shares"], 2), "亿</td>");
|
551
552
|
html.push("<td>", Util.to_float(item["market_capital"], 3), "亿</td>");
|
552
553
|
html.push("<td class='price_", item["code"], "'>", item["price"], "</td>");
|
@@ -1085,7 +1086,7 @@ const Util = {
|
|
1085
1086
|
Util.init_table_skeleton(table_options);
|
1086
1087
|
Util["stock_category_table_id"] = table_id;
|
1087
1088
|
Util.post(location.pathname, {active_div: stock_category}, function (j) {
|
1088
|
-
Util["stock_category_data"] = j["data"];
|
1089
|
+
Util["stock_category_data"] = j["data"] ? j["data"] : [];
|
1089
1090
|
Util["stock_category_index"] = j["index_list"] ? j["index_list"] : [];
|
1090
1091
|
Util.render_type_option($("#stock_category_industry"), j["data"], "industry", Util.render_stock_category_html);
|
1091
1092
|
Util.render_type_option($("#stock_category_area"), j["data"], "area", Util.render_stock_category_html);
|
@@ -2370,10 +2371,11 @@ const Util = {
|
|
2370
2371
|
},
|
2371
2372
|
|
2372
2373
|
/**
|
2373
|
-
*
|
2374
|
+
* 删除括号(中英文括号)内的字符
|
2374
2375
|
*/
|
2375
2376
|
strip_bracket_string: function (str) {
|
2376
|
-
return str.replace(/\([^\)]*\)/g, "");
|
2377
|
+
//return str.replace(/\([^\)]*\)/g, "");
|
2378
|
+
return str.replace(/[\((][^)\)]*[\))]/g, "")
|
2377
2379
|
},
|
2378
2380
|
|
2379
2381
|
/**
|