|
@@ -7,6 +7,7 @@ import 'echarts/lib/component/markLine'; |
|
@@ -7,6 +7,7 @@ import 'echarts/lib/component/markLine'; |
7
|
import tip from 'plugin/tip';
|
7
|
import tip from 'plugin/tip';
|
8
|
import Page from 'yoho-page';
|
8
|
import Page from 'yoho-page';
|
9
|
import graphOptions from './graph-options';
|
9
|
import graphOptions from './graph-options';
|
|
|
10
|
+import yoho from 'yoho-app';
|
10
|
|
11
|
|
11
|
class GradeDetailPage extends Page {
|
12
|
class GradeDetailPage extends Page {
|
12
|
constructor() {
|
13
|
constructor() {
|
|
@@ -16,11 +17,13 @@ class GradeDetailPage extends Page { |
|
@@ -16,11 +17,13 @@ class GradeDetailPage extends Page { |
16
|
levelStr: $('#levelStr'),
|
17
|
levelStr: $('#levelStr'),
|
17
|
gradeGraph: $('#gradeGraph'),
|
18
|
gradeGraph: $('#gradeGraph'),
|
18
|
gradeBillList: $('#gradeBillList'),
|
19
|
gradeBillList: $('#gradeBillList'),
|
19
|
- loadingMask: $('#loadingMask')
|
20
|
+ loadingMask: $('#loadingMask'),
|
|
|
21
|
+ navBack: $('.nav-back')
|
20
|
};
|
22
|
};
|
21
|
|
23
|
|
22
|
this.eGradeGraph = echarts.init(this.view.gradeGraph[0]);
|
24
|
this.eGradeGraph = echarts.init(this.view.gradeGraph[0]);
|
23
|
this.eGradeGraph.on('click', this.monthDetailInit.bind(this));
|
25
|
this.eGradeGraph.on('click', this.monthDetailInit.bind(this));
|
|
|
26
|
+ this.view.navBack.on('click', this.back.bind(this));
|
24
|
|
27
|
|
25
|
this.beforeScroll = document.body.scrollTop;
|
28
|
this.beforeScroll = document.body.scrollTop;
|
26
|
this.year = 0;
|
29
|
this.year = 0;
|
|
@@ -132,6 +135,13 @@ class GradeDetailPage extends Page { |
|
@@ -132,6 +135,13 @@ class GradeDetailPage extends Page { |
132
|
this.monthDetailRender();
|
135
|
this.monthDetailRender();
|
133
|
}
|
136
|
}
|
134
|
}
|
137
|
}
|
|
|
138
|
+
|
|
|
139
|
+ // 返回上一页
|
|
|
140
|
+ goBack() {
|
|
|
141
|
+ if (yoho.isApp) {
|
|
|
142
|
+ yoho.invokeMethod('go.back');
|
|
|
143
|
+ }
|
|
|
144
|
+ }
|
135
|
}
|
145
|
}
|
136
|
|
146
|
|
137
|
export default GradeDetailPage; |
147
|
export default GradeDetailPage; |