forgetPassword.vue 2.4 KB
<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>