login.vue 1.54 KB
<template>
	<view>
		<view class="login-content">
			<view>
				<image class="logo" src="/static/logo.png"></image>
				<view>
					<view class="title">{{appName}}</view>
					<view class="title-msg">{{apptitle}}</view>
				</view>
			</view>
			<view class="uni-common-mt paddinglr30">
				<view class="uni-form-item uni-column">
					<input class="uni-input" type="text" v-model="username" placeholder="请输入用户名" />
				</view>
				<view class="uni-form-item uni-column">
					<input class="uni-input" password type="text" v-model="password" placeholder="请输入密码" />
				</view>
			</view>

			<view class="paddinglr30 uni-common-mt">
				<button type="primary" @click="login">登录</button>
			</view>
			<view class="uni-common-mt login-foot">
				点击”登录“,即表示你同意《商户用户协议》
			</view>	
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				appName: '江阴慧停车',
				apptitle: '江阴慧停车·智慧便捷',
				username:'',
				password:'',
			}
		},
		methods: {
			login(){
				
			}
		}
	}
</script>

<style lang="scss">
	.page {
		width: 100%;
		height: 100%;
		display: flex;
		justify-content: center;
		position: relative;

	}

	.login-content {
		background-color: #f6f6f6;
		text-align: center;
		height: 100vh;
	}

	.logo {
		height: 200upx;
		width: 200upx;
		margin-top: 200upx;
	}

	.title {
		font-size: 32upx;
		color: #000;
		font-weight: 400;
	}

	.title-msg {
		font-size: 26upx;
		color: #8d8d8d;
	}
	
	.login-foot{
		font-size: 26upx;
		
	}
</style>