Login.vue
2.83 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
<template>
<div class="member_login">
<NafmHeader />
<van-form class="login_form" @submit="onSubmit">
<van-field v-model="code" placeholder="请输入社会信用代码或组织机构代码" :rules="[{ required: true, message: '请输入社会信用代码或组织机构代码' }]">
<div slot="left-icon" :style="code && code!== '' ? '' : 'opacity: 0.6'">
<van-icon name="coupon-o" />
</div>
</van-field>
<van-field v-model="password" type="password" placeholder="请输入密码" :rules="[{ required: true, message: '请输入密码' }]">
<div slot="left-icon" :style="password && password!== '' ? '' : 'opacity: 0.6'">
<van-icon name="edit" />
</div>
</van-field>
<van-field v-model="checkCode" placeholder="请输入验证码" :rules="[{ required: true, message: '请输入验证码' }]">
<div slot="left-icon" :style="checkCode && checkCode!== '' ? '' : 'opacity: 0.6'">
<van-icon name="certificate" />
</div>
<template #button>
<span>111111</span>
</template>
</van-field>
<p class="wraning_tip">
提示:请输入贵单位会员系统的登录名及密码登录(单位会员)
</p>
<div style="margin: 16px;">
<van-button block type="info" native-type="submit" :disabled="isLogin">登录</van-button>
</div>
</van-form>
<div class="membership_about">
<van-cell title="入会指南" is-link to="/member/membershipGuide" />
<van-cell title="会籍办理常见问题" is-link to="/member/membershipGuide" />
<van-cell title="会员管理规则" is-link to="/member/membershipGuide" />
</div>
</div>
</template>
<script>
export default {
data() {
return {
code: '',
password: '',
checkCode: ''
}
},
computed: {
isLogin() {
return !this.code || this.code === '' || !this.password || this.password === '' || !this.checkCode || this.checkCode === ''
}
},
methods: {
onSubmit(value) {
}
}
}
</script>
<style lang="less" scoped>
.member_login {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 83px;
background-color: #f6f6f6;
.login_form {
background-color: #ffffff;
padding-right: 20px;
padding-bottom: 40px;
::v-deep .van-field__control {
font-size: 14px;
color: #333333;
}
input::-webkit-input-placeholder {
color: #8f9196;
}
input::-moz-input-placeholder {
color: #8f9196;
}
input::-ms-input-placeholder {
color: #8f9196;
}
.wraning_tip {
color: #ea5c6d;
font-size: 12px;
text-align: justify;
margin-left: 20px;
margin-top: 16px;
}
}
.membership_about {
margin: 20px 0;
.van-cell {
background-color: #f6f6f6;
font-size: 14px;
}
}
}
</style>