sbd-npm 1.3.73 → 1.3.74
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 +1 -1
- package/package.json +1 -1
- package/summary_daily.js +23 -14
- package/util.js +4 -4
package/constant.js
CHANGED
@@ -140,6 +140,7 @@ const MenuList = [
|
|
140
140
|
'icon': 'retweet',
|
141
141
|
'menu': [
|
142
142
|
{'key': 'portfolio_recommend', 'name': '关注', 'url': '/0x2da99e58e28de94b670c4200657ac7e26dd8dceb'},
|
143
|
+
{'key': 'portfolio_week', 'name': '周观察股', 'url': '/0xa97a3f551b5fddd48384952bbd0eb63b7c4636d0'},
|
143
144
|
{'key': 'portfolio_chen', 'name': '陈营长极品投资', 'url': '/0x3f8cbeeeb38138a626e935017a4cc25f47ce3dbe'},
|
144
145
|
{'key': 'portfolio_vegetable', 'name': 'Veget', 'url': '/0x671dd9dcfca7dbc220c8164c92a74d2c561c6464'},
|
145
146
|
{'key': 'portfolio_follow', 'name': '跟我走吧14', 'url': '/0x4aa68e74a66297c0ece1bb05fad20c32ee1db9e4'},
|
@@ -147,7 +148,6 @@ const MenuList = [
|
|
147
148
|
{'key': 'portfolio_tianjin', 'name': '天津股侠', 'url': '/0xb8428e42237a7485a787e2ab1b5ae0f057258f18'},
|
148
149
|
{'key': 'portfolio_zan', 'name': 'zangyn', 'url': '/0xccb07ddaf4f1219b7b5ae64780e7905206927873'},
|
149
150
|
{'key': 'portfolio_peng', 'name': '吴小朋同学', 'url': '/0x4f1a316c05731e365ec1b7ef454d98206fa973f6'},
|
150
|
-
{'key': 'portfolio_penny', 'name': '梁斌penny', 'url': '/0x34ec770b56fbd946e2a3467664efbe674d04f6ec'},
|
151
151
|
{'key': 'portfolio_wen', 'name': '李健2013', 'url': '/0xe09c047550390159bda66d6315743427dd7ccae4'},
|
152
152
|
{'key': 'portfolio_patience', 'name': '耐力投资', 'url': '/0x55ecbeeabd7ad78dba8c38a9325b2889798622b3'},
|
153
153
|
{'key': 'portfolio_star50', 'name': '科创50', 'url': '/0x378b2601d83c467f81f1d4e323c8bfbc72f6cc0d'},
|
package/package.json
CHANGED
package/summary_daily.js
CHANGED
@@ -46,6 +46,7 @@ $(function () {
|
|
46
46
|
|
47
47
|
load_cache: function () {
|
48
48
|
DailySummary["hsgt_money_flow_chart"] = Util.show_chart_loading(DailySummary["hsgt_money_flow_chart"], "hsgt_money_flow_line");
|
49
|
+
DailySummary["big_deal_pie_chart"] = Util.show_chart_loading(DailySummary["big_deal_pie_chart"], "big_deal_pie");
|
49
50
|
try {
|
50
51
|
Util.set_table_loading("market_overview_zone");
|
51
52
|
let cache = DailySummary.get_cache();
|
@@ -55,9 +56,6 @@ $(function () {
|
|
55
56
|
if (cache.hasOwnProperty("change_percent")) {
|
56
57
|
DailySummary.pack_change_percent(cache["change_percent"]);
|
57
58
|
}
|
58
|
-
if (cache.hasOwnProperty("big_deal")) {
|
59
|
-
DailySummary.pack_big_deal(cache["big_deal"], 0);
|
60
|
-
}
|
61
59
|
if (cache.hasOwnProperty("news")) {
|
62
60
|
DailySummary.pack_news_data(cache["news"]);
|
63
61
|
}
|
@@ -167,22 +165,25 @@ $(function () {
|
|
167
165
|
|
168
166
|
/**
|
169
167
|
* 大单交易
|
170
|
-
* @param
|
168
|
+
* @param big_deal_data
|
171
169
|
* @param big_deal_date
|
172
170
|
*/
|
173
|
-
pack_big_deal: function (
|
171
|
+
pack_big_deal: function (big_deal_data, big_deal_date) {
|
172
|
+
if (DailySummary["big_deal_pie_chart"]) {
|
173
|
+
DailySummary["big_deal_pie_chart"].hideLoading();
|
174
|
+
}
|
174
175
|
let bd_obj = $('#big_deal_pie');
|
175
176
|
if (bd_obj.length) {
|
176
177
|
if (big_deal_date > 0) {
|
177
178
|
$("#big_deal_date").html("(" + Util.seconds_to_format(big_deal_date, "%Y-%m-%d") + ")");
|
178
179
|
}
|
179
|
-
if (DailySummary.big_deal === {} || DailySummary.big_deal["buy1000"] !==
|
180
|
-
|| DailySummary.big_deal["buy600"] !==
|
181
|
-
|| DailySummary.big_deal["sell400"] !==
|
182
|
-
|| DailySummary.big_deal["sell800"] !==
|
180
|
+
if (DailySummary.big_deal === {} || DailySummary.big_deal["buy1000"] !== big_deal_data["buy1000"] || DailySummary.big_deal["buy800"] !== big_deal_data["buy800"]
|
181
|
+
|| DailySummary.big_deal["buy600"] !== big_deal_data["buy600"] || DailySummary.big_deal["buy400"] !== big_deal_data["buy400"]
|
182
|
+
|| DailySummary.big_deal["sell400"] !== big_deal_data["sell400"] || DailySummary.big_deal["sell600"] !== big_deal_data["sell600"]
|
183
|
+
|| DailySummary.big_deal["sell800"] !== big_deal_data["sell800"] || DailySummary.big_deal["sell1000"] !== big_deal_data["sell1000"]) {
|
183
184
|
bd_obj.css("height", "300px");
|
184
|
-
Util.big_deal_pie('big_deal_pie',
|
185
|
-
DailySummary.big_deal =
|
185
|
+
Util.big_deal_pie('big_deal_pie', big_deal_data);
|
186
|
+
DailySummary.big_deal = big_deal_data;
|
186
187
|
}
|
187
188
|
}
|
188
189
|
},
|
@@ -372,7 +373,6 @@ $(function () {
|
|
372
373
|
DailySummary.pack_news_data(j["news"]);
|
373
374
|
DailySummary.set_cache("index", j["index"]);
|
374
375
|
DailySummary.set_cache("change_percent", j["change_percent"]);
|
375
|
-
DailySummary.set_cache("big_deal", j["big_deal"]);
|
376
376
|
DailySummary.set_cache("news", j["news"]);
|
377
377
|
DailySummary.hide_loaded();
|
378
378
|
if (DailySummary.is_trade_time === 1) {
|
@@ -438,6 +438,7 @@ $(function () {
|
|
438
438
|
// 指数历史行情数据
|
439
439
|
render_index_hist_modal: function() {
|
440
440
|
Util.show_loading();
|
441
|
+
Util.set_table_loading("index_hist_modal_body_body");
|
441
442
|
let payload = {
|
442
443
|
action: "index_hist",
|
443
444
|
index_code: "ths_all_a",
|
@@ -452,10 +453,18 @@ $(function () {
|
|
452
453
|
_html.push("<td>", item["open"], "</td>");
|
453
454
|
_html.push("<td>", item["low"], "</td>");
|
454
455
|
_html.push("<td>", item["high"], "</td>");
|
455
|
-
_html.push("<td>", item["close"], "</td>");
|
456
|
+
_html.push("<td data-val='", item["close"], "'><b class='", Util.text_color(item["p_change_rate"]), "'>", item["close"], "</b></td>");
|
456
457
|
_html.push("<td>", Util.parse_ratio(item["p_change_rate"]), "</td>");
|
457
458
|
_html.push("<td data-val='", item["volume"], "'>", Util.to_unit(item["volume"]), "股</td>");
|
458
|
-
|
459
|
+
let amount = Util.to_unit(item["amount"], 3);
|
460
|
+
if (item["pre_amount"]) {
|
461
|
+
if (item["amount"] > item["pre_amount"]) {
|
462
|
+
amount += "<b class='text-danger'>(+" + Util.to_unit(item["amount"] - item["pre_amount"], 3) + ")</b>";
|
463
|
+
} else if (item["amount"] < item["pre_amount"]) {
|
464
|
+
amount += "<b class='text-success'>(" + Util.to_unit(item["amount"] - item["pre_amount"], 3) + ")</b>";
|
465
|
+
}
|
466
|
+
}
|
467
|
+
_html.push("<td data-val='", item["amount"], "'>", amount, "</td>");
|
459
468
|
_html.push("</tr>");
|
460
469
|
});
|
461
470
|
Util.render_table_html("index_hist_modal_body_body", _html);
|
package/util.js
CHANGED
@@ -2186,8 +2186,8 @@ const Util = {
|
|
2186
2186
|
_html.push('<option value="7">最近30日</option>');
|
2187
2187
|
_html.push('<option value="8">最近60日</option>');
|
2188
2188
|
_html.push('<option value="9">最近90日</option>');
|
2189
|
-
_html.push('<option value="10"
|
2190
|
-
_html.push('<option value="11"
|
2189
|
+
_html.push('<option value="10">最近半年</option>');
|
2190
|
+
_html.push('<option value="11">最近一年</option>');
|
2191
2191
|
_html.push('<option value="99">所有时间</option>');
|
2192
2192
|
_html.push('<option value="100">还原</option>');
|
2193
2193
|
_html.push('<option value="101">置空</option>');
|
@@ -2254,12 +2254,12 @@ const Util = {
|
|
2254
2254
|
sd_obj.val(Util.seconds_to_format(pre_90day_second, "%Y-%m-%d"));
|
2255
2255
|
ed_obj.val(Util.seconds_to_format(midnight_second, "%Y-%m-%d"));
|
2256
2256
|
break;
|
2257
|
-
case "10": //
|
2257
|
+
case "10": // 最近半年
|
2258
2258
|
let pre_half_year_second = midnight_second - (365 / 2) * Util.one_day_second;
|
2259
2259
|
sd_obj.val(Util.seconds_to_format(pre_half_year_second, "%Y-%m-%d"));
|
2260
2260
|
ed_obj.val(Util.seconds_to_format(midnight_second, "%Y-%m-%d"));
|
2261
2261
|
break;
|
2262
|
-
case "11": //
|
2262
|
+
case "11": // 最近一年
|
2263
2263
|
let pre_one_year_second = midnight_second - 365 * Util.one_day_second;
|
2264
2264
|
sd_obj.val(Util.seconds_to_format(pre_one_year_second, "%Y-%m-%d"));
|
2265
2265
|
ed_obj.val(Util.seconds_to_format(midnight_second, "%Y-%m-%d"));
|