index.vue
1.89 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
<template>
<div class="one-customer-one-group">
<div style="margin-right: 5px;">
<el-tabs v-model="activeName" class="custom-tabs" @tab-click="handleClick">
<el-tab-pane
v-for="(item, index) in tabPaneList"
:key="index"
:label="item.label"
:name="item.name"
>
</el-tab-pane>
</el-tabs>
<TipsBox :tips="tabPaneList[activeIdx].tips" />
</div>
<OneCustomerGroupTab v-if="activeName === 'oneCustomerGroup'" />
<StoreConfigTab v-if="activeName === 'storeConfig'" />
</div>
</template>
<script>
import OneCustomerGroupTab from "./components/OneCustomerGroupTab.vue";
import StoreConfigTab from "./components/StoreConfigTab.vue";
import TipsBox from "./components/TipsBox.vue";
export default {
name: "OneCustomerOneGroup",
components: {
OneCustomerGroupTab,
StoreConfigTab,
TipsBox,
},
data() {
return {
activeName: "oneCustomerGroup",
activeIdx: 0,
tabPaneList: [
{
label: "一客一群",
name: "oneCustomerGroup",
tips: [
"可将多个群二维码组合生成一个活码,当客户扫码进群后即与该群产生绑定,不会再接待新的客户入群。",
],
},
{
label: "4S店配置",
name: "storeConfig",
tips: [
"管理并配置各4S店与其对应的总部定价师关联关系,以便线索精确分配。",
],
},
],
};
},
methods: {
handleClick(tab, event) {
this.activeIdx = tab.index;
this.activeName = tab.name;
},
},
};
</script>
<style lang="scss" scoped>
.one-customer-one-group {
padding: 0 20px 20px 20px;
background-color: #f0f2f5;
min-height: calc(100vh - 100px);
::v-deep .custom-tabs {
.el-tabs__header {
background-color: #fff;
padding: 0 20px;
margin: 0;
}
.el-tabs__nav-wrap::after {
height: 1px;
background-color: #e4e7ed;
}
.el-tabs__item {
height: 54px;
line-height: 54px;
font-size: 16px;
}
}
}
</style>