...
|
...
|
@@ -7,6 +7,7 @@ import 'echarts/lib/component/markLine'; |
|
|
import tip from 'plugin/tip';
|
|
|
import Page from 'yoho-page';
|
|
|
import graphOptions from './graph-options';
|
|
|
import yoho from 'yoho-app';
|
|
|
|
|
|
class GradeDetailPage extends Page {
|
|
|
constructor() {
|
...
|
...
|
@@ -16,11 +17,13 @@ class GradeDetailPage extends Page { |
|
|
levelStr: $('#levelStr'),
|
|
|
gradeGraph: $('#gradeGraph'),
|
|
|
gradeBillList: $('#gradeBillList'),
|
|
|
loadingMask: $('#loadingMask')
|
|
|
loadingMask: $('#loadingMask'),
|
|
|
navBack: $('.nav-back')
|
|
|
};
|
|
|
|
|
|
this.eGradeGraph = echarts.init(this.view.gradeGraph[0]);
|
|
|
this.eGradeGraph.on('click', this.monthDetailInit.bind(this));
|
|
|
this.view.navBack.on('click', this.back.bind(this));
|
|
|
|
|
|
this.beforeScroll = document.body.scrollTop;
|
|
|
this.year = 0;
|
...
|
...
|
@@ -132,6 +135,13 @@ class GradeDetailPage extends Page { |
|
|
this.monthDetailRender();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 返回上一页
|
|
|
goBack() {
|
|
|
if (yoho.isApp) {
|
|
|
yoho.invokeMethod('go.back');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
export default GradeDetailPage; |
...
|
...
|
|