Authored by 郭成尧

Merge branch 'feature/grade' into release/180420

@@ -2,8 +2,9 @@ import 'activity/grade-detail.page.css'; @@ -2,8 +2,9 @@ import 'activity/grade-detail.page.css';
2 import $ from 'yoho-jquery'; 2 import $ from 'yoho-jquery';
3 import echarts from 'echarts/lib/echarts'; 3 import echarts from 'echarts/lib/echarts';
4 import 'echarts/lib/chart/line'; 4 import 'echarts/lib/chart/line';
5 -import 'echarts/lib/component/dataZoom';  
6 -import 'echarts/lib/component/markLine'; 5 +
  6 +// import 'echarts/lib/component/dataZoom';
  7 +// import 'echarts/lib/component/markLine';
7 import Page from 'yoho-page'; 8 import Page from 'yoho-page';
8 import graphOptions from './graph-options'; 9 import graphOptions from './graph-options';
9 import yoho from 'yoho-app'; 10 import yoho from 'yoho-app';
@@ -42,9 +43,10 @@ class GradeDetailPage extends Page { @@ -42,9 +43,10 @@ class GradeDetailPage extends Page {
42 }); 43 });
43 44
44 this.eGradeGraph = echarts.init(this.view.gradeGraph[0]); 45 this.eGradeGraph = echarts.init(this.view.gradeGraph[0]);
45 - this.eGradeGraph.on('click', this.monthDetailInit.bind(this));  
46 - this.view.navBack.on('click', this.goBack.bind(this));  
47 - this.eGradeGraph.on('dataZoom', this.dataZoomEvent.bind(this)); 46 +
  47 + // this.eGradeGraph.on('click', this.monthDetailInit.bind(this));
  48 + // this.view.navBack.on('click', this.goBack.bind(this));
  49 + // this.eGradeGraph.on('dataZoom', this.dataZoomEvent.bind(this));
48 50
49 this.beforeScroll = document.body.scrollTop; 51 this.beforeScroll = document.body.scrollTop;
50 this.year = 0; 52 this.year = 0;
@@ -17,14 +17,15 @@ export default (graphData) => { @@ -17,14 +17,15 @@ export default (graphData) => {
17 tooltip: { 17 tooltip: {
18 trigger: 'none' 18 trigger: 'none'
19 }, 19 },
20 - dataZoom: [{  
21 - type: 'inside',  
22 - start: graphData.start,  
23 - end: 100,  
24 - zoomLock: true,  
25 - zoomOnMouseWheel: false,  
26 - filterMode: 'none'  
27 - }], 20 +
  21 + // dataZoom: [{
  22 + // type: 'inside',
  23 + // start: graphData.start,
  24 + // end: 100,
  25 + // zoomLock: true,
  26 + // zoomOnMouseWheel: false,
  27 + // filterMode: 'none'
  28 + // }],
28 xAxis: { 29 xAxis: {
29 type: 'category', 30 type: 'category',
30 boundaryGap: false, 31 boundaryGap: false,
@@ -46,6 +47,8 @@ export default (graphData) => { @@ -46,6 +47,8 @@ export default (graphData) => {
46 color: ['#A59075'], 47 color: ['#A59075'],
47 symbol: 'circle', 48 symbol: 'circle',
48 symbolSize: 10, 49 symbolSize: 10,
  50 + clipOverflow: false,
  51 + hoverAnimation: false,
49 type: 'line', 52 type: 'line',
50 label: { 53 label: {
51 normal: { 54 normal: {