tk-entry.vue
1.66 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
<template>
<workbench-card title="拓客管理入口" subtitle="拓客活动" icon="el-icon-s-custom" tone="green">
<div class="entry" @click="go">
<div class="entry__icon"><i class="el-icon-s-custom" /></div>
<div class="entry__text">
<div class="entry__title">进入拓客管理</div>
<div class="entry__sub">拓客记录与活动</div>
</div>
<i class="el-icon-arrow-right entry__arrow" />
</div>
</workbench-card>
</template>
<script>
import WorkbenchCard from '../workbench-card.vue'
export default {
name: 'WidgetTkEntry',
components: { WorkbenchCard },
methods: {
go() {
this.$router.push('/lqTkjlb').catch(() => {})
}
}
}
</script>
<style lang="scss" scoped>
.entry {
display: flex;
align-items: center;
padding: 14px;
border-radius: 10px;
background: #f8fbff;
border: 1px solid #e0efff;
cursor: pointer;
height: 100%;
min-height: 72px;
transition: box-shadow 200ms ease, border-color 200ms ease;
&:hover {
border-color: #b3d8ff;
box-shadow: 0 4px 14px rgba(64, 158, 255, 0.12);
}
}
.entry__icon {
width: 44px;
height: 44px;
border-radius: 12px;
background: #ecf5ff;
color: #409eff;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
margin-right: 12px;
flex-shrink: 0;
}
.entry__title { font-size: 15px; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry__sub { margin-top: 4px; font-size: 12px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry__text { flex: 1; min-width: 0; }
.entry__arrow { color: #94a3b8; font-size: 16px; }
</style>