<template>
	<view class="page">
		<image src="https://api.ccttiot.com/smartmeter/img/static/usgI7U9TVKyLc2LJUCIV" mode="" class="bjimg"></image>
       <view class="name">
       	   欢迎来到
       </view>
	   <view class="name">
	   	  创特智慧封箱
	   </view>
	   <view class="tab">
	   	   <view @click="btn(1)" :class="indextab == 1 ? 'active' : ''">验证码登录 <view :class="indextab == 1 ? 'actives' : ''"></view> </view>
		   <view @click="btn(2)" :class="indextab == 2 ? 'active' : ''">密码登录 <view :class="indextab == 2 ? 'actives' : ''"></view> </view>
	   </view>
	   <!-- 验证码 -->
	  <view class="yzm">
	  	<view class="tel">
	  		  <input type="text" placeholder="手机号"/>
	  	</view>
		<view class="telyzm">
			  <input type="text" placeholder="验证码"/> 
			  <view class="huoquyzm">
			  	 获取验证码
			  </view>
		</view>
	  </view>
	  <!-- 密码登录-->
	  <view class="ljdl">
	  	  立即登录
	  </view>
	  
	  <view class="qita">
	  	——————  其他登录方式 ——————
	  </view>
	  <view class="shouquan">
	  	 <image src="https://api.ccttiot.com/smartmeter/img/static/ueYnGOxy812cY5hWLMfe" mode=""></image>
	  </view>
	   
	</view>
</template>

<script>
	export default {
		data() {
			return {
				bgc: {
					backgroundColor: "",
				},
				indextab:1
			}
		},
		methods: {
             // 切换高亮
			 btn(num){
				 this.indextab = num
			 }
		}
	}
</script>

<style lang="scss">
	.active{
		font-size: 36rpx;
		color: #3D3D3D;
		font-weight: 600;
	}
	.actives{
		display: block !important;
	}
	page{
		padding-top: 224rpx;
		box-sizing: border-box;
		padding-left: 54rpx;
		padding-right: 54rpx;
		.shouquan{
			position: fixed;
			left: 50%;
			transform: translateX(-50%);
			bottom: 132rpx;
			image{
				width: 64rpx;
				height: 64rpx;
			}
		}
		.qita{
			width: 100%;
			position: fixed;
			left: 50%;
			transform: translateX(-50%);
			bottom: 226rpx;
			text-align: center;
			font-size: 32rpx;
			color: #808080;
			position: fixed;
			left: 50%;
			transform: translateX(-50%);
			bottom: 226rpx;
		}
		.ljdl{
			width: 650rpx;
			height: 108rpx;
			background: linear-gradient( 90deg, #FFCF3E 0%, #FFB300 100%), #FFFFFF;
			border-radius: 20rpx 20rpx 20rpx 20rpx;
			text-align: center;
			line-height: 108rpx;
			font-size: 36rpx;
			color: #FFFFFF;
			margin-top: 120rpx;
			width: 100%;
			margin: auto;
			margin-top: 226rpx;
		}
		.yzm{
			.tel{
				width: 650rpx;
				height: 108rpx;
				background: #FFFFFF;
				border-radius: 20rpx 20rpx 20rpx 20rpx;
				margin-top: 70rpx;
				line-height: 108rpx;
				padding-left: 38rpx;
				padding-right: 38rpx;
				box-sizing: border-box;
				input{
					width: 100%;
					height: 108rpx;
					line-height: 108rpx;
				}
			}
			.telyzm{
				width: 650rpx;
				height: 108rpx;
				background: #FFFFFF;
				border-radius: 20rpx 20rpx 20rpx 20rpx;
				margin-top: 70rpx;
				line-height: 108rpx;
				padding-left: 38rpx;
				padding-right: 38rpx;
				box-sizing: border-box;
				display: flex;
				justify-content: space-between;
				.huoquyzm{
					font-size: 32rpx;
					color: #FFBF00;
				}
				input{
					height: 108rpx;
					line-height: 108rpx;
				}
			}
		}
		.name{
			font-size: 44rpx;
			color: #3D3D3D;
			font-weight: 600;
		}
		.tab{
			margin-top: 80rpx;
			display: flex;
			view{
				font-size: 36rpx;
				color: #50565A;
				margin-right: 78rpx;
				position: relative;
				text-align: center;
				view{
				   width: 88rpx;
				   height: 16rpx;
				   background: #FFCC25;
				   border-radius: 13rpx 13rpx 13rpx 13rpx;
				   position: absolute;
				   left: 50%;
				   transform: translateX(-50%);
				   bottom: -2;
				   z-index: -1;
				   display: none;
				}
			}
		}
	}
	.bjimg{
		width: 100%;
		height: 100vh;
		position: fixed;
		top: 0;
		left: 0;
		z-index: -1;
	}

</style>
