login.vue
4.17 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
<template>
<v-layout id="Login" column justify-center align-center>
<v-flex>
<v-card id="LoginBlock" height="18rem">
<div class="phoneBlock">
<div class="iconBlock">
<i aria-hidden="true" class="material-icons icon iconfont icon-shouji"></i>
</div>
<v-text-field
v-model="form.phone"
color="light-gold"
class="LoginInput "
name="PhoneInput"
placeholder="请输入手机号"
id='PhoneInput'
single-line
></v-text-field>
</div>
<div class="VerificationCodeBlock">
<div class="iconBlock">
<i aria-hidden="true" class="material-icons icon iconfont icon-yanzhengma"></i>
</div>
<v-text-field
class="LoginInput"
color="light-gold"
name="VerificationCodeInput"
id="VerificationCodeInput"
placeholder="请输入验证码"
single-line
></v-text-field>
<div class="getCodeBlock">
<v-btn depressed id="getCodeBtn">发送验证码</v-btn>
</div>
</div>
<div class="Agreement">
<div
@click="agreement = !agreement"
class="AgreementCheckBox"
:class="agreement ? 'AgreementChecked' : ''">
<v-icon id="CheckBoxCheck" v-if="agreement">check</v-icon>
</div>
已阅读并同意<span class="gold--text">《XX协议》</span>
</div>
<div class="ConfirmButtonBlock">
<v-btn depressed id="ConfirmButton">激 活</v-btn>
</div>
</v-card>
</v-flex>
</v-layout>
</template>
<script>
export default {
data:() => ({
form: {
phone: '',
verificationCode: '',
},
agreement: false,
}),
}
</script>
<style lang="scss" scoped>
#Login {
background-image: url('/loginBG.png');
background-size: cover;
background-repeat:no-repeat;
#LoginBlock {
width: 87vw;
margin-top: 8.5rem;
background: $menu-grey;
border-radius: 10px;
padding: 1rem 0.9rem;
.iconBlock {
position: absolute;
margin-top: 18px;
margin-left: 1rem;
/deep/ .icon {
color: $light-gold;
}
}
/deep/ #PhoneInput {
margin-left: 2.7rem;
color: $light-gold;
}
/deep/ #VerificationCodeInput {
margin-left: 2.7rem;
margin-right: 6rem;
color: $light-gold;
}
::-moz-placeholder { color: #9D9D9D; }
::-webkit-input-placeholder { color:#9D9D9D; }
:-ms-input-placeholder { color:#9D9D9D; }
}
.VerificationCodeBlock {
position: relative;
.getCodeBlock {
position: absolute;
right: 0;
top: 0;
#getCodeBtn {
background-image: linear-gradient(-229deg, #DAB269 37%, #E7C78C 87%);
border-radius: 4px;
color: #484646;
height: 2rem;
width: 5.9rem;
margin-right: 0;
}
}
}
.Agreement {
text-align: center;
font-size: 12px;
color: #9D9D9D;
font-weight: bold;
height: 1.5rem;
line-height: 1.5rem;
.AgreementCheckBox {
border: 2px solid #fff;
color: #fff;
width: 1.2rem;
height: 1.2rem;
border-radius: 1.2rem;
transition: all 0.3s ease-in-out;
display: inline-block;
margin-right: 0.8rem;
position: relative;
top: 3px;
&.AgreementChecked {
background-image: linear-gradient(-229deg, #DAB269 37%, #E7C78C 87%);
border-color: #E7C78C;
}
#CheckBoxCheck {
position: absolute;
left: 0;
font-size: 15px;
font-weight: bold;
}
}
}
.ConfirmButtonBlock {
width: 100%;
margin-top: 1.1rem;
#ConfirmButton {
color: #484646;
background-image: linear-gradient(-213deg, #DAB269 0%, #E7C78C 92%);
border-radius: 2px;
width: 100%;
height: 2.8rem;
font-size: 18px;
margin: auto;
}
}
}
</style>