Authored by 郭成尧

Merge branch 'feature/growthdetail' into release/6.5.3

@@ -142,6 +142,49 @@ class GradeDetailPage extends Page { @@ -142,6 +142,49 @@ class GradeDetailPage extends Page {
142 let whichLine = Number(event.event.target.anid.split('_')[1]); 142 let whichLine = Number(event.event.target.anid.split('_')[1]);
143 143
144 tapData = this.graphData.seriesData[whichLine]; 144 tapData = this.graphData.seriesData[whichLine];
  145 + this.graphData.seriesData.map((serie, index) => {
  146 + if (index === whichLine) {
  147 + serie.symbolSize = 16;
  148 + } else {
  149 + serie.symbolSize = 8;
  150 + }
  151 + return serie;
  152 + });
  153 + this.graphData.xAxisData.map((xAxis, index) => {
  154 + if (index === whichLine) {
  155 + xAxis.value = xAxis.value.replace(/([\d+])月/, '$1 月');
  156 + xAxis.textStyle = {
  157 + color: '#000',
  158 + fontSize: 18,
  159 + fontWeight: 400,
  160 + padding: [3, 2, 2, 5],
  161 + backgroundColor: {
  162 + image: '//cdn.yoho.cn/grade/yuefen@2x.png'
  163 + }
  164 + };
  165 + } else {
  166 + xAxis.value = xAxis.value.replace(' 月', '月');
  167 + xAxis.textStyle = {
  168 + color: '#fff',
  169 + fontSize: 14,
  170 + fontWeight: 400,
  171 + padding: [4, 0, 0, 0],
  172 + backgroundColor: {
  173 + image: ''
  174 + }
  175 + };
  176 + }
  177 + return xAxis;
  178 + });
  179 +
  180 + this.eGradeGraph.setOption({
  181 + series: {
  182 + data: this.graphData.seriesData
  183 + },
  184 + xAxis: {
  185 + data: this.graphData.xAxisData
  186 + }
  187 + });
145 } else { 188 } else {
146 tapData = event.data; 189 tapData = event.data;
147 } 190 }