Commit 22c4cd81 by 匡雅琴

提交

1 parent 4417c16b
<template> <template>
<div class="rate-box"> <div class="rate-box">
<BoxTitle :title="'各活动类型占比'" :fontSize="16"></BoxTitle> <BoxTitle :title="'各活动类型占比'" :fontSize="16"></BoxTitle>
<pie-chart :id="chart.id" :keys="chart.keys" :list="activityListData" :height="chart.height" :colors="chart.colors"></pie-chart> <pie-chart :id="chart.id" :keys="chart.keys" :list="activityListData" :formatter="'total'" :formatterName="'累计营销活动'" :formtUnit="'场'" :height="chart.height" :colors="chart.colors"></pie-chart>
<Legend class="legend" :list="activityListData" :legentList="legentList" :colors="chart.colors"></Legend> <Legend class="legend" :list="activityListData" :legentList="legentList" :colors="chart.colors"></Legend>
</div> </div>
</template> </template>
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
id: 'shadowPie', id: 'shadowPie',
keys: ['isused', 'num'], keys: ['isused', 'num'],
height: '17.7vh', height: '17.7vh',
colors: ['#34AFFF', '#16E193'] colors: ['#6578FF', '#16E193', '#FFE73C', '#EB6001']
}, },
activityListData, activityListData,
legentList: [ legentList: [
...@@ -32,7 +32,8 @@ export default { ...@@ -32,7 +32,8 @@ export default {
}, },
{ {
name: 'num', name: 'num',
width: '1.88vw' width: '1.88vw',
unitIcon: '场'
} }
] ]
} }
......
...@@ -137,23 +137,23 @@ const nearThreadDataList = [ ...@@ -137,23 +137,23 @@ const nearThreadDataList = [
const activityListData = [ const activityListData = [
{ {
isused: "精品升级", isused: "精品升级",
num: 36, num: 360,
rate: 360 rate: 36
}, },
{ {
isused: "权益升级", isused: "权益升级",
num: 28, num: 280,
rate: 280 rate: 28
}, },
{ {
isused: "售后团购", isused: "售后团购",
num: 24, num: 240,
rate: 240 rate: 24
}, },
{ {
isused: "节假日关怀", isused: "节假日关怀",
num: 12, num: 120,
rate: 120 rate: 12
} }
] ]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!