Commit 22c4cd81 by 匡雅琴

提交

1 parent 4417c16b
<template>
<div class="rate-box">
<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>
</div>
</template>
......@@ -17,7 +17,7 @@ export default {
id: 'shadowPie',
keys: ['isused', 'num'],
height: '17.7vh',
colors: ['#34AFFF', '#16E193']
colors: ['#6578FF', '#16E193', '#FFE73C', '#EB6001']
},
activityListData,
legentList: [
......@@ -32,7 +32,8 @@ export default {
},
{
name: 'num',
width: '1.88vw'
width: '1.88vw',
unitIcon: '场'
}
]
}
......
......@@ -137,23 +137,23 @@ const nearThreadDataList = [
const activityListData = [
{
isused: "精品升级",
num: 36,
rate: 360
num: 360,
rate: 36
},
{
isused: "权益升级",
num: 28,
rate: 280
num: 280,
rate: 28
},
{
isused: "售后团购",
num: 24,
rate: 240
num: 240,
rate: 24
},
{
isused: "节假日关怀",
num: 12,
rate: 120
num: 120,
rate: 12
}
]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!