吐血整理的几十款小程序登陆界面【附完整代码】(二)

本文涉及的产品
应用实时监控服务-用户体验监控,每月100OCU免费额度
应用实时监控服务-应用监控,每月50GB免费额度
简介: 吐血整理的几十款小程序登陆界面【附完整代码】(二)

二、纯登陆功能

2.1 卡通类型

2.1.1 样式一

2-1-1 效果图

47fff2edf9e74056b60404769f128d56.gif


2-1-1 完整代码
<template>
  <view class="content">
    <view class="logo">
      <image src="https://6e69-niew6-1302638010.tcb.qcloud.la/%E8%83%8C%E6%99%AF/logo.png?sign=5d11ed914e4c29acd6ef9ddd7671a5c7&t=1615006414"
       mode="widthFix"></image>
    </view>
    <view class="login-form">
      <view class="item">
        <view class="icon left">
          <image src="https://6e69-niew6-1302638010.tcb.qcloud.la/denglu/account.png?sign=f21501c858525ade84a4a93a8edcabc1&t=1597715417"
           mode="widthFix"></image>
        </view>
        <input type="text" v-model="account" placeholder="请输入账号" maxlength="20" placeholder-class="input-placeholder" />
      </view>
      <view class="item">
        <view class="icon left">
          <image src="https://6e69-niew6-1302638010.tcb.qcloud.la/denglu/password.png?sign=75c81d1e4948d454b7bdac0a49e387f5&t=1597715443"
           mode="widthFix"></image>
        </view>
        <input type="text" v-model="password" placeholder="请输入密码" maxlength="20" placeholder-class="input-placeholder"
         :password="passwordShow" />
        <view class="icon right">
          <image v-if="passwordShow" src="https://6e69-niew6-1302638010.tcb.qcloud.la/denglu/hide-password.png?sign=6ca6b422427dfa98097ff9009e0121d3&t=1597715458"
           mode="widthFix" @click="passwordStatus"></image>
          <image v-else src="https://6e69-niew6-1302638010.tcb.qcloud.la/denglu/show-password.png?sign=57e79fa5ecc90b1a2dab421361361b9f&t=1597715470"
           mode="widthFix" @click="passwordStatus"></image>
        </view>
      </view>
      <view class="btn" @click="loginClick">
        <text>登录</text>
      </view>
    </view>
  </view>
</template>
<script>
  export default {
    data() {
      return {
        account: '',
        password: '',
        passwordShow: true,
      }
    },
    onLoad() {},
    methods: {
      //登录点击
      loginClick() {
        console.log("登录点击")
      },
      //密码状态 隐藏/显示
      passwordStatus() {
        this.isPassword = !this.isPassword
        this.passwordShow = !this.passwordShow
      }
    }
  }
</script>
<style lang="scss">
  page {
    background-color: #3e71dd;
  }
  .content {
    position: absolute;
    width: 100%;
  }
  .logo {
    text-align: center;
    margin: 150rpx auto 150rpx auto;
    image {
      width: 500rpx;
      height: 250rpx;
    }
  }
  .login-form {
    width: 550rpx;
    margin: auto;
    .item {
      width: 550rpx;
      height: 80rpx;
      border-radius: 10rpx;
      margin-bottom: 30rpx;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      background-color: #4781e2;
    }
    input {
      color: #fff;
      width: 350rpx;
      height: 80rpx;
      line-height: 80rpx;
      font-size: 28rpx;
    }
    text {
      height: 30rpx;
      font-family: PingFang-SC-Regular;
      font-size: 30rpx;
      font-weight: bold;
      font-stretch: normal;
      line-height: 40rpx;
      letter-spacing: 3rpx;
      color: #ffffff;
    }
    .icon {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100rpx;
      image {
        width: 40rpx;
        height: 40rpx;
      }
    }
    .btn {
      margin: 43rpx auto 22rpx auto;
      text-align: center;
      height: 80rpx;
      line-height: 84rpx;
      border-radius: 6rpx;
      background-color: #6ea0f8;
    }
  }
  .input-placeholder {
    color: #fff;
    line-height: 80rpx;
    height: 80rpx;
    font-size: 28rpx;
    margin: auto;
  }
</style>


2.1.2 样式二

2-1-2 效果图

596e8456f8f64a768b0219f8928fd233.gif


