提交 1b35a57d authored 作者: lihuihui's avatar lihuihui

样式调整

上级 e6e2f2dd
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<li :key="index"> <li :key="index">
<div class="name">{{ item.project_name }}</div> <div class="name">{{ item.project_name }}</div>
<div class="progress-box"> <div class="progress-box">
<div class="block" :style="setStyle(item.rateNum)"></div> <div class="block" :style="setStyle(item.rateNum, getColor[item.project_name])"></div>
</div> </div>
<div class="num">{{ item.apply_count }}</div> <div class="num">{{ item.apply_count }}</div>
</li> </li>
...@@ -17,7 +17,14 @@ import action from '@action' ...@@ -17,7 +17,14 @@ import action from '@action'
export default { export default {
data () { data () {
return { return {
data: [] data: [],
getColor: {
Sofia: 'rgba(252, 101, 75, 1)',
Kelley: 'rgba(52, 166, 210, 1)',
CU: 'rgba(152, 146, 240, 1)',
CIIS: 'rgba(239, 177, 174, 1)',
SHMS: 'rgba(249, 189, 115, 1)'
}
} }
}, },
mounted () { mounted () {
...@@ -38,8 +45,8 @@ export default { ...@@ -38,8 +45,8 @@ export default {
}, },
computed: { computed: {
setStyle() { setStyle() {
return (n) => { return (n, n2) => {
return `width: ${n}%` return `width: ${n}%;background: ${n2}`
} }
} }
} }
......
...@@ -14,10 +14,10 @@ ...@@ -14,10 +14,10 @@
</div> </div>
<div class="tagging-box"> <div class="tagging-box">
<ul class="tips-box"> <ul class="tips-box">
<template v-for="(item, index) in monthlyIncomeData.projectName"> <template v-for="(item, index) in tipsData">
<li :key="index"> <li :key="index">
<div :class="`block col-${item}`"></div> <div :class="`block col-${item.projectName}`"></div>
<div class="project-name">{{ item }}</div> <div class="project-name">{{ item.projectName }}{{ item.num }}万)</div>
</li> </li>
</template> </template>
</ul> </ul>
...@@ -111,8 +111,7 @@ export default { ...@@ -111,8 +111,7 @@ export default {
yearApply, yearApply,
yearRankingApply, yearRankingApply,
weekRevenueForecast, weekRevenueForecast,
Card, Card
tipsData: []
}, },
data() { data() {
return { return {
...@@ -139,7 +138,8 @@ export default { ...@@ -139,7 +138,8 @@ export default {
CU: 'rgba(152, 146, 240, 1)', CU: 'rgba(152, 146, 240, 1)',
CIIS: 'rgba(239, 177, 174, 1)', CIIS: 'rgba(239, 177, 174, 1)',
SHMS: 'rgba(249, 189, 115, 1)' SHMS: 'rgba(249, 189, 115, 1)'
} },
tipsData: []
} }
}, },
mounted() { mounted() {
...@@ -165,6 +165,10 @@ export default { ...@@ -165,6 +165,10 @@ export default {
} }
} }
) )
this.tipsData.push({
projectName: item.project_name,
num: (item.pay_money / 10000).toFixed(2)
})
this.monthlyIncomeData.projectName.push(item.project_name) this.monthlyIncomeData.projectName.push(item.project_name)
// 达成率数据遍历 // 达成率数据遍历
this.monthCompleteRateData = res.data.sell_data this.monthCompleteRateData = res.data.sell_data
...@@ -228,9 +232,9 @@ export default { ...@@ -228,9 +232,9 @@ export default {
// padding-top: 5%; // padding-top: 5%;
// transform: translateX(-20px); // transform: translateX(-20px);
li{ li{
width: 142px; // width: 142px;
display: flex; display: flex;
margin-bottom: 20px; margin-bottom: 15px;
.block{ .block{
width: 13px; width: 13px;
height: 13px; height: 13px;
...@@ -251,13 +255,14 @@ export default { ...@@ -251,13 +255,14 @@ export default {
} }
} }
.project-name{ .project-name{
font-size: 17px; font-size: 14px;
color: #F3F3F3; color: #F3F3F3;
line-height: 13px; line-height: 13px;
margin-left: 12px; margin-left: 12px;
white-space:nowrap;
} }
.num{ .num{
font-size: 16px; font-size: 14px;
color: #F3F3F3; color: #F3F3F3;
line-height: 13px; line-height: 13px;
margin-left: auto; margin-left: auto;
...@@ -269,11 +274,11 @@ export default { ...@@ -269,11 +274,11 @@ export default {
position: absolute; position: absolute;
// bottom: 4.5%; // bottom: 4.5%;
top: 50%; top: 50%;
left: 50%; right: 5%;
width: 50%; width: 50%;
height: 0; height: 0;
padding-bottom: 50%; padding-bottom: 50%;
transform: translate(-50%, -50%); transform: translateY(-50%);
.circle-bg{ .circle-bg{
background: url(https://zws-imgs-pub.ezijing.com/static/public/052fbafd85745805c6e0de2f7b0fca17.png); background: url(https://zws-imgs-pub.ezijing.com/static/public/052fbafd85745805c6e0de2f7b0fca17.png);
background-size: 100% 100%; background-size: 100% 100%;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论