business.vue
2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:12:26
* @LastEditors: huyue
* @LastEditTime: 2023-02-28 14:53:09
* @FilePath: \dj-data-view\src\views\saas\business.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class='business-wrap flex'>
<div class='business-data'>
<business-view :businessNum='businessNum'></business-view>
</div>
</div>
</template>
<script>
import businessView from './businessView'
export default {
components: {
businessView
},
name: 'Business',
data() {
return {
businessNum: {},
categoryData: []
}
},
mounted() {
this.getMerchantNum()
},
methods: {
toFixNum(val) {
return (val * 100).toFixed(2) + '%'
},
getMerchantNum() {
this.api.springbudAtion.getMerchantNum().then(res => {
if (res.code == 0) {
this.businessNum = res.data.dataList[0]
}
})
}
}
}
</script>
<style lang='scss' scoped>
.business-wrap {
height: 6vh;
margin-bottom: 0.98vh;
margin-top: 0.98vh;
.business-data {
margin-right: 4px;
width: 48vw;
height: 100%;
}
.business-category {
width: 13.06vw;
height: 100%;
}
.timeConWrapper {
//display: grid;
//grid-template-columns: repeat(2, 1fr);
display: flex;
justify-content: space-between;
width: 25vw;
.business-border {
height: 6.71vh;
width: 10vw;
padding: 0.4vh 1.11vw;
box-sizing: border-box;
background: #0b0e31;
.business-title {
font-weight: 400;
font-size: 12px;
color: #e8e8e8;
}
.business-number {
font-weight: 700;
font-size: 20px;
line-height: 30px;
color: #6578ff;
}
}
.exhibitionTime {
color: #e8e8e8;
background: #0b0e31;
height: 2.5vh;
line-height: 2.7vh;
width: 15vw;
margin-bottom: 0.5vh;
.time {
margin-left: 0.5vw;
color: #6578ff;
font-weight: 700;
}
}
}
}
</style>