2-1-2 完整代码
<template>
  <view>
    <view class="login-img">
      <view class="owl-login" :class="hideEyes?'password':''">
        <view class="hand"></view>
        <view class="hand hand-r"></view>
        <view class="arms">
          <view class="arm"></view>
          <view class="arm arm-r"></view>
        </view>
      </view>
    </view>
    <view class="login-form">
      <form @submit="formSubmit">
        <view class="form-input">
          <input type="text" value="" placeholder="用户名" />
        </view>
        <view class="form-input">
          <input type="password" value="" placeholder="密码" @focus="passwordF_B" @blur="passwordF_B" />
        </view>
        <button type="primary" form-type="submit">登录</button>
      </form>
    </view>
    <view class="comm-content">
      <soure :url="url" />
    </view>
  </view>
</template>
<script>
  export default {
    data() {
      return {
        hideEyes: false,
        url: 'https://ext.dcloud.net.cn/plugin?id=1160'
      }
    },
    methods: {
      passwordF_B() {
        this.hideEyes = !this.hideEyes;
      },
      formSubmit(e) {
        console.log(e.detail.value);
      },
      copy() {
        uni.setClipboardData({
          data: this.source
        });
      }
    }
  }
</script>
<style>
  .login-form {
    margin: -9px 10px 0 10px;
    height: 200px;
    background: #007AFF;
    border-radius: 10px;
    background-color: #EEEEEE;
    box-shadow: 0 2px 10px #9B9B9B;
    padding: 20px;
  }
  .form-input input {
    background: #ffffff;
    border-radius: 5px;
    height: 40px;
    margin: 20px 0;
    padding: 0 10px;
  }
  .login-img {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 108px;
    margin-top: 150rpx;
  }
  .owl-login {
    width: 211px;
    height: 108px;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAaYAAADYCAMAAACX8Lc0AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAMAUExURQAAAHhROYBWPXpSOpRkR4teQ3NNN3lSOpZlSH9VPHFMNpBhRY1fQ5BhRYxeQ2hGMpVkR4VZP3pSOmxJNJJiRnRON5NjRpBhRV9ALXVPOHpSOnVPOIZaQF8/LW9KNWFALpRkR3ZPOIZaQG9LNV9ALlo8K5VkR31UO1U5KE41JYxeQ3VPOEkyI1U6KU0zJWBALkArHv///93d3BoWG3dQOZVkR5RkR0syJEYvIk0zJZJiRpBhRXhROUkxI3lSOnZQOXZPOHpSOkQuIUEsH0UuIUcwIoRZP1o8K4dbQZNjRoxeQ5FiRopdQntTO0gwI31UPIFXPo1fRIhcQYZaQHhROnZQOIVaQEwzJDYlGl8/LfzHA1I3J5NjRzUkGl4+LT8rH0oxIzgmG4BWPYNYP0MtIFQ4KIJYPlA1Jo9gRIteQ1c6KU40JU81Jj4qHnVPOEoyJDknHH9WPTsoHI5gRGA/LVw9LJRjR0gw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+MP/Ipz+e6Jz7leW/8hU95PjGM+IRPeb7UPfEpz7vj3/iU5zvDCD7l+cIsl095PjDL/Z5PeT7RPfEpjw8++OCDDz4ebfw/69Hcv7hil4YAAAAASUVORK5CYII=');
    background-repeat: no-repeat;
    background-size: 100%;
    position: absolute;
  }
  .owl-login .hand {
    width: 34px;
    height: 34px;
    -webkit-border-radius: 40px;
    border-radius: 40px;
    background-color: #472d20;
    transform: scaleY(0.6);
    transition: 0.3s ease-out;
    position: absolute;
    left: 14px;
    bottom: -8px;
  }
  .owl-login .hand.hand-r {
    left: 170px;
  }
  .owl-login .arms {
    top: 58px;
    position: absolute;
    width: 100%;
    height: 41px;
    overflow: hidden;
  }
  .owl-login .arms .arm {
    width: 40px;
    height: 65px;
    position: absolute;
    left: 20px;
    top: 40px;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAACCCAMAAADmOb+7AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAMAUExURQAAAE40JVc6KV8/LVQ4KFs8K1I2J1k7KkkxI1I2J2A/LUUuIVI2Jz4qHlo8KkgwIkgwIkIsIEoxI0gwIkgwImA/LUkxI109LGA/LV8/LU40JVE2Jls8K1I3J1s8KzooHFw9LFo7Klo7KzYlGjclG0UuIUwzJUkxI0kwIkkxI040JWA/LVc5KWFALlg6KjknHGE/LTsoHVE1Jl4+LT8rHkIsIDsoHUQtIFw9LFU4KGA/LVk7Kl09LFs8KzonHDknHDkmGzgmGzgmGzYlGjYlGkkxI00zJUgwIlE2JlA1JkYvIjooHEYvIUcvIkgwIkcwIkoyI1A2JkMtIFQ3KEgwIlA1JkgxI2BALlI3J1c5KVw8K2BALlY5KTonHFs8KzonHFk7Kj4qHlI2J2A/LVE2J18/LVA1JkArH1E2J0cvIlw9LFw9K1w9LEArH1w9LF09LDwoHTgmGzcmGzcmG0gwI2A/LVI3J080JksyJEkxI1I3J0MtIFk7KkQuIUgwI0kxI1Y5KWA/LUcwIjknHEwz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K5mhEuAB4+WlJTUj7MVYlcBS67Wv2Xb9cThV3QFYH1v20X82WXAM1OZJxu/AUsAd7PAMxttgT/iN2AFYM3rzHPjMmDNWObtOnYDRoC5KLAmkXm0V+IWTHZakAReX8HON5gNmAVeRIEHOaBlGdvaXQSssUSxXxBgNmAEeAQFXrdEsxPOIhLgZRR4zQ601LCBz2M1YGWg5QL7fjwCq6IrA29c4FaDOVgFUxnYvJVbBjAquhTwKA/YHM99L/u2a4DN27iFZalyRUeAdRDQut3+XSpWwVQEWqfaX1al4NYjWaC1n30xdXMJ0PqS4zvqFDLgYRRooYHWSMd6P0+5AcsCb9BAayLvld8kFwAbE3gdZxZWf7siWjv5wMZkfmt6xXlgY5Tg/c1CJ4Bs4JeCphhKDrwqBDYmCbtnT+UGLA9sbPEVHiCYpFDRc4HFnQ9saUHqsdcgwv6GAm9uRRr8rMeVKro88GY8uieYPIEEWI8C/9sm2ra4kdUjBtjMAVu3i3dWcyc4AWz9Ddj8zXtZPbC1H7Q/XR+I2YDPiICtv4N78oFPqAV2REqcGAlSCexIlDrx4BaoCtiRIHmGwmeAcgMWAzuSZc6NBPuTAzv+lD2KMn0iKbDjD4WTbdP9ZSo6CqQDkxQPzASPJAHeuoVxSs/n3Wfhis4CrTzgrV/wzvV03bjWLK7oKPD7yN5b8I+rua/fOPIHqH3QwKTksb+O89GQf3xG9B4+9oO1q6J37tx53yfRUctWfBbZb/u4LfwL9z/NooN/RF/zlAAAAABJRU5ErkJggg==");
    background-size: 100%;
    transition: 0.3s ease-out;
    transform: rotate(-20deg);
  }
  .owl-login .arms .arm.arm-r {
    transform: rotate(20deg) scaleX(-1);
    left: 158px;
  }
  .owl-login.password .hand {
    transform: translateX(42px) translateY(-15px) scale(0.7);
  }
  .owl-login.password .hand.hand-r {
    transform: translateX(-42px) translateY(-15px) scale(0.7);
  }
  .owl-login.password .arms .arm {
    transform: translateY(-40px) translateX(40px);
  }
  .owl-login.password .arms .arm.arm-r {
    transform: translateY(-40px) translateX(-40px) scaleX(-1);
  }
