Sfoglia il codice sorgente

不使用es6

wzl_h
wangzhonglu 2 anni fa
parent
commit
bdc9578b93
2 ha cambiato i file con 16 aggiunte e 16 eliminazioni
  1. 1
    1
      js/index.js
  2. 15
    15
      js/section_1.js

+ 1
- 1
js/index.js Vedi File

@@ -2,7 +2,7 @@ $(function () {
2 2
   var loadHtmlArr = [
3 3
     // "cover",
4 4
     // "preface",
5
-    // "section_1",
5
+    "section_1",
6 6
     "section_2",
7 7
     // "section_3",
8 8
     // "section_4",

+ 15
- 15
js/section_1.js Vedi File

@@ -17,7 +17,7 @@ function initAverageScoreEcharts() {
17 17
       barMinHeight: $.UnitUtil.mm2px(2),
18 18
       barGap: 0,
19 19
       data: [60, 70],
20
-      itemStyle
20
+      itemStyle: itemStyle
21 21
     },
22 22
     {
23 23
       name: "最高分",
@@ -27,7 +27,7 @@ function initAverageScoreEcharts() {
27 27
       barMinHeight: $.UnitUtil.mm2px(2),
28 28
       barGap: 0,
29 29
       data: [50, 60],
30
-      itemStyle
30
+      itemStyle: itemStyle
31 31
     },
32 32
     {
33 33
       name: "最低分",
@@ -37,7 +37,7 @@ function initAverageScoreEcharts() {
37 37
       barMinHeight: $.UnitUtil.mm2px(2),
38 38
       barGap: 0,
39 39
       data: [30, 40],
40
-      itemStyle
40
+      itemStyle: itemStyle
41 41
     },
42 42
     {
43 43
       name: "平均分",
@@ -47,10 +47,10 @@ function initAverageScoreEcharts() {
47 47
       barMinHeight: $.UnitUtil.mm2px(2),
48 48
       barGap: 0,
49 49
       data: [40, 50],
50
-      itemStyle
50
+      itemStyle: itemStyle
51 51
     }
52 52
   ];
53
-  let option = {
53
+  var option = {
54 54
     animation: false,
55 55
     color: ["#5C99FF", "#FF5F56", "#5EC5C8", "#f1982b"],
56 56
     title: {
@@ -142,7 +142,7 @@ function initExcellenceRateEcharts() {
142 142
       barMinHeight: $.UnitUtil.mm2px(2),
143 143
       barGap: 0,
144 144
       data: [60, 70],
145
-      itemStyle
145
+      itemStyle: itemStyle
146 146
     },
147 147
     {
148 148
       name: "良好率",
@@ -152,7 +152,7 @@ function initExcellenceRateEcharts() {
152 152
       barMinHeight: $.UnitUtil.mm2px(2),
153 153
       barGap: 0,
154 154
       data: [50, 60],
155
-      itemStyle
155
+      itemStyle: itemStyle
156 156
     },
157 157
     {
158 158
       name: "及格率",
@@ -162,7 +162,7 @@ function initExcellenceRateEcharts() {
162 162
       barMinHeight: $.UnitUtil.mm2px(2),
163 163
       barGap: 0,
164 164
       data: [30, 40],
165
-      itemStyle
165
+      itemStyle: itemStyle
166 166
     },
167 167
     {
168 168
       name: "低分率",
@@ -172,10 +172,10 @@ function initExcellenceRateEcharts() {
172 172
       barMinHeight: $.UnitUtil.mm2px(2),
173 173
       barGap: 0,
174 174
       data: [40, 50],
175
-      itemStyle
175
+      itemStyle: itemStyle
176 176
     }
177 177
   ];
178
-  let option = {
178
+  var option = {
179 179
     animation: false,
180 180
     color: ["#5C99FF", "#FF5F56", "#5EC5C8", "#f1982b"],
181 181
     title: {
@@ -267,7 +267,7 @@ function initExamnumEcharts() {
267 267
       barMinHeight: $.UnitUtil.mm2px(2),
268 268
       barGap: 0,
269 269
       data: [60, 70],
270
-      itemStyle
270
+      itemStyle: itemStyle
271 271
     },
272 272
     {
273 273
       name: "缺考人数",
@@ -277,10 +277,10 @@ function initExamnumEcharts() {
277 277
       barMinHeight: $.UnitUtil.mm2px(2),
278 278
       barGap: 0,
279 279
       data: [50, 60],
280
-      itemStyle
280
+      itemStyle: itemStyle
281 281
     }
282 282
   ];
283
-  let option = {
283
+  var option = {
284 284
     animation: false,
285 285
     color: ["#5C99FF", "#FF5F56", "#5EC5C8", "#f1982b"],
286 286
     title: {
@@ -372,9 +372,9 @@ function initbzcEcharts() {
372 372
     barMinHeight: $.UnitUtil.mm2px(2),
373 373
     barGap: 0,
374 374
     data: [60, 70],
375
-    itemStyle
375
+    itemStyle: itemStyle
376 376
   }];
377
-  let option = {
377
+  var option = {
378 378
     animation: false,
379 379
     color: ["#5C99FF", "#FF5F56", "#5EC5C8", "#f1982b"],
380 380
     title: {

Loading…
Annulla
Salva