Commit 1cae7419 by 匡雅琴

页面调整

1 parent 1afe4382
......@@ -12,7 +12,7 @@
<span>¥{{numAddSymbol(item.bottomValue)}}</span>
</template>
<template v-else-if="item.bottomType == 'slot'">
<slot name="bottom"></slot>
<slot :name="item.valueName" :[item.valueName]="item"></slot>
</template>
<template v-else-if="item.bottomType == 'ratio'">
<div class="ratio">
......
......@@ -100,7 +100,7 @@ export default {
min-width: 6vh;
justify-content: normal;
&:first-child {
min-width: 20vh;
min-width: 15vh;
}
&:last-child .item-content {
display: inline-block;
......
......@@ -108,7 +108,7 @@ export default {
min-width: 6vh;
justify-content: normal;
&:first-child {
min-width: 20vh;
min-width: 15vh;
}
&:last-child .item-content {
display: inline-block;
......
......@@ -6,7 +6,20 @@
</template>
<template #content>
<div class="content">
<StatisticsBox :list="crowdfundingDetailList"></StatisticsBox>
<StatisticsBox :list="crowdfundingDetailList">
<template #changci>
<img class="img-statictic" src="../../assets/images/bar-graph.png" alt="" />
</template>
<template #kedan>
<img class="img-statictic" src="../../assets/images/curve.png" alt="" />
</template>
<template #zhuanhua="{zhuanhua}">
<el-progress class="conversion-progress" :percentage="zhuanhua.value" :stroke-width="18"></el-progress>
</template>
<template #tuidan="{tuidan}">
<el-progress class="reject-progress" :percentage="tuidan.value" :stroke-width="18"></el-progress>
</template>
</StatisticsBox>
<!-- 活动数据明细 -->
<ActivityDetail class="activity-detail"></ActivityDetail>
</div>
......@@ -24,6 +37,8 @@ export default {
},
data() {
return {
percentage: 20,
conversionColor: '',
merchantList: [],
merchantListObj: {
labelName: 'merchantName',
......@@ -47,31 +62,35 @@ export default {
},
{
name: '总场次',
valueName: 'days',
valueName: 'changci',
value: '0',
unit: '场',
unitType: 'right'
unitType: 'right',
bottomType: 'slot'
},
{
name: '平均客单价',
valueName: 'days',
valueName: 'kedan',
value: '0',
unit: '¥',
unitType: 'left'
unitType: 'left',
bottomType: 'slot'
},
{
name: '平均转化率',
valueName: 'days',
value: '0',
valueName: 'zhuanhua',
value: '70',
unit: '%',
unitType: 'right'
unitType: 'right',
bottomType: 'slot'
},
{
name: '平均退单率',
valueName: 'days',
value: '0',
valueName: 'tuidan',
value: '10',
unit: '%',
unitType: 'right'
unitType: 'right',
bottomType: 'slot'
}
]
}
......@@ -89,5 +108,42 @@ export default {
.activity-detail {
margin-top: 1.78vh;
}
.img-statictic {
width: 14.03vw;
height: 2.22vh;
margin-left: 1.4vw;
}
.el-progress--line {
width: 14.03vw;
margin-left: 1.4vw;
}
/deep/.el-progress__text {
display: none;
}
/deep/.el-progress-bar {
padding-right: 0;
}
/deep/.el-progress-bar__outer {
border-radius: 0;
}
/deep/.el-progress-bar__inner {
border-radius: 0;
}
.conversion-progress {
/deep/.el-progress-bar__outer {
background-image: linear-gradient(-89deg, #11627a 0%, #282f7a 100%);
}
/deep/.el-progress-bar__inner {
background-image: linear-gradient(270deg, #22D8FF 0%, #5C56FF 100%);
}
}
.reject-progress {
/deep/.el-progress-bar__outer {
background-image: linear-gradient(270deg, #145F4E 0%, #02485C 100%);
}
/deep/.el-progress-bar__inner {
background-image: linear-gradient(270deg, #2AD190 0%, #00B7DF 100%);
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!