index.vue
1.97 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
<!-- 会员中心主页 -->
<template>
<div class="live-room">
<div class="container live-room">
<!-- <div class="titles">
<div v-for="(item, index) in titles" :key="index" class="tabItem" :class="{ activeTab: currentIndex === index }" @click="tabClick(index)">{{ item }}</div>
</div>
<template v-if="currentIndex == 0">
<Center></Center>
</template>
<template v-if="currentIndex == 1">
<Service></Service>
</template>
<template v-if="currentIndex == 2">
<SetMeal></SetMeal>
</template>
<template v-if="currentIndex == 3">
<Order></Order>
</template>
<template v-if="currentIndex == 4">
<Record></Record>
</template> -->
</div>
</div>
</template>
<script>
// import glsxDialog from '@/components/glsx-dialog'
// import Center from '@/views/memberCenter/childs/center'
// import Service from '@/views/memberCenter/childs/service'
// import SetMeal from '@/views/memberCenter/childs/setMeal'
// import Order from '@/views/memberCenter/childs/order'
// import Record from '@/views/memberCenter/childs/record'
export default {
name: 'memberCenter',
// components: {
// Record,
// Center,
// Service,
// SetMeal,
// Order
// },
data() {
return {
currentIndex: 0,
titles: ['会员中心', '会员服务', '会员套餐', '订单', '核销记录']
}
},
// components: {
// glsxDialog,
// glsxTable
// },
created() {
this.$router.push('/memberCenter/center')
},
mounted() {},
methods: {
tabClick(index) {
this.currentIndex = index
}
}
}
</script>
<style>
.live-room .titles {
display: flex;
justify-content: space-around;
/* align-items: center; */
width: 500px;
}
.live-room .tabItem {
font-size: 14px;
padding-bottom: 6px;
color: #717171;
cursor: pointer;
}
.live-room .activeTab {
color: #5850ff;
border-bottom: 2px solid #5850ff;
/* background-color: #fff; */
}
</style>