</style>


2.1.3 样式三

2-1-3 效果图

cf5fb8d2cae64cb5aa16a3ab938d373b.png


2-1-3 完整代码
<template>
  <view class="login">
    <view class="content">
      <view class="logo">
        <image src="https://6e69-niew6-1302638010.tcb.qcloud.la/%E8%83%8C%E6%99%AF/logo.png?sign=5d11ed914e4c29acd6ef9ddd7671a5c7&t=1615006414"
         mode="widthFix"></image>
      </view>
      <view class="login-form">
        <view class="item">
          <view class="icon left">
            <image src="https://6e69-niew6-1302638010.tcb.qcloud.la/denglu/account.png?sign=f21501c858525ade84a4a93a8edcabc1&t=1597715417"
             mode="widthFix"></image>
          </view>
          <input type="text" v-model="account" placeholder="请输入账号" maxlength="20" placeholder-class="input-placeholder" />
        </view>
        <view class="item">
          <view class="icon left">
            <image src="https://6e69-niew6-1302638010.tcb.qcloud.la/denglu/password.png?sign=75c81d1e4948d454b7bdac0a49e387f5&t=1597715443"
             mode="widthFix"></image>
          </view>
          <input type="text" v-model="password" placeholder="请输入密码" maxlength="20" placeholder-class="input-placeholder"
           :password="passwordShow" />
          <view class="icon right">
            <image v-if="passwordShow" src="https://6e69-niew6-1302638010.tcb.qcloud.la/denglu/hide-password.png?sign=6ca6b422427dfa98097ff9009e0121d3&t=1597715458"
             mode="widthFix" @click="passwordStatus"></image>
            <image v-else src="https://6e69-niew6-1302638010.tcb.qcloud.la/denglu/show-password.png?sign=57e79fa5ecc90b1a2dab421361361b9f&t=1597715470"
             mode="widthFix" @click="passwordStatus"></image>
          </view>
        </view>
        <view class="btn" @click="loginClick">
          <text>登 录</text>
        </view>
      </view>
    </view>
  </view>
