Browse Source

不使用es6

wzl_h
wangzhonglu 2 years ago
parent
commit
bdc9578b93
2 changed files with 16 additions and 16 deletions
  1. 1
    1
      js/index.js
  2. 15
    15
      js/section_1.js

+ 1
- 1
js/index.js View File

2
   var loadHtmlArr = [
2
   var loadHtmlArr = [
3
     // "cover",
3
     // "cover",
4
     // "preface",
4
     // "preface",
5
-    // "section_1",
5
+    "section_1",
6
     "section_2",
6
     "section_2",
7
     // "section_3",
7
     // "section_3",
8
     // "section_4",
8
     // "section_4",

+ 15
- 15
js/section_1.js View File

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

Loading…
Cancel
Save