Commit 1cae7419 by 匡雅琴

页面调整

1 parent 1afe4382
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<span>¥{{numAddSymbol(item.bottomValue)}}</span> <span>¥{{numAddSymbol(item.bottomValue)}}</span>
</template> </template>
<template v-else-if="item.bottomType == 'slot'"> <template v-else-if="item.bottomType == 'slot'">
<slot name="bottom"></slot> <slot :name="item.valueName" :[item.valueName]="item"></slot>
</template> </template>
<template v-else-if="item.bottomType == 'ratio'"> <template v-else-if="item.bottomType == 'ratio'">
<div class="ratio"> <div class="ratio">
......
...@@ -100,7 +100,7 @@ export default { ...@@ -100,7 +100,7 @@ export default {
min-width: 6vh; min-width: 6vh;
justify-content: normal; justify-content: normal;
&:first-child { &:first-child {
min-width: 20vh; min-width: 15vh;
} }
&:last-child .item-content { &:last-child .item-content {
display: inline-block; display: inline-block;
......
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
min-width: 6vh; min-width: 6vh;
justify-content: normal; justify-content: normal;
&:first-child { &:first-child {
min-width: 20vh; min-width: 15vh;
} }
&:last-child .item-content { &:last-child .item-content {
display: inline-block; display: inline-block;
......
...@@ -6,7 +6,20 @@ ...@@ -6,7 +6,20 @@
</template> </template>
<template #content> <template #content>
<div class="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> <ActivityDetail class="activity-detail"></ActivityDetail>
</div> </div>
...@@ -24,6 +37,8 @@ export default { ...@@ -24,6 +37,8 @@ export default {
}, },
data() { data() {
return { return {
percentage: 20,
conversionColor: '',
merchantList: [], merchantList: [],
merchantListObj: { merchantListObj: {
labelName: 'merchantName', labelName: 'merchantName',
...@@ -47,31 +62,35 @@ export default { ...@@ -47,31 +62,35 @@ export default {
}, },
{ {
name: '总场次', name: '总场次',
valueName: 'days', valueName: 'changci',
value: '0', value: '0',
unit: '场', unit: '场',
unitType: 'right' unitType: 'right',
bottomType: 'slot'
}, },
{ {
name: '平均客单价', name: '平均客单价',
valueName: 'days', valueName: 'kedan',
value: '0', value: '0',
unit: '¥', unit: '¥',
unitType: 'left' unitType: 'left',
bottomType: 'slot'
}, },
{ {
name: '平均转化率', name: '平均转化率',
valueName: 'days', valueName: 'zhuanhua',
value: '0', value: '70',
unit: '%', unit: '%',
unitType: 'right' unitType: 'right',
bottomType: 'slot'
}, },
{ {
name: '平均退单率', name: '平均退单率',
valueName: 'days', valueName: 'tuidan',
value: '0', value: '10',
unit: '%', unit: '%',
unitType: 'right' unitType: 'right',
bottomType: 'slot'
} }
] ]
} }
...@@ -89,5 +108,42 @@ export default { ...@@ -89,5 +108,42 @@ export default {
.activity-detail { .activity-detail {
margin-top: 1.78vh; 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> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!