index.vue
1.1 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
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-10-10 10:28:01
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-10-24 09:41:49
* @FilePath: \scrm-micro-provider\src\views\application\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="channel-main">
<GLTabs v-model="activeItem" :tabPaneList="tabPaneList" class="tabs-panel"></GLTabs>
<components :is="tabName" :activeItem="activeItem"></components>
</div>
</template>
<script>
const tabPaneList = [
{
label: '门店开通申请',
name: '0'
},
{
label: '活动开通申请',
name: '1'
}
]
import './components'
export default {
name: 'businessCard',
data() {
return {
activeItem: '0',
tabPaneList
}
},
computed: {
tabName() {
return ['storeList', 'activityList'][+this.activeItem]
}
}
}
</script>
<style lang="scss" scoped>
.channel-main {
.tabs-panel {
margin-bottom: 16px;
}
}
</style>