|
@@ -5,66 +5,78 @@
|
|
|
<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/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="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-1"></div>
|
|
|
<div class="container">
|
|
|
- <% 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 class="row">
|
|
|
+ <div class="col-6">
|
|
|
+ <img src="/public/images/loginlogo.png">
|
|
|
</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 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 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 class="text-white fixed-bottom"><p class="text-center mb-1">Copyright © 2018 <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="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">
|