guide_code_detail.vue
1.39 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
<template>
<div>
<div class="card-tab">
<div class="item" :class="activeIndex === 0 ? 'active' : ''" @click="activeIndex = 0">活码信息</div>
<div class="item" :class="activeIndex === 1 ? 'active' : ''" @click="activeIndex = 1">数据统计</div>
</div>
<div style="margin-top: 10px">
<template v-if="activeIndex === 0">
<base-detail :codeType="1"></base-detail>
</template>
<template v-if="activeIndex === 1">
<guide-code-analyse></guide-code-analyse>
</template>
</div>
</div>
</template>
<script>
import BaseDetail from './base_detail'
import GuideCodeAnalyse from './guide_code_analyse'
export default {
name: 'store-detail',
data() {
return {
activeIndex: 0,
}
},
components: {
BaseDetail,
GuideCodeAnalyse,
},
}
</script>
<style lang="scss" scoped>
.active {
font-weight: 600;
color: var(--color) !important;
background-color: #fff !important;
box-shadow: 0px 6px 30px 5px rgba(59, 59, 59, 0.05);
}
.card-tab {
// margin-top: 10px;
display: flex;
div {
width: 88px;
height: 30px;
background: #fafafa;
border-radius: 32px 32px 32px 32px;
font-size: 14px;
color: rgba(0, 0, 0, 0.4);
line-height: 30px;
text-align: center;
margin-top: 15px;
margin-right: 12px;
margin-bottom: 6px;
}
.item:hover {
cursor: pointer;
opacity: 0.8;
}
}
</style>