|
|
@@ -1,5 +1,6 @@
|
|
|
<!DOCTYPE html>
|
|
|
<html>
|
|
|
+
|
|
|
<head>
|
|
|
<meta charset="utf-8">
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
@@ -20,30 +21,39 @@
|
|
|
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
|
<![endif]-->
|
|
|
</head>
|
|
|
+
|
|
|
<body class="hold-transition login-page" style="width: 100vw;text-align: right;padding-right: 226px;">
|
|
|
-<div class="login-box" id="rrapp" v-cloak style="background-color: #ffffff;padding: 90px 70px;border-radius: 10px;width: 524px;margin: 10% auto;display: inline-block;text-align: left;">
|
|
|
- <div class="login-logo" style="margin-bottom: 0;">
|
|
|
- <b style="color: #333">青雲慧运营平台</b>
|
|
|
- </div>
|
|
|
- <!-- /.login-logo -->
|
|
|
- <div class="login-box-body" style="background: rgba(0,0,0,0)">
|
|
|
+ <div class="login-box" id="rrapp" v-cloak
|
|
|
+ style="background-color: #ffffff;padding: 90px 70px;border-radius: 10px;width: 524px;margin: 10% auto;display: inline-block;text-align: left;box-shadow: 0 0 10px #dde8ff;">
|
|
|
+ <div class="login-logo" style="margin-bottom: 25px;font-size: 28px;">
|
|
|
+ <b style="color: #2a58a5">青雲慧运营平台</b>
|
|
|
+ </div>
|
|
|
+ <!-- /.login-logo -->
|
|
|
+ <div class="login-box-body" style="background: rgba(0,0,0,0);padding: 0;">
|
|
|
<!-- <p class="login-box-msg">管理员登录</p> -->
|
|
|
<div v-if="error" class="alert alert-danger alert-dismissible">
|
|
|
<h4 style="margin-bottom: 0px;"><i class="fa fa-exclamation-triangle"></i> {{errorMsg}}</h4>
|
|
|
</div>
|
|
|
<div class="form-group has-feedback">
|
|
|
+ <!-- <span class="glyphicon glyphicon-user form-control-feedback"></span> -->
|
|
|
+ <div class="form-control-feedback-img">
|
|
|
+ <img class="account" src="${request.contextPath}/statics/images/login/account.png" alt="">
|
|
|
+ </div>
|
|
|
<input type="text" class="form-control" v-model="username" placeholder="账号">
|
|
|
- <span class="glyphicon glyphicon-user form-control-feedback"></span>
|
|
|
-
|
|
|
-
|
|
|
</div>
|
|
|
<div class="form-group has-feedback">
|
|
|
+ <!-- <span class="glyphicon glyphicon-lock form-control-feedback"></span> -->
|
|
|
+ <div class="form-control-feedback-img">
|
|
|
+ <img class="password" src="${request.contextPath}/statics/images/login/password.png" alt="">
|
|
|
+ </div>
|
|
|
<input type="password" class="form-control" v-model="password" placeholder="密码">
|
|
|
- <span class="glyphicon glyphicon-lock form-control-feedback"></span>
|
|
|
</div>
|
|
|
<div class="form-group has-feedback">
|
|
|
+ <!-- <span class="glyphicon glyphicon-warning-sign form-control-feedback"></span> -->
|
|
|
+ <div class="form-control-feedback-img">
|
|
|
+ <img class="captcha" src="${request.contextPath}/statics/images/login/captcha.png" alt="">
|
|
|
+ </div>
|
|
|
<input type="text" class="form-control" v-model="captcha" @keyup.enter="login" placeholder="验证码">
|
|
|
- <span class="glyphicon glyphicon-warning-sign form-control-feedback"></span>
|
|
|
</div>
|
|
|
<div class="form-group has-feedback">
|
|
|
<img alt="如果看不清楚,请单击图片刷新!" class="pointer" :src="src" @click="refreshCode">
|
|
|
@@ -58,69 +68,71 @@
|
|
|
</div> -->
|
|
|
<!-- /.col -->
|
|
|
<div class="col-xs-12" style="padding: 0;">
|
|
|
- <button type="button" class="btn btn-primary btn-block btn-flat" @click="login" style="background-color: #2b58a5;height: 48px;">登录</button>
|
|
|
+ <button type="button" class="btn btn-primary btn-block btn-flat" @click="login"
|
|
|
+ style="background-color: #2b58a5;height: 48px;">登录</button>
|
|
|
</div>
|
|
|
<!-- /.col -->
|
|
|
</div>
|
|
|
- <!-- /.social-auth-links -->
|
|
|
+ <!-- /.social-auth-links -->
|
|
|
|
|
|
+ </div>
|
|
|
+ <!-- /.login-box-body -->
|
|
|
</div>
|
|
|
- <!-- /.login-box-body -->
|
|
|
-</div>
|
|
|
-<!-- /.login-box -->
|
|
|
-<script src="${request.contextPath}/statics/libs/jquery.min.js"></script>
|
|
|
-<script src="${request.contextPath}/statics/libs/vue.min.js"></script>
|
|
|
-<script src="${request.contextPath}/statics/libs/bootstrap.min.js"></script>
|
|
|
-<script src="${request.contextPath}/statics/libs/jquery.slimscroll.min.js"></script>
|
|
|
-<script src="${request.contextPath}/statics/libs/fastclick.min.js"></script>
|
|
|
-<script src="${request.contextPath}/statics/libs/app.js"></script>
|
|
|
-<script type="text/javascript">
|
|
|
-var vm = new Vue({
|
|
|
- el:'#rrapp',
|
|
|
- data:{
|
|
|
- username: '',
|
|
|
- password: '',
|
|
|
- captcha: '',
|
|
|
- error: false,
|
|
|
- errorMsg: '',
|
|
|
- src: 'captcha.jpg'
|
|
|
- },
|
|
|
- beforeCreate: function(){
|
|
|
- if(self != top){
|
|
|
- top.location.href = self.location.href;
|
|
|
- }
|
|
|
- },
|
|
|
- methods: {
|
|
|
- refreshCode: function(){
|
|
|
- this.src = "captcha.jpg?t=" + $.now();
|
|
|
- },
|
|
|
- login: function (event) {
|
|
|
- var data = "username="+vm.username+"&password="+vm.password+"&captcha="+vm.captcha;
|
|
|
- $.ajax({
|
|
|
- type: "POST",
|
|
|
- url: "sys/login",
|
|
|
- data: data,
|
|
|
- dataType: "json",
|
|
|
- success: function(result){
|
|
|
- if(result.code == 0){//登录成功
|
|
|
- parent.location.href ='index.html';
|
|
|
- }else{
|
|
|
- vm.error = true;
|
|
|
- vm.errorMsg = result.msg;
|
|
|
+ <!-- /.login-box -->
|
|
|
+ <script src="${request.contextPath}/statics/libs/jquery.min.js"></script>
|
|
|
+ <script src="${request.contextPath}/statics/libs/vue.min.js"></script>
|
|
|
+ <script src="${request.contextPath}/statics/libs/bootstrap.min.js"></script>
|
|
|
+ <script src="${request.contextPath}/statics/libs/jquery.slimscroll.min.js"></script>
|
|
|
+ <script src="${request.contextPath}/statics/libs/fastclick.min.js"></script>
|
|
|
+ <script src="${request.contextPath}/statics/libs/app.js"></script>
|
|
|
+ <script type="text/javascript">
|
|
|
+ var vm = new Vue({
|
|
|
+ el: '#rrapp',
|
|
|
+ data: {
|
|
|
+ username: '',
|
|
|
+ password: '',
|
|
|
+ captcha: '',
|
|
|
+ error: false,
|
|
|
+ errorMsg: '',
|
|
|
+ src: 'captcha.jpg'
|
|
|
+ },
|
|
|
+ beforeCreate: function () {
|
|
|
+ if (self != top) {
|
|
|
+ top.location.href = self.location.href;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ refreshCode: function () {
|
|
|
+ this.src = "captcha.jpg?t=" + $.now();
|
|
|
+ },
|
|
|
+ login: function (event) {
|
|
|
+ var data = "username=" + vm.username + "&password=" + vm.password + "&captcha=" + vm.captcha;
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ url: "sys/login",
|
|
|
+ data: data,
|
|
|
+ dataType: "json",
|
|
|
+ success: function (result) {
|
|
|
+ if (result.code == 0) {//登录成功
|
|
|
+ parent.location.href = 'index.html';
|
|
|
+ } else {
|
|
|
+ vm.error = true;
|
|
|
+ vm.errorMsg = result.msg;
|
|
|
|
|
|
- vm.refreshCode();
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
-});
|
|
|
-</script>
|
|
|
-<!--<div class="copyright" style="-->
|
|
|
-<!-- text-align: center;-->
|
|
|
-<!-- position: fixed;-->
|
|
|
-<!-- bottom: 1em;-->
|
|
|
-<!-- left: 41%;color: white;font-size: 0.8rem;-->
|
|
|
-<!--">Copyright © 2019 中青国际. All rights reserved. 技术支持:<a href="http://www.songlanyun.com" target="_blank">松蓝云</a></div>-->
|
|
|
+ vm.refreshCode();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ </script>
|
|
|
+ <!--<div class="copyright" style="-->
|
|
|
+ <!-- text-align: center;-->
|
|
|
+ <!-- position: fixed;-->
|
|
|
+ <!-- bottom: 1em;-->
|
|
|
+ <!-- left: 41%;color: white;font-size: 0.8rem;-->
|
|
|
+ <!--">Copyright © 2019 中青国际. All rights reserved. 技术支持:<a href="http://www.songlanyun.com" target="_blank">松蓝云</a></div>-->
|
|
|
</body>
|
|
|
-</html>
|
|
|
+
|
|
|
+</html>
|