From 2cb7fe89fe40591f2f26cabd491650ad9dddb871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B2=E6=A0=91=E9=80=9A?= <1976590620@qq.com> Date: Tue, 21 Jul 2020 16:29:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/points/points-overview.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/modules/points/points-overview.vue b/src/views/modules/points/points-overview.vue index df40e1f..4d9c316 100644 --- a/src/views/modules/points/points-overview.vue +++ b/src/views/modules/points/points-overview.vue @@ -55,7 +55,7 @@ export default { legend: { orient: 'vertical', bottom: 'bottom', - data: ['已兑换积分', '剩余积分'] + data: ['剩余积分'] }, series: [ { @@ -66,11 +66,11 @@ export default { { value: this.resultData.allPoints, name: '已兑换积分' }, { value: this.resultData.residuePoints, name: '剩余积分' } ], - itemStyle: { - emphasis: { - shadowBlur: 10, - shadowOffsetX: 0, - shadowColor: 'rgba(0, 0, 0, 0.5)' + label: { + normal: { + show: true, + position: 'inner', + formatter: "{b} {c} ({d}%)" } } } @@ -93,7 +93,7 @@ export default { }, series: [{ data: [ - { value: (res.data.allPoints - res.data.residuePoints), name: '已兑换积分' }, + { value: (res.data.allPoints - res.data.residuePoints), name: '' }, { value: res.data.residuePoints, name: '剩余积分' } ] }]