|
|
@@ -4,18 +4,25 @@
|
|
|
<basic-tab :tabs='tabs' :full='true' @change='change' style='width:99%'/>
|
|
|
</div>
|
|
|
<div class='flex flex-center full-width mt-10'>
|
|
|
- <div v-for='i in dash' class='flex-child-average' :key='i'>
|
|
|
+ <div v-for='i in dash' class='flex-child-average' :key='i'>
|
|
|
<div class='box' :style='`box-shadow: `+ i.box'>
|
|
|
- <div class='flex flex-justify-start font-16'>
|
|
|
- <img :src='i.icon'/>
|
|
|
- <span>{{ i.name }}</span>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class='flex flex-justify-start mt-20 bold font-16'>
|
|
|
- <span>¥</span>
|
|
|
- <span :style='`color:` + i.color'>{{ i.name }}</span>
|
|
|
- <img :src='i.icon'/>
|
|
|
+ <div class="flex flex-col bold font-16 padding-14">
|
|
|
+ <div class='flex flex-justify-start'>
|
|
|
+ <img :src='i.icon'/>
|
|
|
+ <span class="grey-6 ml-5">{{ i.name }}</span>
|
|
|
+ </div>
|
|
|
+ <div v-if="i.index !== 2" class='flex flex-justify-start mt-5'>
|
|
|
+ <span class="grey" style="margin-left: 3px">¥</span>
|
|
|
+ <span class="ml-5" :style='`color:` + i.color'>{{ i.value }}</span>
|
|
|
+ </div>
|
|
|
+ <div v-else class='flex flex-justify-start flex-center mt-5'>
|
|
|
+ <div class="progress-bar">
|
|
|
+ <div class="bar full-height" style="width: 50%;"></div>
|
|
|
+ </div>
|
|
|
+ <span class="ml-10" :style='`color:` + i.color'>{{ i.value }}</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+ <!-- <img :src='i.background'/>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -27,22 +34,22 @@ import basicTab from '@/components/basic-tab/index.vue'
|
|
|
|
|
|
export default {
|
|
|
name: 'years',
|
|
|
- components: { basicTab },
|
|
|
+ components: {basicTab},
|
|
|
props: {
|
|
|
type: {
|
|
|
type: Number,
|
|
|
default: 0
|
|
|
}
|
|
|
},
|
|
|
- data () {
|
|
|
+ data() {
|
|
|
return {
|
|
|
times: [],
|
|
|
tabs: [
|
|
|
- { name: '总览', value: 0 },
|
|
|
- { name: '一季度', value: 1 },
|
|
|
- { name: '二季度', value: 2 },
|
|
|
- { name: '三季度', value: 3 },
|
|
|
- { name: '四季度', value: 4 }
|
|
|
+ {name: '总览', value: 0},
|
|
|
+ {name: '一季度', value: 1},
|
|
|
+ {name: '二季度', value: 2},
|
|
|
+ {name: '三季度', value: 3},
|
|
|
+ {name: '四季度', value: 4}
|
|
|
],
|
|
|
dash: [
|
|
|
{
|
|
|
@@ -51,7 +58,9 @@ export default {
|
|
|
value: 30303,
|
|
|
prop: '',
|
|
|
box: '0 1px 10px 0 rgba(105, 204, 243, 0.3)',
|
|
|
- color: '#32B5F3'
|
|
|
+ color: '#32B5F3',
|
|
|
+ index: 0,
|
|
|
+ background: new URL('../../../assets/svg/invest/bg1.svg', import.meta.url).href,
|
|
|
},
|
|
|
{
|
|
|
icon: new URL('../../../assets/svg/invest/2.svg', import.meta.url).href,
|
|
|
@@ -59,7 +68,8 @@ export default {
|
|
|
value: 30303,
|
|
|
prop: '',
|
|
|
box: '0 1px 10px 0 rgba(200, 150, 230, 0.3)',
|
|
|
- color: '#AD46CB'
|
|
|
+ color: '#AD46CB',
|
|
|
+ index: 1,
|
|
|
},
|
|
|
{
|
|
|
icon: new URL('../../../assets/svg/invest/3.svg', import.meta.url).href,
|
|
|
@@ -67,7 +77,8 @@ export default {
|
|
|
value: 30303,
|
|
|
prop: '',
|
|
|
box: '0 1px 10px 0 rgba(236, 171, 83, 0.3)',
|
|
|
- color: '#EC9040'
|
|
|
+ color: '#EC9040',
|
|
|
+ index: 2,
|
|
|
},
|
|
|
{
|
|
|
icon: new URL('../../../assets/svg/invest/4.svg', import.meta.url).href,
|
|
|
@@ -75,20 +86,21 @@ export default {
|
|
|
value: 30303,
|
|
|
prop: '',
|
|
|
box: '0 1px 10px 0 rgba(119, 94, 241, 0.3)',
|
|
|
- color: '#4F5EE7'
|
|
|
+ color: '#4F5EE7',
|
|
|
+ index: 3,
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
- created () {
|
|
|
+ created() {
|
|
|
this.init()
|
|
|
},
|
|
|
methods: {
|
|
|
- init () {
|
|
|
+ init() {
|
|
|
const year = new Date().getFullYear()
|
|
|
this.tabs[0].name = year + '年总览'
|
|
|
},
|
|
|
- change (index) {
|
|
|
+ change(index) {
|
|
|
this.$emit('change', index)
|
|
|
}
|
|
|
}
|
|
|
@@ -101,11 +113,26 @@ export default {
|
|
|
background-size: 100% 100%;
|
|
|
background-repeat: no-repeat;
|
|
|
}
|
|
|
+
|
|
|
.box {
|
|
|
border-radius: 8px;
|
|
|
min-height: 85px;
|
|
|
margin: 20px;
|
|
|
- padding: 20px;
|
|
|
background-color: #F6F9FD;
|
|
|
}
|
|
|
+
|
|
|
+.progress-bar {
|
|
|
+ width: 140px;
|
|
|
+ height: 10px;
|
|
|
+ background: white;
|
|
|
+ border-radius: 10px;
|
|
|
+ margin-left: 5px;
|
|
|
+ border: 1px solid #F8B65F
|
|
|
+}
|
|
|
+
|
|
|
+.bar {
|
|
|
+ background: #F8B65F;
|
|
|
+ border-radius: 10px
|
|
|
+}
|
|
|
+
|
|
|
</style>
|