123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title>看店4DKanKan管理平台</title>
- <!-- Tell the browser to be responsive to screen width -->
- <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
- <link rel="stylesheet" href="statics/css/bootstrap.min.css">
- <link rel="stylesheet" href="statics/css/font-awesome.min.css">
- <link rel="stylesheet" href="statics/css/style.css">
- <link rel="stylesheet" href="statics/css/login.css">
- <link rel="stylesheet" href="statics/css/main.css">
- <link rel="stylesheet" href="statics/css/iview.css">
- <link rel="shortcut icon" href=//4dkk.4dage.com/FDKKIMG/icon/kankan_icon.ico>
- <link rel=icon type=image/png href=//4dkk.4dage.com/FDKKIMG/icon/kankan_icon192.png sizes=192x192>
- <link rel=apple-touch-icon sizes=180x180 href=//4dkk.4dage.com/FDKKIMG/icon/kankan_icon180.png>
- <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
- <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
- <!--[if lt IE 9]>
- <script src="statics/libs/html5shiv.min.js"></script>
- <script src="statics/libs/respond.min.js"></script>
- <![endif]-->
- <style>
- .ivu-card-body{
- padding: 16px!important;
- }
- </style>
- <script>
- var _hmt = _hmt || [];
- (function () {
- var hm = document.createElement("script");
- hm.src = "https://hm.baidu.com/hm.js?4656e49e8efa9f2ad6868ea26fb8984c";
- var s = document.getElementsByTagName("script")[0];
- s.parentNode.insertBefore(hm, s);
- })();
- </script>
- </head>
- <body class="signin hold-transition login-page">
- <div class="fixed-logo">
- <img src="./statics/img/logo-top.png" alt="">
- </div>
- <div class="loginscreen animated fadeInDown signinpanel" id="loginBox" v-cloak>
- <div class="col-md-9">
- <div class="login-info">
- <img src="./statics/img/logo.png" alt="">
- <p>看店4DKanKan新体验:</p>
- <p>宅家中,云逛街,轻松买</p>
- </div>
- </div>
- <div class="col-md-3">
- <Card class="m-t text-center" style="background: rgba(109, 109, 109, 0.23);border: 0px solid #dddee1;">
- <p style="padding: 0 20px 20px 20px;">登录到看店4DKanKan管理平台</p>
- <div class="form-group has-feedback">
- <i-input v-model="username" @on-enter="login" placeholder="账号" style="width: 240px;" autofocus/>
- </div>
- <div class="form-group has-feedback">
- <i-input type="password" v-model="password" @on-enter="login" style="width: 240px;"
- placeholder="密码"/>
- </div>
- <div class="form-group has-feedback">
- <div style="display: inline-block;width: 120px;">
- <i-input v-model="captcha" @on-enter="login"
- placeholder="验证码"/>
- </div>
- <div style="display: inline-block;width: 120px;">
- <img style="height: 32px;width: 96px;border-radius: 4px;" alt="如果看不清楚,请单击图片刷新!" title="点击刷新"
- class="pointer" :src="src" @click="refreshCode">
- </div>
- </div>
- <div>
- <i-button type="primary" @click="login" style="width: 240px;">登录</i-button>
- </div>
- </Card>
- </div>
- </div>
- <!-- /.login-box -->
- <script src="statics/libs/jquery.min.js"></script>
- <script src="statics/libs/vue.min.js"></script>
- <script src="statics/libs/iview.min.js"></script>
- <script src="statics/libs/bootstrap.min.js"></script>
- <script src="statics/plugins/slimscroll/jquery.slimscroll.min.js"></script>
- <script src="statics/libs/fastclick.min.js"></script>
- <script type="text/javascript">
- var vm = new Vue({
- el: '#loginBox',
- data: {
- username: '',
- password: '',
- captcha: '',
- 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) {
- if (vm.username == '') {
- iview.Message.warning("用户名为空");
- return false;
- }
- if (vm.password == '') {
- iview.Message.warning("密码为空");
- return false;
- }
- if (vm.captcha == '') {
- iview.Message.warning("验证码为空");
- return false;
- }
- 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.refreshCode();
- iview.Message.error(result.msg);
- }
- }
- });
- }
- }
- });
- </script>
- </body>
- </html>
|