sbd-npm 1.1.27 → 1.1.28
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/package.json +1 -1
- package/summary_daily.js +10 -27
package/package.json
CHANGED
package/summary_daily.js
CHANGED
@@ -6,6 +6,7 @@ $(document).ready(function () {
|
|
6
6
|
is_trade_time: "{{ is_trade_time }}",
|
7
7
|
big_deal: {},
|
8
8
|
hsmf_data: {},
|
9
|
+
hsgt_money_flow_chart: false,
|
9
10
|
mo_total_chart: false,
|
10
11
|
mo_sh_chart: false,
|
11
12
|
mo_szm_chart: false,
|
@@ -30,6 +31,8 @@ $(document).ready(function () {
|
|
30
31
|
},
|
31
32
|
|
32
33
|
load_cache: function () {
|
34
|
+
DailySummary["hsgt_money_flow_chart"] = Util.init_echarts_handle("hsgt_money_flow_line");
|
35
|
+
DailySummary["hsgt_money_flow_chart"].showLoading();
|
33
36
|
try {
|
34
37
|
let cache = DailySummary.get_cache();
|
35
38
|
if (cache.hasOwnProperty("market_overview")) {
|
@@ -44,9 +47,6 @@ $(document).ready(function () {
|
|
44
47
|
if (cache.hasOwnProperty("big_deal")) {
|
45
48
|
DailySummary.pack_big_deal(cache["big_deal"], 0);
|
46
49
|
}
|
47
|
-
if (cache.hasOwnProperty("hmf")) {
|
48
|
-
DailySummary.pack_hsgt_money_flow(cache["hmf"]);
|
49
|
-
}
|
50
50
|
if (cache.hasOwnProperty("news")) {
|
51
51
|
DailySummary.pack_news_data(cache["news"]);
|
52
52
|
}
|
@@ -167,6 +167,7 @@ $(document).ready(function () {
|
|
167
167
|
*/
|
168
168
|
pack_hsgt_money_flow: function (hsgt_money_flow_data) {
|
169
169
|
if ($("#hsgt_money_flow_line").length) {
|
170
|
+
DailySummary["hsgt_money_flow_chart"].hideLoading();
|
170
171
|
let time_arr = [];
|
171
172
|
let hsmf_data = [];
|
172
173
|
let hmf_arr = [];
|
@@ -196,9 +197,9 @@ $(document).ready(function () {
|
|
196
197
|
DailySummary.render_hsgt_val($("#total_mf_val"), tmf_val);
|
197
198
|
DailySummary.render_hsgt_val($("#hmf_val"), hmf_val);
|
198
199
|
DailySummary.render_hsgt_val($("#smf_val"), smf_val);
|
199
|
-
|
200
|
-
color: ["#26B99A", "#34495E", "#BDC3C7", "#3498DB", "#9B59B6", "#8abb6f", "#759c6a", "#bfd3b7"],
|
200
|
+
DailySummary["hsgt_money_flow_chart"].setOption({
|
201
201
|
tooltip: {
|
202
|
+
trigger: "axis",
|
202
203
|
backgroundColor: "rgba(0,0,0,0.5)",
|
203
204
|
axisPointer: {
|
204
205
|
type: "cross",
|
@@ -207,33 +208,16 @@ $(document).ready(function () {
|
|
207
208
|
shadowStyle: {color: "rgba(200,200,200,0.3)"}
|
208
209
|
}
|
209
210
|
},
|
210
|
-
categoryAxis: {
|
211
|
-
axisLine: {lineStyle: {color: "#408829"}},
|
212
|
-
splitLine: {lineStyle: {color: ["#eee"]}}
|
213
|
-
},
|
214
|
-
valueAxis: {
|
215
|
-
axisLine: {lineStyle: {color: "#408829"}},
|
216
|
-
splitArea: {
|
217
|
-
show: !0,
|
218
|
-
areaStyle: {color: ["rgba(250,250,250,0.1)", "rgba(200,200,200,0.1)"]}
|
219
|
-
},
|
220
|
-
splitLine: {lineStyle: {color: ["#eee"]}}
|
221
|
-
},
|
222
|
-
textStyle: {fontFamily: "Arial, Verdana, sans-serif"}
|
223
|
-
};
|
224
|
-
let hmf = echarts.init(document.getElementById("hsgt_money_flow_line"), hmf_option);
|
225
|
-
let series_item_style = {normal: {areaStyle: {type: "default"}}};
|
226
|
-
hmf.setOption({
|
227
|
-
tooltip: {trigger: "axis"},
|
228
211
|
legend: {x: 20, y: 20, data: ["总流向", "沪股通", "深股通"]},
|
229
212
|
"grid": {"x": 30, "y": 50, "x2": 5, "y2": 20},
|
230
213
|
calculable: !0,
|
231
214
|
xAxis: [{type: "category", boundaryGap: !1, data: time_arr}],
|
232
215
|
yAxis: [{type: "value"}],
|
233
216
|
series: [
|
234
|
-
{name: "总流向", type: "line", smooth: !0, itemStyle:
|
235
|
-
{name: "沪股通", type: "line", smooth: !0, itemStyle:
|
236
|
-
{name: "深股通", type: "line", smooth: !0, itemStyle:
|
217
|
+
{name: "总流向", type: "line", smooth: !0, itemStyle: {normal: {color: "#26B99A", areaStyle: {type: "default"}}}, data: hsmf_data},
|
218
|
+
{name: "沪股通", type: "line", smooth: !0, itemStyle: {normal: {color: "#34495E", areaStyle: {type: "default"}}}, data: hmf_arr},
|
219
|
+
{name: "深股通", type: "line", smooth: !0, itemStyle: {normal: {color: "#BDC3C7", areaStyle: {type: "default"}}}, data: smf_arr}
|
220
|
+
]
|
237
221
|
})
|
238
222
|
}
|
239
223
|
}
|
@@ -345,7 +329,6 @@ $(document).ready(function () {
|
|
345
329
|
DailySummary.set_cache("index", j["index"]);
|
346
330
|
DailySummary.set_cache("change_percent", j["change_percent"]);
|
347
331
|
DailySummary.set_cache("big_deal", j["big_deal"]);
|
348
|
-
DailySummary.set_cache("hmf", j["hmf"]);
|
349
332
|
DailySummary.set_cache("news", j["news"]);
|
350
333
|
DailySummary.hide_loaded();
|
351
334
|
if (DailySummary.is_trade_time === 1) {
|