forgetPassword.vue
2.4 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
<template>
<view>
<view class="loginTitle">
企业登录
</view>
<view class="formWrap">
<view class="formItem">
<view class="itemLeft">
+86
<image src="../../static/image/down.png" mode=""></image>
</view>
<input type="text" value="" placeholder="请输入手机号"/>
</view>
<view class="formItem">
<view class="itemLeft">
验证码
</view>
<input type="text" value="" placeholder="请输入验证码"/>
<!-- 条件判断显示倒计时秒数(59s) -->
<view class="codeBtn" :class="{active:sendCode}">
获取验证码
</view>
</view>
</view>
<view class="loginBtnWrap">
<navigator :url="'setNewPassword?loginType='+loginType" hover-class="none" class="loginBtn">
下一步
</navigator>
</view>
<view class="phoneWrap">
客服电话 40036-456-4454
</view>
</view>
</template>
<script>
export default{
data(){
return{
sendCode:true,
loginType:''
}
},
onLoad(option) {
// 登录类型(company:企业;user:员工)
this.loginType = option.loginType
}
}
</script>
<style lang="scss">
page{
background-color: $uni-bg-color-hui;
}
.loginTitle{
height: 120rpx;
line-height: 120rpx;
padding: 0 32rpx;
font-size: 44rpx;
color: $uni-bg-main-color;
background: $uni-bg-bai-color;
}
.formWrap{
margin-top: 30rpx;
background: $uni-bg-bai-color;
padding: 0 32rpx;
.formItem{
height: 110rpx;
border-bottom: 1rpx solid #ebedf0;
display: flex;
align-items: center;
.itemLeft{
width: 130rpx;
font-size: $uni-font-size-30;
image{width: 24rpx;height: 24rpx;margin-left: 10rpx;}
}
input{flex: 1;}
.codeBtn{
width: 148rpx;
height: 50rpx;
border: 1rpx solid #2e7ff9;
border-radius: 21rpx;
font-size: $uni-font-size-26;
color: $uni-bg-main-color;
line-height: 50rpx;
text-align: center;
}
.codeBtn.active{
border: 1rpx solid #dcdee0;
color: #dcdee0;
}
}
.formItem:nth-of-type(2){border-bottom:none;}
}
.loginBtnWrap{
padding-top: 100rpx;
display: flex;
justify-content: center;
.loginBtn{
width: 686rpx;
height: 88rpx;
background: $uni-bg-main-color;
border-radius: 96rpx;
text-align: center;
color: $uni-bg-bai-color;
line-height: 88rpx;
font-size: $uni-font-size-32;
}
}
.phoneWrap{
position: fixed;
bottom: 34rpx;
width: 750rpx;
text-align: center;
font-size: $uni-font-size-26;
color: $uni-text-color-hui;
}
</style>