</template>
<script>
  export default {
    data() {
      return {
        account: '',
        password: '',
        passwordShow: true,
      }
    },
    onLoad() {
    },
    methods: {
      //登录点击
      loginClick() {
        console.log("登录点击")
      },
      //密码状态 隐藏/显示
      passwordStatus() {
        this.isPassword = !this.isPassword
        this.passwordShow = !this.passwordShow
      }
    }
  }
</script>
<style lang="scss">
  page {
    background-color: #8da4cd;
  }
  .content {
    position: absolute;
    top: 0;
    width: 100%;
  }
  .logo {
    text-align: center;
    margin: 150rpx auto 150rpx auto;
    image {
      width: 500rpx;
      height: 250rpx;
    }
  }
  .login-form {
    width: 550rpx;
    margin: auto;
    .item {
      width: 550rpx;
      height: 80rpx;
      border-radius: 50rpx;
      margin-bottom: 30rpx;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      background-color: #849bc4;
      border: 1rpx solid #efefef;
    }
    input {
      color: #fff;
      width: 350rpx;
      height: 80rpx;
      line-height: 80rpx;
      font-size: 28rpx;
    }
    text {
      height: 30rpx;
      font-family: PingFang-SC-Regular;
      font-size: 30rpx;
      font-weight: bold;
      font-stretch: normal;
      line-height: 40rpx;
      letter-spacing: 3rpx;
      color: #ffffff;
    }
    .icon {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100rpx;
      image {
        width: 40rpx;
        height: 40rpx;
      }
    }
    .btn {
      margin: 43rpx auto 22rpx auto;
      text-align: center;
      height: 80rpx;
      line-height: 84rpx;
      border-radius: 50rpx;
      background-color: #667eac;
      color: #FFFFFF;
    }
  }
  .input-placeholder {
    color: #fff;
    line-height: 80rpx;
    height: 80rpx;
    font-size: 28rpx;
    margin: auto;
  }
</style>


2.1.4 样式四

2-1-4 效果图

4374950ab4934d00b96ca33c7e792d30.gif


2-1-4 完整代码
<template>
  <view class="content">
    <view class="loader"></view>
    <view class="logoimg">
      <image class="logo" src="/static/other/3.png"></image>
    </view>
    <input type="text" placeholder="账号" class="inputAcc" value="" />
    <input type="password" placeholder="密码" class="input" value="" />
    <button class="loginBtn">Go</button>
    <view style="position: absolute;bottom: -50rpx;">
      <soure :url="url"></soure>
    </view>
  </view>
</template>
<script>
  export default {
    data() {
      return {
        url: 'https://ext.dcloud.net.cn/plugin?id=2508'
      }
    },
    onLoad() {},
    methods: {}
  }
