7天毕设速成8小程序登录界面

1.登录注册页面预览

2.登录注册页面源码

登录、注册页面源码

<template>
	<view class="container">
		<view class="logo">
			<view>
				<image class="logoitem" src="../../static/images/logo.jpg"
				 mode=""></image>
			</view>
			<view class="logo-text">欢迎登录XXX系统</view>
			
		</view>
		<view class="login_item">
			<u-tabs :list="list" :is-scroll="false" :current="current" @change="change">
			</u-tabs>
			<view class="login margin-b80" v-if="!current">
				<view class="input vs-row vs-align-center margin-b40">
					<image class="input-icon margin-r20" src="../../static/images/用户.png"
					 mode=""></image>
					<input class="vs-flex-item color-base font-30" type="text" value="" :maxlength="11" placeholder="请输入您的手机号/邮箱"
					 placeholder-class="input-placeholder" />
				</view>
				<view class="input vs-row vs-align-center margin-b40">
					<image class="input-icon margin-r20" src="../../static/images/password.png"
					 mode=""></image>
					<input class="vs-flex-item color-base font-30" type="text" password value="" placeholder="请输入您的登录密码"
					 placeholder-class="input-placeholder" />
				</view>
				<view class="button bg-color-base vs-row vs-align-center vs-space-center margin-b40">
					<text class="color-white font-34">立即登录</text>
				</view>
			</view>
			
			<view class="register margin-b80" v-if="current">
				<view class="input vs-row vs-align-center margin-b40">
					<image class="input-icon margin-r20" src="../../static/images/用户.png"
					 mode=""></image>
					<input class="vs-flex-item color-base font-30" type="text" value="" :maxlength="11" placeholder="请输入您的手机号/邮箱"
					 placeholder-class="input-placeholder" />
				</view>
				<view class="input vs-row vs-align-center margin-b40">
					<image class="input-icon margin-r20" src="../../static/images/password.png"
					 mode=""></image>
					<input class="vs-flex-item color-base font-30" type="text" password value="" placeholder="请输入您的登录密码"
					 placeholder-class="input-placeholder" />
				</view>
				<view class="input vs-row vs-align-center margin-b40">
					<image class="input-icon margin-r20" src="../../static/images/password.png"
					 mode=""></image>
					<input class="vs-flex-item color-base font-30" type="text" password value="" placeholder="请再次输入您的登录密码"
					 placeholder-class="input-placeholder" />
				</view>
				<view class="button bg-color-base vs-row vs-align-center vs-space-center margin-b80">
					<text class="color-white font-34">立即注册</text>
				</view>
				
			</view>
			
			<!-- <view class="vs-row vs-align-center vs-space-center margin-b100">
				<text class="color-base font-28">忘记密码?</text>
			</view> -->
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
					name: '登录'
				}, {
					name: '注册'
				}],
				current: 0,
				value: '',
				type: 'text',
				border: true
			}
		},
		methods: {
			change(index) {
				this.current = index;
			}
		}
	}
</script>

<style lang="scss">
	page{
		background-color:#5064eb;
	}
	.container{padding: 300rpx 30rpx 0 30rpx;}
	.login_item{
		background-color: #ffffff;
		border-radius: 20rpx;
		padding: 30rpx;
		position: relative;
		left: 50%;
		transform: translate(-50%,-50%);
	}
	.login,
	.register {
		padding: 0 60rpx;
	}
	
	.logoitem{
		border-radius: 50%;
		width: 100px;
		height: 100px;
	}
	
	.logo{
		margin-top: -110px;
		margin-bottom: 100px;
		height: 230px;
		text-align: center;
	}
	
	.logo-text{
		color: #ffffff;
		font-size: 19px;
		margin-top: 10px;
	}
	.input {
		width: 580rpx;
		height: 90rpx;
		padding: 0 30rpx;
		background-color: rgba(80, 100, 235, 0.1);
		border-radius: 100rpx;
	
		&-icon {
			width: 40rpx;
			height: 38rpx;
		}
	
		&-placeholder {
			color: #5064eb;
		}
	}
.button {
		width: 580rpx;
		height: 90rpx;
		// margin-left: 60rpx;
		border-radius: 100rpx;
	}
