123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- <template>
- <view>
-
- <view class="main">
- <view class="close">
- <u-icon name="close" size="32" color="#101010"></u-icon>
- </view>
- <view class="logo">
- <img src="../../assets/img/logo.png" alt="">
- </view>
- <view class="name">
- 荆州市地方铁路有限公司
- </view>
- <view class="login">
- <view class="login-box">
-
- <view :class="['tel',telHighlight==true?'highlight':'']" >
- <view class="icon" >
- <u-icon name="account-fill" size="40" ></u-icon>
- </view>
-
-
- <view class="line">
- </view>
- <view class="tips">
- <u-input @focus="handleTelFocus" @blur="handleTelBlur" class="telInput" type="number" placeholder="请填写系统预留手机号码" />
- </view>
- </view>
-
- <view :class="['pwd',pwdHighlight==true?'highlight':'']" >
- <view class="icon">
- <u-icon name="chat-fill" size="40"></u-icon>
- </view>
- <view class="line">
- </view>
- <view class="tips">
- <view class="input">
- <u-input @focus="handlePwdFocus" @blur="handlePwdBlur" type="number" placeholder="请输入验证码" />
- </view>
- <view class="verification-code">获取验证码</view>
- </view>
- </view>
- </view>
- </view>
-
- <view class="btn">
- <button>登录</button>
-
- </view>
- </view>
-
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- show:true,
- telHighlight:false,
- pwdHighlight:false
-
- }
- },
- methods: {
- // 帐号框聚焦失焦
- handleTelFocus(){
- this.telHighlight=true
- },
- handleTelBlur(){
- this.telHighlight=false
- },
- // 密码框聚焦失焦
- handlePwdFocus(){
- this.pwdHighlight=true
- },
- handlePwdBlur(){
- this.pwdHighlight=false
- }
-
- }
- }
- </script>
- <style lang="scss" scoped>
- page {
- background: url("../../assets/img/bgc.png");
- }
-
-
-
- .main {
- width: 100%;
- padding-top:240rpx;
- position: relative;
- .close{
- position: absolute;
- top: 24rpx;
- left: 24rpx;
- }
- .logo {
- display: flex;
- justify-content: center;
- }
- .name {
- color: rgba(16, 16, 16, 1);
- font-size: 40rpx;
- text-align: center;
- font-weight: bold;
- margin-top: 8rpx;
- font-family: 'SemiBold';
- }
- }
- .login-box {
- margin-top: 160rpx;
- .tel {
- /deep/.u-input {
- width: 400rpx;
- }
- }
-
- .line{
- width: 2rpx;
- height: 40rpx;
- background-color: #C1CCDF;
- position: absolute;
- top: 20rpx;
- left: 70rpx;
- }
-
- .tel,
- .pwd {
- position: relative;
- display: flex;
- width: 74.4%;
- height: 80rpx;
- line-height: 80rpx;
- color: rgba(183, 172, 172, 1);
- margin: auto;
- margin-bottom: 36rpx;
- border: 1px solid rgba(193, 204, 223, 1);
- border-radius: 8px;
- /deep/.u-input__input{
- font-size: 32rpx;
- }
- .icon {
- width: 14%;
- text-align: center;
- color: #B0B8C8;
- img {
- vertical-align: middle;
- }
- }
- .tips {
-
- text-indent: 16rpx;
- padding-right: 16rpx;
- display: flex;
- justify-content: space-between;
- /deep/uni-input {
- height: 80rpx !important;
- line-height: 80rpx !important;
- }
- .input {
- width: 60%;
- }
- }
- // 验证码
- .verification-code {
- color: #1F4A99;
- line-height: 80rpx;
- font-family: 'Regular';
- }
- }
- // 高亮
- .highlight {
- border: 1px solid rgba(31, 74, 153, 1);
- box-shadow: 0px 0px 8rpx 0px rgba(0, 90, 217, 50);
- /deep/.u-input__input{
- color: rgba(0, 90, 217, 1);
- }
- .icon{
- color: #1F4A99;
- }
- .line{
- background-color: #005AD9;
- }
- }
-
- }
- .btn{
- width: 100%;
- margin-top: 120rpx;
-
- uni-button{
- margin:0 96rpx;
- height: 80rpx;
- border-radius: 8px;
- background-color: rgba(31, 74, 153, 1);
- color: rgba(255, 255, 255, 1);
- font-size: 16px;
- }
- }
- </style>
|