</script>
<style>
  page {
    background-color: #000000;
  }
  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .input {
    margin: 20% 0rem;
    position: absolute;
    top: 600rpx;
    height: 70upx;
    width: 50%;
    color: #FFFFFF;
    text-align: center;
    border-bottom: 1px #007AFF solid;
    border-radius: 10upx;
  }
  .inputAcc {
    margin: 20% 0rem;
    position: absolute;
    top: 470rpx;
    height: 70upx;
    width: 50%;
    color: #FFFFFF;
    text-align: center;
    border-bottom: 1px #007AFF solid;
    border-radius: 10upx;
  }
  .loginBtn {
    background: linear-gradient(to right, #4bb0ff, #6149f6);
    border-radius: 200rpx;
    width: 200rpx;
    position: absolute;
    color: white;
    bottom: 150rpx;
  }
  .logoimg {
    position: absolute;
    top: 155rpx;
    z-index: 10;
  }
  .logo {
    height: 200rpx;
    width: 200rpx;
    border-radius: 100rpx;
  }
  .loader {
    z-index: 1;
    position: absolute;
    top: 130rpx;
    width: 250rpx;
    height: 250rpx;
    border-radius: 50%;
    background: linear-gradient(#f07e6e, #84cdfa, #5ad1cd);
    animation: animate 1.2s linear infinite;
  }
  @keyframes animate {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  .loader:after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: #f1f1f1;
    border: solid white 10px;
    border-radius: 50%;
  }
</style>


2.1.5 样式五

2-1-5 效果图
2-1-5 完整代码

2.1.6 样式六

2-1-6 效果图
2-1-6 完整代码
相关实践学习
通过云拨测对指定服务器进行Ping/DNS监测
本实验将通过云拨测对指定服务器进行Ping/DNS监测,评估网站服务质量和用户体验。
相关文章
|
2月前
|
开发框架 小程序 JavaScript
小程序代码丢失!反编译找回
小程序源代码的容易获取问题确实存在一些潜在的安全隐患。然而,现在的小程序开发框架采用像 Babel 这样的打包工具,将 JavaScript 逻辑代码混合在一个文件中并进行转编译,使其变得难以理解。
56 0
小程序代码丢失!反编译找回
|
7月前
|
JavaScript Java 测试技术
基于小程序的移动学习平台+springboot+vue.js附带文章和源代码说明文档ppt
基于小程序的移动学习平台+springboot+vue.js附带文章和源代码说明文档ppt
54 0
|
3月前
|
小程序 JavaScript Go
代码总有一个是你想要的分享63个微信小程序源
分享63个微信小程序源代码,包括电商系统、同城拼车、博客等多种应用,涵盖C#、Node.js、Golang等技术栈。每个项目附带源码和示例,适合初学者和开发者参考学习。提取码:8888,代码效果参考:http://www.603393.com/sitemap.xml。
89 2
|
4月前
|
小程序 前端开发 JavaScript
微信小程序实现微信支付(代码和注释很详细)
微信小程序实现微信支付(代码和注释很详细)
|
4月前
|
小程序 JavaScript 前端开发
微信小程序开发必备前置知识:基本代码构成与语法
【8月更文挑战第8天】微信小程序的基本代码构成与语法
122 0
微信小程序开发必备前置知识:基本代码构成与语法
|
4月前
|
小程序 JavaScript 安全
微信小程序实现云闪付支付(代码和注释很详细)
微信小程序实现云闪付支付(代码和注释很详细)
|
6月前
|
XML 小程序 Java
java小程序代码详细展示
java小程序代码详细展示
44 0
|
7月前
|
JavaScript Java 测试技术
基于小程序的汽车保养系统+springboot+vue.js附带文章和源代码说明文档ppt
基于小程序的汽车保养系统+springboot+vue.js附带文章和源代码说明文档ppt
41 0
|
7月前
|
JavaScript Java 测试技术
基于小程序的童装商城+springboot+vue.js附带文章和源代码说明文档ppt
基于小程序的童装商城+springboot+vue.js附带文章和源代码说明文档ppt
44 0
|
7月前
|
JavaScript Java 测试技术
基于小程序的个人行政复议在线预约系统+springboot+vue.js附带文章和源代码说明文档ppt
基于小程序的个人行政复议在线预约系统+springboot+vue.js附带文章和源代码说明文档ppt
43 0

热门文章

最新文章