// 下边距
	.margin-b5 {
		margin-bottom: 5rpx;
	}
	
	.margin-b10 {
		margin-bottom: 10rpx;
	}
	
	.margin-b15 {
		margin-bottom: 15rpx;
	}
	
	.margin-b20 {
		margin-bottom: 20rpx;
	}
	
	.margin-b25 {
		margin-bottom: 25rpx;
	}
	
	.margin-b30 {
		margin-bottom: 30rpx;
	}
	
	.margin-b40 {
		margin-bottom: 40rpx;
	}
	
	.margin-b60 {
		margin-bottom: 60rpx;
	}
	
	.margin-b80 {
		margin-bottom: 80rpx;
	}
	
	.margin-b100 {
		margin-bottom: 100rpx;
	}
	
	// 右边距
	.margin-r5 {
		margin-right: 5rpx;
	}
	
	.margin-r10 {
		margin-right: 10rpx;
	}
	
	.margin-r15 {
		margin-right: 15rpx;
	}
	
	.margin-r20 {
		margin-right: 20rpx;
	}
	
	.margin-r25 {
		margin-right: 25rpx;
	}
	
	.margin-r30 {
		margin-right: 30rpx;
	}
	
	.margin-r40 {
		margin-right: 40rpx;
	}
	
	.margin-r60 {
		margin-right: 60rpx;
	}
	
	// 字体大小
	.font-18 {
		font-style: normal;
		font-size: 18rpx;
		font-family: Droid Sans Fallback;
	}
	
	.font-20 {
		font-style: normal;
		font-size: 20rpx;
		font-family: Droid Sans Fallback;
	}
	
	.font-22 {
		font-style: normal;
		font-size: 22rpx;
		font-family: Droid Sans Fallback;
	}
	
	.font-24 {
		font-style: normal;
		font-size: 24rpx;
		font-family: Droid Sans Fallback;
	}
	
	.font-26 {
		font-style: normal;
		font-size: 26rpx;
		font-family: Droid Sans Fallback;
	}
	
	.font-28 {
		font-style: normal;
		font-size: 28rpx;
		font-family: Droid Sans Fallback;
	}
	
	.font-30 {
		font-style: normal;
		font-size: 30rpx;
		font-family: Droid Sans Fallback;
	}
	
	.font-32 {
		font-style: normal;
		font-size: 32rpx;
		font-family: Droid Sans Fallback;
	}
	
	.font-34 {
		font-style: normal;
		font-size: 34rpx;
		font-family: Droid Sans Fallback;
	}
	
	.font-36 {
		font-style: normal;
		font-size: 36rpx;
		font-family: Droid Sans Fallback;
	}
	
	.font-38 {
		font-style: normal;
		font-size: 38rpx;
		font-family: Droid Sans Fallback;
	}
	
	.font-40 {
		font-style: normal;
		font-size: 40rpx;
		font-family: Droid Sans Fallback;
	}
	
	.font-46 {
		font-style: normal;
		font-size: 46rpx;
		font-family: Droid Sans Fallback;
	}
	
	.font-50 {
		font-style: normal;
		font-size: 50rpx;
		font-family: Droid Sans Fallback;
	}
	
	.font-60 {
		font-style: normal;
		font-size: 60rpx;
		font-family: Droid Sans Fallback;
	}
	
	.font-80 {
		font-style: normal;
		font-size: 80rpx;
		font-family: Droid Sans Fallback;
	}
	
	// 字体对齐
	.text-left {
		text-align: left;
	}
	
	.text-center {
		text-align: center;
	}
	
	.text-right {
		text-align: right;
	}
	
	// color相关
	.color-white {
		color: #FFFFFF;
	}
	
	.color-red {
		color: #dc0000;
	}
	
	// 黑色色阶向下
	.color-black {
		color: #000;
	}
	
	.color-black-3 {
		color: #333;
	}
	
	.color-black-6 {
		color: #666;
	}
	
	.color-black-9 {
		color: #999;
	}
	
	// 字体宽度
	.font-weight-400 {
		font-weight: 400;
	}
	
	.font-weight-500 {
		font-weight: bold;
	}
	
	// 间隔
	.spacing-20 {
		width: 750rpx;
		height: 20rpx;
		background-color: #f8f8f8;
	}
	
	// 圆角
	.radius-10 {
		border-radius: 10rpx;
	}
	
	.radius-20 {
		border-radius: 20rpx;
	}
	
	.radius-30 {
		border-radius: 30rpx;
	}
	
	.radius-circle {
		border-radius: 50%;
	}
	
	.radius-height {
		border-radius: 10000px;
	}
	
	// flex相关
	.vs-flex-item {
		flex: 1;
	}
	
	.vs-space-between {
		justify-content: space-between;
	}
	
	.vs-space-around {
		justify-content: space-around;
	}
	
	.vs-space-center {
		justify-content: center;
	}
	
	.vs-space-end {
		justify-content: flex-end;
	}
	
	.vs-row {
		flex-direction: row;
	}
	
	.vs-column {
		flex-direction: column;
	}
	
	.vs-align-end {
		align-items: flex-end;
	}
	
	.vs-align-center {
		display: flex;
		align-items: center;
	}
	
	.vs-align-start {
		align-items: flex-start;
	}
	
	.vs-item-hover {
		background-color: rgba(0, 0, 0, 0.05);
	}
	
	.vs-btn-hover {
		opacity: 0.8;
	}
	
	.color-base {
		color: #5064eb;
	}
	
	.bg-color-base {
		background-color: #5064eb;
	}
</style>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

软件编程工程师

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值