sbd-npm 1.2.61 → 1.2.63

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 +3 -7
  2. package/package.json +1 -1
  3. package/util.js +24 -25
package/constant.js CHANGED
@@ -135,23 +135,19 @@ const MenuList = [
135
135
  'menu': [
136
136
  {'key': 'concept_recommend', 'name': '关注', 'url': '/27ca098faad33a8e4d109efe0112fd16'},
137
137
  {'key': 'concept_macd', 'name': 'MACD', 'url': '/3400774e910fb611625b31d049d571fb'},
138
- {'key': 'concept_bellwether', 'name': '龙头股', 'url': '/2995afdea420471e00c536182e711bef'},
139
- {'key': 'concept_market_situation', 'name': '市值风云', 'url': '/02fdaf4d66cdecb092bcd65f569aa493'},
140
138
  {'key': 'concept_cloud', 'name': '心似白云常自在', 'url': '/1d883188398a3a8c743748c5eb81fe7b'},
141
139
  {'key': 'concept_zan', 'name': 'zangyn', 'url': '/860a3a9647efad436894b4aa3843da42'},
142
140
  {'key': 'concept_wen', 'name': '崇文不尚武', 'url': '/b6fd64a2c54250b8ac039123e74e9b7e'},
143
141
  {'key': 'concept_dao', 'name': '成长股事(大道)', 'url': '/7b7ea877f6793752e2b981d82da81e1b'},
144
- {'key': 'concept_niu', 'name': '老曾阿牛', 'url': '/0f4a2714971424024c1ddd8651c26569'},
145
- {'key': 'concept_qian', 'name': '唐史主任司马迁', 'url': '/8b3e40fe74b4870244bc51125da7675a'},
146
- {'key': 'concept_dan', 'name': '但斌', 'url': '/3ac0a5857b1d9a111497c0e817e647a1'},
142
+ {'key': 'concept_vegetable', 'name': 'Veget', 'url': '/b1769a58f0f3d4a92bad61c97a2232f0'},
143
+ {'key': 'concept_bellwether', 'name': '龙头股', 'url': '/2995afdea420471e00c536182e711bef'},
144
+ {'key': 'concept_market_situation', 'name': '市值风云', 'url': '/02fdaf4d66cdecb092bcd65f569aa493'},
147
145
  {'key': 'concept_down_top', 'name': '15-21年的超跌股', 'url': '/ae3bbf97a358392cfaa0ceb35cb3fb57'},
148
146
  {'key': 'concept_auto_intelligent', 'name': '智能电动车', 'url': '/cd7be404357809849d267f24fceebcd2'},
149
147
  {'key': 'concept_hk', 'name': '港股', 'url': '/ef12a56d360da9b20c79a763681de1e4'},
150
148
  {'key': 'concept_us', 'name': '美股', 'url': '/f986a81550e4d8a902f8bc0ef07757a6'},
151
149
  {'key': 'concept_chip', 'name': '芯片', 'url': '/491de7096b1cb9355766e5ffdd7018b6'},
152
150
  {'key': 'concept_military', 'name': '军工', 'url': '/1eb37c30e6be05148ba47c8ca6498a48'},
153
- {'key': 'concept_ah', 'name': 'AH股', 'url': '/16f12053b288726b5d4720de879c3b5c'},
154
- {'key': 'concept_st', 'name': 'ST股', 'url': '/e0eb8a51da63f7ceb16a769d7d20bada'},
155
151
  {'key': 'concept_ten', 'name': '十倍股', 'url': '/c08abb44c7d6ce6fa09a8a66421acb20'},
156
152
  ]
157
153
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.2.61",
3
+ "version": "1.2.63",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/util.js CHANGED
@@ -738,6 +738,28 @@ const Util = {
738
738
  _html.push('<thead><tr>');
739
739
  }
740
740
  options["head_cols"].forEach(function (col) {
741
+ let td_attr = "", td_class = [];
742
+ if (col["id"]) {
743
+ td_attr += ' id="' + col["id"] + '"';
744
+ }
745
+ if (col["title"]) {
746
+ td_attr += ' title="' + col["title"] + '"';
747
+ }
748
+ if (col["style"]) {
749
+ td_attr += ' style="' + col["style"] + '"';
750
+ }
751
+ if (col["class"]) {
752
+ td_class.push(col["class"]);
753
+ }
754
+ if (col["colspan"]) {
755
+ if (col["colspan"] > 1) {
756
+ head_length += (col["colspan"] - 1);
757
+ }
758
+ td_attr += ' colspan="' + col["colspan"] + '"';
759
+ }
760
+ if (td_class.length > 0) {
761
+ td_attr += ' class="' + td_class.join(" ") + '"';
762
+ }
741
763
  if (col["select_id"]) {
742
764
  let option_html = '<option value="">' + col["name"] + '</option>';
743
765
  if (col["select_options"]) {
@@ -747,28 +769,8 @@ const Util = {
747
769
  });
748
770
  option_html = option_html.join("");
749
771
  }
750
- _html.push('<td><label for="' + col["select_id"] + '"></label><select id="' + col["select_id"] + '">' + option_html + '</select></td>');
772
+ _html.push('<td', td_attr, '><label for="' + col["select_id"] + '"></label><select id="' + col["select_id"] + '">' + option_html + '</select></td>');
751
773
  } else {
752
- let td_attr = "";
753
- let td_class = [];
754
- if (col["id"]) {
755
- td_attr += ' id="' + col["id"] + '"';
756
- }
757
- if (col["title"]) {
758
- td_attr += ' title="' + col["title"] + '"';
759
- }
760
- if (col["style"]) {
761
- td_attr += ' style="' + col["style"] + '"';
762
- }
763
- if (col["class"]) {
764
- td_class.push(col["class"]);
765
- }
766
- if (col["colspan"]) {
767
- if (col["colspan"] > 1) {
768
- head_length += (col["colspan"] - 1);
769
- }
770
- td_attr += ' colspan="' + col["colspan"] + '"';
771
- }
772
774
  if (col["table_sort"]) {
773
775
  is_table_sort = 1;
774
776
  td_class.push("table_sort");
@@ -780,9 +782,6 @@ const Util = {
780
782
  col["name"] = Util.pack_html_link(col["link"], col["name"]);
781
783
  }
782
784
  }
783
- if (td_class.length > 0) {
784
- td_attr += ' class="' + td_class.join(" ") + '"';
785
- }
786
785
  let tooltip = "";
787
786
  if (col["tooltip"]) {
788
787
  is_tooltip = 1;
@@ -2166,7 +2165,7 @@ const Util = {
2166
2165
  if (code_list.length > 0) {
2167
2166
  Util.show_loading();
2168
2167
  let tips_obj = $("#" + element_id + "_tips");
2169
- if (tips_obj.length && tips_obj.html().length === 0) {
2168
+ if (tips_obj.length) {
2170
2169
  tips_obj.html('共 <span class="label label-info">' + code_list.length + '</span> 家');
2171
2170
  }
2172
2171
  //获取股票详情数据