main
whb
parent 8af2505255
commit f078503ecf

@ -345,7 +345,6 @@
// alert("取消")
}
});
layui.use(['form'], function() {
var form = layui.form;
$.ajax({
@ -372,18 +371,6 @@
}
});
});
layui.use('carousel', function(){
var carousel = layui.carousel;
//建造实例
carousel.render({
elem: '#test1'
,width: '15%' //设置容器宽度
,arrow: 'always' //始终显示箭头
//,anim: 'updown' //切换动画方式
});
});
}
</script>
<script type="text/html" id="addForm1">

@ -0,0 +1,92 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
* {
margin: 0;
padding: 0;
}
html {
height: 100%;
}
body {
height: 100%;
}
.container {
height: 100%;
background-image: linear-gradient(to right, #E0E0E0, #A3A3A3);
}
.login-wrapper {
background-color: white;
width: 358px;
height: 588px;
border-radius: 15px;
padding: 0 50px;
position: relative;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
}
.header {
font-size: 38px;
font-weight: bold;
text-align: center;
line-height: 200px;
}
.input-item {
display: block;
width: 100%;
margin-bottom: 20px;
border: 0;
padding: 10px;
border-bottom: 1px solid rgb(128,125,125);
font-size: 15px;
outline: none;
}
.input-item::placeholder {
text-transform: uppercase;
}
.btn {
text-align: center;
padding: 10px;
width: 100%;
margin-top: 40px;
background-image: linear-gradient(to right,#a6c1ee, #fbc2eb);
color: #fff;
cursor: pointer;
}
.msg {
text-align: center;
line-height: 88px;
}
a {
text-decoration-line: none;
color: #3580BB;
}
</style>
</head>
<body>
<div class="container">
<div class="login-wrapper">
<div class="header">用户登录</div>
<div class="form-wrapper">
<form action="http://localhost:8080/user/login" method="post">
<input type="text" name="username" placeholder="username" class="input-item">
<input type="password" name="password" placeholder="password" class="input-item">
<div><input class="btn" style="border:none;" type="submit" value="登录"></div>
</form>
</div>
<div class="msg">
Don't have account?
<a href="">Sign up</a>
</div>
</div>
</div>
</body>
</html>
Loading…
Cancel
Save