|
@@ -1,139 +1,140 @@
|
|
|
-<!DOCTYPE html>
|
|
|
-<html lang="en">
|
|
|
-<head>
|
|
|
- <meta charset="utf-8">
|
|
|
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
- <meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
|
- <title>用户登录-计量支付</title>
|
|
|
- <link rel="stylesheet" href="/public/css/bootstrap/bootstrap.min.css">
|
|
|
- <link rel="stylesheet" href="/public/css/main.css">
|
|
|
- <link rel="stylesheet" href="/public/css/toast.css">
|
|
|
- <link rel="stylesheet" href="/public/css/font-awesome/font-awesome.min.css">
|
|
|
- <link rel="shortcut icon" href="/public/images/favicon.ico">
|
|
|
- <style>
|
|
|
- html{height:100%;}
|
|
|
- </style>
|
|
|
-</head>
|
|
|
-<body class="login-body">
|
|
|
-<div class="login-bg img-<%- Math.floor(Math.random()*3 + 1); %>"></div>
|
|
|
-<div class="container">
|
|
|
- <div class="row">
|
|
|
- <div class="col-6">
|
|
|
- <img src="/public/images/loginlogo.png">
|
|
|
- </div>
|
|
|
- <div class="col-6">
|
|
|
- <% if (maintainData.status === maintainConst.status.ongoing) { %>
|
|
|
- <form class="form-signin">
|
|
|
- <h4 class="text-center mb-3"><i class="fa fa-wrench"></i>系统正在维护</h4>
|
|
|
- <h4>预计恢复时间<%- (maintainData.duration !== maintainConst.duration.forever ? '为 ' + ctx.helper.dateTran(parseFloat(maintainData.maintain_time) + ctx.helper.timeAdd(maintainData.duration)) : ' 暂未确定') %></h4>
|
|
|
- <h4>造成不便敬请谅解。</h4>
|
|
|
- </form>
|
|
|
- <% } else { %>
|
|
|
- <!--演示版-->
|
|
|
- <form class="form-signin" method="post" action="/login">
|
|
|
- <h4 class="text-center mb-2">纵横云计量</h4>
|
|
|
- <h5 class="text-center mb-4 text-muted" id="project_name"></h5>
|
|
|
- <!--<nav class="nav nav-tabs nav-justified mb-3" role="tablist" id="login-tab">-->
|
|
|
- <!--<a class="nav-item nav-link" data-toggle="tab" data-type="1" href="#preview" role="tab">演示版登录</a>-->
|
|
|
- <!--<a class="nav-item nav-link active" data-toggle="tab" data-type="2" href="#paid" role="tab">项目版登录</a>-->
|
|
|
- <!--</nav>-->
|
|
|
- <div class="tab-content">
|
|
|
- <!--<div class="tab-pane active" id="preview" role="tabpanel">-->
|
|
|
- <!--<div class="form-group <% if (errorMessage !== undefined && errorMessage !== null) { %>has-danger<% } %>">-->
|
|
|
- <!--<input id="username" name="username" class="form-control form-control-sm" placeholder="通行账号 邮箱/手机" value="laiku123@qq.com" autofocus="">-->
|
|
|
- <!--</div>-->
|
|
|
- <!--<div class="form-group <% if (errorMessage !== undefined && errorMessage !== null) { %>has-danger<% } %>">-->
|
|
|
- <!--<input id="password" name="password" class="form-control form-control-sm" placeholder="输入密码" value="19930523" type="password">-->
|
|
|
- <!--</div>-->
|
|
|
- <!--</div>-->
|
|
|
- <div class="tab-pane active" id="paid" role="tabpanel">
|
|
|
- <div class="form-group <% if (errorMessage !== undefined && errorMessage !== null) { %>has-danger<% } %>">
|
|
|
- <input id="project" class="form-control" name="project" placeholder="项目编号" autofocus="" />
|
|
|
- </div>
|
|
|
- <div class="form-group <% if (errorMessage !== undefined && errorMessage !== null) { %>has-danger<% } %>">
|
|
|
- <input id="account" class="form-control" name="account" placeholder="输入账号" autofocus="" />
|
|
|
- </div>
|
|
|
- <div class="form-group <% if (errorMessage !== undefined && errorMessage !== null) { %>has-danger<% } %>">
|
|
|
- <input id="project-password" name="project_password" class="form-control" placeholder="输入密码" type="password" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <div class="alert alert-danger" <% if(errorMessage === undefined || errorMessage === null) { %>style="display: none"<% } %> role="alert" id="error-msg">
|
|
|
- <% if(errorMessage !== undefined && errorMessage !== null) { %><strong>登录失败</strong> <%= errorMessage %><% } %>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <button class="btn btn-primary btn-block" type="submit">登录</button>
|
|
|
- <input type="hidden" name="_csrf" value="<%= ctx.csrf %>" />
|
|
|
- <input type="hidden" name="type" value="2" />
|
|
|
- </div>
|
|
|
- <div class="pt-1 d-flex justify-content-end">
|
|
|
- <a href="#fg-password" data-toggle="modal" data-target="#fg-password" class="mr-3">忘记密码?</a>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- <% } %>
|
|
|
- <!--项目版-->
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="text-white fixed-bottom"><p class="text-center mb-1">Copyright © 2019 <a href="https://smartcost.com.cn" target="_blank" class="text-white">珠海纵横创新软件有限公司</a>.All Rights Reserved.<a class="text-white ml-2" href="http://www.miitbeian.gov.cn" target="_blank">粤ICP备14032472号</a></p></div>
|
|
|
-</div>
|
|
|
-<!--忘记项目版密码-->
|
|
|
-<div class="modal fade" id="fg-password" data-backdrop="static">
|
|
|
- <div class="modal-dialog" role="document">
|
|
|
- <div class="modal-content">
|
|
|
- <div class="modal-header">
|
|
|
- <h5 class="modal-title">找回密码</h5>
|
|
|
- </div>
|
|
|
- <div class="modal-body">
|
|
|
- <div class="form-group">
|
|
|
- <label>项目编号</label>
|
|
|
- <input class="form-control" id="forget-project" placeholder="输入项目编号">
|
|
|
- <div class="invalid-feedback"></div>
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label>登录账号</label>
|
|
|
- <input class="form-control" id="forget-name" placeholder="输入登录账号">
|
|
|
- <div class="invalid-feedback"></div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="modal-footer">
|
|
|
- <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
|
|
|
- <button type="button" class="btn btn-primary" id="forget-btn">重置密码</button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-</div>
|
|
|
-<!--忘记项目版密码-->
|
|
|
-<div class="modal fade" id="fg-password-done" data-backdrop="static">
|
|
|
- <div class="modal-dialog" role="document">
|
|
|
- <div class="modal-content">
|
|
|
- <div class="modal-header">
|
|
|
- <h5 class="modal-title">密码发送成功</h5>
|
|
|
- </div>
|
|
|
- <div class="modal-body">
|
|
|
- <h5>尊敬的 <b></b>,您的账号 <b></b>,新密码已经发送至 <b></b>,注意查收。</h5>
|
|
|
- </div>
|
|
|
- <div class="modal-footer">
|
|
|
- <button type="button" class="btn btn-secondary" data-dismiss="modal" id="focus-pwd">关闭</button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-</div>
|
|
|
-<!-- JS. -->
|
|
|
-<div class="toast" style="text-align: center">
|
|
|
- <i class="icon fa"></i>
|
|
|
- <span class="message"></span>
|
|
|
-</div>
|
|
|
-<!-- JS. -->
|
|
|
-<script src="/public/js/jquery/jquery-3.2.1.min.js"></script>
|
|
|
-<script src="/public/js/popper/popper.min.js"></script>
|
|
|
-<script src="/public/js/bootstrap/bootstrap.min.js"></script>
|
|
|
-<script src="/public/js/global.js"></script>
|
|
|
-<script>
|
|
|
- const csrf = '<%= ctx.csrf %>'
|
|
|
-</script>
|
|
|
-<script src="/public/js/login.js"></script>
|
|
|
-</body>
|
|
|
-
|
|
|
-</html>
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="en">
|
|
|
+<head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
+ <meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
|
+ <title>用户登录-计量支付</title>
|
|
|
+ <link rel="stylesheet" href="/public/css/bootstrap/bootstrap.min.css">
|
|
|
+ <link rel="stylesheet" href="/public/css/main.css">
|
|
|
+ <link rel="stylesheet" href="/public/css/toast.css">
|
|
|
+ <link rel="stylesheet" href="/public/css/font-awesome/font-awesome.min.css">
|
|
|
+ <link rel="shortcut icon" href="/public/images/favicon.ico">
|
|
|
+ <style>
|
|
|
+ html{height:100%;}
|
|
|
+ </style>
|
|
|
+</head>
|
|
|
+<body class="login-body">
|
|
|
+<div class="login-bg img-<%- Math.floor(Math.random()*3 + 1); %>"></div>
|
|
|
+<div class="container">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-6">
|
|
|
+ <img src="/public/images/loginlogo.png">
|
|
|
+ </div>
|
|
|
+ <div class="col-6">
|
|
|
+ <% if (maintainData.status === maintainConst.status.ongoing) { %>
|
|
|
+ <form class="form-signin">
|
|
|
+ <h4 class="text-center mb-3"><i class="fa fa-wrench"></i>系统正在维护</h4>
|
|
|
+ <h4>预计恢复时间<%- (maintainData.duration !== maintainConst.duration.forever ? '为 ' + ctx.helper.dateTran(parseFloat(maintainData.maintain_time) + ctx.helper.timeAdd(maintainData.duration)) : ' 暂未确定') %></h4>
|
|
|
+ <h4>造成不便敬请谅解。</h4>
|
|
|
+ </form>
|
|
|
+ <% } else { %>
|
|
|
+ <!--演示版-->
|
|
|
+ <form class="form-signin" method="post" action="/login">
|
|
|
+ <!-- <h4 class="text-center mb-2">纵横云计量</h4> -->
|
|
|
+ <h5 class="text-center mb-2" id="project_name"></h5>
|
|
|
+ <h5 class="text-center mb-4 text-muted">用户登录</h5>
|
|
|
+ <!--<nav class="nav nav-tabs nav-justified mb-3" role="tablist" id="login-tab">-->
|
|
|
+ <!--<a class="nav-item nav-link" data-toggle="tab" data-type="1" href="#preview" role="tab">演示版登录</a>-->
|
|
|
+ <!--<a class="nav-item nav-link active" data-toggle="tab" data-type="2" href="#paid" role="tab">项目版登录</a>-->
|
|
|
+ <!--</nav>-->
|
|
|
+ <div class="tab-content">
|
|
|
+ <!--<div class="tab-pane active" id="preview" role="tabpanel">-->
|
|
|
+ <!--<div class="form-group <% if (errorMessage !== undefined && errorMessage !== null) { %>has-danger<% } %>">-->
|
|
|
+ <!--<input id="username" name="username" class="form-control form-control-sm" placeholder="通行账号 邮箱/手机" value="laiku123@qq.com" autofocus="">-->
|
|
|
+ <!--</div>-->
|
|
|
+ <!--<div class="form-group <% if (errorMessage !== undefined && errorMessage !== null) { %>has-danger<% } %>">-->
|
|
|
+ <!--<input id="password" name="password" class="form-control form-control-sm" placeholder="输入密码" value="19930523" type="password">-->
|
|
|
+ <!--</div>-->
|
|
|
+ <!--</div>-->
|
|
|
+ <div class="tab-pane active" id="paid" role="tabpanel">
|
|
|
+ <div class="form-group <% if (errorMessage !== undefined && errorMessage !== null) { %>has-danger<% } %>">
|
|
|
+ <input id="project" class="form-control" name="project" placeholder="项目编号" autofocus="" />
|
|
|
+ </div>
|
|
|
+ <div class="form-group <% if (errorMessage !== undefined && errorMessage !== null) { %>has-danger<% } %>">
|
|
|
+ <input id="account" class="form-control" name="account" placeholder="输入账号" autofocus="" />
|
|
|
+ </div>
|
|
|
+ <div class="form-group <% if (errorMessage !== undefined && errorMessage !== null) { %>has-danger<% } %>">
|
|
|
+ <input id="project-password" name="project_password" class="form-control" placeholder="输入密码" type="password" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <div class="alert alert-danger" <% if(errorMessage === undefined || errorMessage === null) { %>style="display: none"<% } %> role="alert" id="error-msg">
|
|
|
+ <% if(errorMessage !== undefined && errorMessage !== null) { %><strong>登录失败</strong> <%= errorMessage %><% } %>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <button class="btn btn-primary btn-block" type="submit">登录</button>
|
|
|
+ <input type="hidden" name="_csrf" value="<%= ctx.csrf %>" />
|
|
|
+ <input type="hidden" name="type" value="2" />
|
|
|
+ </div>
|
|
|
+ <div class="pt-1 d-flex justify-content-end">
|
|
|
+ <a href="#fg-password" data-toggle="modal" data-target="#fg-password" class="mr-3">忘记密码?</a>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ <% } %>
|
|
|
+ <!--项目版-->
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="text-white fixed-bottom"><p class="text-center mb-1">Copyright © 2019 <a href="https://smartcost.com.cn" target="_blank" class="text-white">珠海纵横创新软件有限公司</a>.All Rights Reserved.<a class="text-white ml-2" href="http://www.miitbeian.gov.cn" target="_blank">粤ICP备14032472号</a></p></div>
|
|
|
+</div>
|
|
|
+<!--忘记项目版密码-->
|
|
|
+<div class="modal fade" id="fg-password" data-backdrop="static">
|
|
|
+ <div class="modal-dialog" role="document">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="modal-header">
|
|
|
+ <h5 class="modal-title">找回密码</h5>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body">
|
|
|
+ <div class="form-group">
|
|
|
+ <label>项目编号</label>
|
|
|
+ <input class="form-control" id="forget-project" placeholder="输入项目编号">
|
|
|
+ <div class="invalid-feedback"></div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label>登录账号</label>
|
|
|
+ <input class="form-control" id="forget-name" placeholder="输入登录账号">
|
|
|
+ <div class="invalid-feedback"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer">
|
|
|
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
|
|
|
+ <button type="button" class="btn btn-primary" id="forget-btn">重置密码</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+<!--忘记项目版密码-->
|
|
|
+<div class="modal fade" id="fg-password-done" data-backdrop="static">
|
|
|
+ <div class="modal-dialog" role="document">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="modal-header">
|
|
|
+ <h5 class="modal-title">密码发送成功</h5>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body">
|
|
|
+ <h5>尊敬的 <b></b>,您的账号 <b></b>,新密码已经发送至 <b></b>,注意查收。</h5>
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer">
|
|
|
+ <button type="button" class="btn btn-secondary" data-dismiss="modal" id="focus-pwd">关闭</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+<!-- JS. -->
|
|
|
+<div class="toast" style="text-align: center">
|
|
|
+ <i class="icon fa"></i>
|
|
|
+ <span class="message"></span>
|
|
|
+</div>
|
|
|
+<!-- JS. -->
|
|
|
+<script src="/public/js/jquery/jquery-3.2.1.min.js"></script>
|
|
|
+<script src="/public/js/popper/popper.min.js"></script>
|
|
|
+<script src="/public/js/bootstrap/bootstrap.min.js"></script>
|
|
|
+<script src="/public/js/global.js"></script>
|
|
|
+<script>
|
|
|
+ const csrf = '<%= ctx.csrf %>'
|
|
|
+</script>
|
|
|
+<script src="/public/js/login.js"></script>
|
|
|
+</body>
|
|
|
+
|
|
|
+</html>
|