sbd-npm 1.4.18 → 1.4.20

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 CHANGED
@@ -68,6 +68,7 @@ const MenuList = [
68
68
  'icon': 'cogs',
69
69
  'menu': [
70
70
  {'key': 'hsgt_flow', 'name': '资金流向', 'url': '/0xe4134f0c0958f766375dd1140ed13e2c74fb0670'},
71
+ {'key': 'hsgt_net_purchase', 'name': '累计净买入', 'url': '/0x8a3d694ef6115a5fafbca58f943437bf4b24afb8'},
71
72
  {'key': 'hsgt_trade_stock', 'name': '成交股统计', 'url': '/0x9720882a088a52d9581c9f7ef76b0ca356b8ff65'},
72
73
  {'key': 'hsgt_hkex_holding', 'name': '港资持股比例', 'url': '/0x497a618840b815faa4be0056e32dd8bc6d4d56d9'},
73
74
  ]
@@ -143,16 +144,13 @@ const MenuList = [
143
144
  'icon': 'retweet',
144
145
  'menu': [
145
146
  {'key': 'portfolio_recommend', 'name': '关注', 'url': '/0x2da99e58e28de94b670c4200657ac7e26dd8dceb'},
146
- {'key': 'portfolio_week', 'name': '周观察股', 'url': '/0xa97a3f551b5fddd48384952bbd0eb63b7c4636d0'},
147
147
  {'key': 'portfolio_chen', 'name': '陈营长极品投资', 'url': '/0x3f8cbeeeb38138a626e935017a4cc25f47ce3dbe'},
148
+ {'key': 'portfolio_zeng', 'name': '老曾阿牛', 'url': '/0x2cf53b473b916e1d8b9998de00bb782171bb2630'},
149
+ {'key': 'portfolio_dao', 'name': '专注成长的股事笔记', 'url': '/0xf9d3664538c43bf7f886674abe7af9710aab82ec'},
148
150
  {'key': 'portfolio_vegetable', 'name': 'Veget', 'url': '/0x671dd9dcfca7dbc220c8164c92a74d2c561c6464'},
149
151
  {'key': 'portfolio_follow', 'name': '跟我走吧14', 'url': '/0x4aa68e74a66297c0ece1bb05fad20c32ee1db9e4'},
150
152
  {'key': 'portfolio_cloud', 'name': '心似白云常自在', 'url': '/0x9ea6081b57418a7f987775631043f7f924e25cff'},
151
- {'key': 'portfolio_tianjin', 'name': '天津股侠', 'url': '/0xb8428e42237a7485a787e2ab1b5ae0f057258f18'},
152
- {'key': 'portfolio_zan', 'name': 'zangyn', 'url': '/0xccb07ddaf4f1219b7b5ae64780e7905206927873'},
153
153
  {'key': 'portfolio_peng', 'name': '吴小朋同学', 'url': '/0x4f1a316c05731e365ec1b7ef454d98206fa973f6'},
154
- {'key': 'portfolio_wen', 'name': '李健2013', 'url': '/0xe09c047550390159bda66d6315743427dd7ccae4'},
155
- {'key': 'portfolio_patience', 'name': '耐力投资', 'url': '/0x55ecbeeabd7ad78dba8c38a9325b2889798622b3'},
156
154
  {'key': 'portfolio_star50', 'name': '科创50', 'url': '/0x378b2601d83c467f81f1d4e323c8bfbc72f6cc0d'},
157
155
  {'key': 'portfolio_bellwether', 'name': '龙头股', 'url': '/0x7cdfb14131c3693c439a90333790eeb5fce70a12'},
158
156
  {'key': 'portfolio_market_situation', 'name': '市值风云', 'url': '/0x3720c6de05378152ef0e758b56199bfcbc15274b'},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.4.18",
3
+ "version": "1.4.20",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/summary_daily.js CHANGED
@@ -197,19 +197,12 @@ $(function () {
197
197
  pack_hsgt_money_flow: function (hsgt_money_flow_data) {
198
198
  if ($("#hsgt_money_flow_line").length) {
199
199
  DailySummary["hsgt_money_flow_chart"].hideLoading();
200
- let time_arr = [];
201
- let hsmf_data = [];
202
- let hmf_arr = [];
203
- let smf_arr = [];
204
- let total_mf_val = 0;
205
- let tmf_val = 0;
206
- let hmf_val = 0;
207
- let smf_val = 0;
200
+ let time_arr = [], hsmf_data = [], hmf_arr = [], smf_arr = [], tmf_val = 0, hmf_val = 0, smf_val = 0;
208
201
  hsgt_money_flow_data.forEach(function (d) {
209
202
  time_arr.push(d[0]);
210
203
  hmf_arr.push(d[1]);
211
204
  smf_arr.push(d[2]);
212
- total_mf_val = Util.to_float(parseFloat(d[1]) + parseFloat(d[2]), 2);
205
+ let total_mf_val = Util.to_float(parseFloat(d[1]) + parseFloat(d[2]), 2);
213
206
  hsmf_data.push(total_mf_val);
214
207
  if (total_mf_val) {
215
208
  tmf_val = total_mf_val;
@@ -223,9 +216,7 @@ $(function () {
223
216
  });
224
217
  if (hsmf_data.toString() !== DailySummary.hsmf_data.toString()) {
225
218
  DailySummary.hsmf_data = hsmf_data;
226
- DailySummary.render_hsgt_val($("#total_mf_val"), tmf_val);
227
- DailySummary.render_hsgt_val($("#hmf_val"), hmf_val);
228
- DailySummary.render_hsgt_val($("#smf_val"), smf_val);
219
+ $("#hsgt_money_flow_summary").html('总:<b class="' + Util.text_color(tmf_val) + '">' + tmf_val + '</b>亿, 沪:<b class="' + Util.text_color(hmf_val) + '">' + hmf_val + '</b>亿, 深:<b class="' + Util.text_color(smf_val) + '">' + smf_val + '</b>亿');
229
220
  DailySummary["hsgt_money_flow_chart"].setOption({
230
221
  tooltip: {
231
222
  trigger: "axis",
@@ -291,11 +282,6 @@ $(function () {
291
282
  }
292
283
  },
293
284
 
294
- render_hsgt_val: function (obj, val) {
295
- obj.html(val);
296
- obj.addClass(Util.text_color(val));
297
- },
298
-
299
285
  /**
300
286
  * 市场成交概况
301
287
  */