index.vue
3.6 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<template>
<div class="login">
<el-row :inline="true" justify="space-between" class="title">
<div class="imgBox">
<!-- <img class="img" src="@/assets/images/logo@2x.png" alt="">-->
</div>
<div class="title-right">
<router-link to="login" class="tilt-btn">
<div class="text" :class="{'btnText':route.name=='login'}">登录</div>
<div class="text-B" :class="{'btn-B':route.name=='login'}">LOGIN</div>
</router-link>
<router-link to="register" class="tilt-btn" active-class="btn">
<div class="text" :class="{'btnText':route.name=='register'}">注册会员</div>
<div class="text-B" :class="{'btn-B':route.name=='register'}">REGISTERED</div>
</router-link>
<router-link to="regulations" class="tilt-btn" active-class="btn">
<div class="text" :class="{'btnText':route.name=='regulations'}">会员管理办法</div>
<div class="text-B" :class="{'btn-B':route.name=='regulations'}">Regulations</div>
</router-link>
</div>
</el-row>
<router-view class="login-center" />
<div class="el-login-footer">
<span>中国跆拳道协会版权所有</span>
</div>
</div>
</template>
<script setup>
import { useRoute } from 'vue-router'
import { watch, ref } from 'vue'
const route = useRoute()
const index = ref(0)
watch(() => route.name, (val) => {
switch (val) {
case 'login':
index.value = 1
break
case 'register':
index.value = 2
break
case 'regulations':
index.value = 3
break
}
})
</script>
<style lang="scss" scoped>
.title {display: flex;
justify-content: space-between;
align-items: center;
padding-left: 20px;
height: 100px;
background-color: #fff;
}
.title-right {
display: flex;
justify-content: space-between;
}
:deep(.el-tabs__nav-wrap::after) {
border: 0;
opacity: 0;
}
:deep(.el-tabs__nav) {
// text-align: center;
width: 100%;
}
.title-left {
color: #043793;
font-weight: 900;
font-size: 30px;
margin-left: 100px;
padding-top: 25px;
}
.tilt-btn {
// background-color: #043793;
color: #043793;
font-weight: 700;
background-color: none;
font-size: 20px;
margin-right: 20px;
padding:0 20px;
cursor: pointer;
}
.btn {
// color: #fff;
// background-color: #043793;
border-radius: 10px;
}
.title-text {
color: #043793;
font-weight: 500;
font-size: 20px;
}
.login {
height: 100%;
}
.login-center {
height: 80%;
display: flex;
justify-content: center;
align-items: center;
}
.title {
margin: 0px auto 30px auto;
text-align: center;
color: #707070;
}
.el-login-footer {
height: 40px;
line-height: 40px;
position: fixed;
bottom: 0;
width: 100%;
text-align: center;
color: #fff;
font-family: Arial;
font-size: 12px;
letter-spacing: 1px;
}
.img{
height: 70px;
}
.text{
font-size: 1.2vw;
font-family: PingFang SC;
font-weight: 400;
color: #4C5359;
margin-top: 10px;
}
.text-B{
font-size: 14px;
font-family: PingFang SC;
font-weight: 400;
color: #95A1A6;
margin-top: 10px;
}
.btnText{
color:#014A9F
}
.btn-B{
color:#008BF7
}
:deep(.el-button--success){
width: 440px;
height: 60px;
background: #014A9F;
border-radius: 4px;
span{
font-size: 20px;
font-family: Source Han Sans CN;
font-weight: 400;
color: #FFFFFF;
}
}
:deep(.el-tabs__item){
font-size: 20px;
font-family: Source Han Sans CN;
font-weight: 400;
}
:deep(.is-active){
color: #014A9F;
}
// :deep()
@media (max-width: 1400px) {
.title{height: 70px;
.img{height: 55px}
}
.text{font-size: 1.3vw;}
.text-B{margin-top: 0}
}
</style>