|
@@ -14,76 +14,77 @@
|
|
|
html{height:100%;}
|
|
|
</style>
|
|
|
</head>
|
|
|
-<body class="login-body">
|
|
|
-<div class="login-bg img-<%- Math.floor(Math.random()*3 + 1); %>"></div>
|
|
|
+<body class="login-new-body">
|
|
|
+<div class="login-new-b d-flex flex-row align-items-center mt-5 ml-5">
|
|
|
+ <div>
|
|
|
+ <img src="/public/images/image_nav_logo.png">
|
|
|
+ </div>
|
|
|
+ <div class="ml-3">
|
|
|
+ <div class="logo-big-title text-white mt-1">纵横计量支付</div>
|
|
|
+ <div class="logo-sm-title mt-1">结算决算一体化云版软件</div>
|
|
|
+ </div>
|
|
|
+ <div class="side-border ml-4 mr-4"></div>
|
|
|
+ <div class="top-subtitle">施工舒心 / 监理省心 / 业主安心</div>
|
|
|
+</div>
|
|
|
<div class="container">
|
|
|
- <div class="row">
|
|
|
- <div class="col-6">
|
|
|
- <img src="/public/images/loginlogo.png">
|
|
|
+ <div class="d-flex justify-content-center align-items-center">
|
|
|
+ <div class="left-login text-white pt-5 px-5">
|
|
|
+ <h2>Hi,您好!</h2>
|
|
|
+ <div class="login-border my-4"></div>
|
|
|
+ <div class="left-login-title" id="project_name">纵横捭阖 数“智”管家</div>
|
|
|
</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" id="normal-form" style="min-width: 360px;position: relative">
|
|
|
- <!--<div class="change-form" style="position: absolute;right: 0;top: 0px;cursor: pointer;"><i style="padding:5px;font-size: 50px;color: #212529" class="fa fa-qrcode"></i></div>-->
|
|
|
- <div class="change-form" data-toggle="tooltip" data-placement="left" title="微信登录" style="position: absolute;right: 0;top: 0px;cursor: pointer;"><img alt="微信扫码登录" style="padding:5px;" width="50px" src="/public/images/icon-qrcode.png"></div>
|
|
|
- <!-- <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>
|
|
|
+ <% if (maintainData.status === maintainConst.status.ongoing) { %>
|
|
|
+ <form class="right-login position-relative text-center">
|
|
|
+ <h3 class="mt-5 mb-5"><i class="fa fa-wrench"></i>系统正在维护</h3>
|
|
|
+ <div> </div>
|
|
|
+ <h5 class="mt-5 mb-5">预计恢复时间<%- (maintainData.duration !== maintainConst.duration.forever ? '为 ' + ctx.helper.dateTran(parseFloat(maintainData.maintain_time) + ctx.helper.timeAdd(maintainData.duration)) : ' 暂未确定') %></h5>
|
|
|
+ <h5>造成不便敬请谅解。</h5>
|
|
|
+ </form>
|
|
|
+ <% } else { %>
|
|
|
+ <form method="post" action="/login" id="normal-form" class="right-login position-relative text-center" style="min-width: 360px;">
|
|
|
+ <h3 class="mt-5 mb-5">欢迎登录</h3>
|
|
|
+ <div class="position-absolute"><a href="javascript:void(0);" class="change-form" data-toggle="tooltip" data-placement="left" title="微信登录"><img alt="微信扫码登录" src="/public/images/icon_login_qr.png"></a></div>
|
|
|
+ <div class="mx-4">
|
|
|
+ <div class="input-group mb-4 <% if (errorMessage !== undefined && errorMessage !== null) { %>has-danger<% } %>">
|
|
|
+ <div class="input-group-prepend">
|
|
|
+ <div class="input-group-text"><img src="/public/images/icon_login_folder.png"></div>
|
|
|
</div>
|
|
|
- <div class="form-group">
|
|
|
- <button class="btn btn-primary btn-block" type="submit">登录</button>
|
|
|
- <input type="hidden" name="_csrf_j" value="<%= ctx.csrf %>" />
|
|
|
- <input type="hidden" name="type" value="2" />
|
|
|
+ <input type="text" id="project" class="form-control" name="project" placeholder="项目编号" autofocus="">
|
|
|
+ </div>
|
|
|
+ <div class="input-group mb-4 <% if (errorMessage !== undefined && errorMessage !== null) { %>has-danger<% } %>">
|
|
|
+ <div class="input-group-prepend">
|
|
|
+ <div class="input-group-text"><img src="/public/images/icon_login_user.png"></div>
|
|
|
+ </div>
|
|
|
+ <input type="text" id="account" class="form-control" name="account" placeholder="帐号" autofocus="">
|
|
|
+ </div>
|
|
|
+ <div class="input-group mb-2 <% if (errorMessage !== undefined && errorMessage !== null) { %>has-danger<% } %>">
|
|
|
+ <div class="input-group-prepend">
|
|
|
+ <div class="input-group-text"><img src="/public/images/icon_login_lock.png"></div>
|
|
|
</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>
|
|
|
+ <input type="password" id="project-password" name="project_password" class="form-control" placeholder="密码">
|
|
|
+ </div>
|
|
|
+ <div class="form-group mb-4">
|
|
|
+ <div class="form-check d-flex justify-content-start pl-0">
|
|
|
+ <label class="form-check-label" for="exampleCheck1"><a href="#fg-password" data-toggle="modal" data-target="#fg-password">忘记密码?</a></label>
|
|
|
</div>
|
|
|
- </form>
|
|
|
- <form class="form-signin" id="code-form" style="min-width: 360px;position: relative;display: none">
|
|
|
- <!--<div class="change-form" style="position: absolute;right: 0;top: 0px;cursor: pointer;"><i style="padding:5px;font-size: 40px;color: #212529" class="fa fa-laptop"></i></div>-->
|
|
|
- <div class="change-form" data-toggle="tooltip" data-placement="left" title="账号登录" style="position: absolute;right: 0;top: 0px;cursor: pointer;"><img alt="账号登录" style="padding:5px;" width="50px" src="/public/images/icon-pc.png"></div>
|
|
|
- <div id="wx-code" style="text-align: center">
|
|
|
+ </div>
|
|
|
+ <div class="form-group mb-4">
|
|
|
+ <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>
|
|
|
- </form>
|
|
|
- <% } %>
|
|
|
- <!--项目版-->
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <button type="submit" class="btn btn-primary btn-block">登 录</button>
|
|
|
+ <input type="hidden" name="_csrf_j" value="<%= ctx.csrf %>" />
|
|
|
+ <input type="hidden" name="type" value="2" />
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ <form id="code-form" class="right-login position-relative text-center" style="min-width: 360px;display: none">
|
|
|
+ <h3 class="mt-5 mb-5">欢迎登录</h3>
|
|
|
+ <div class="position-absolute"><a href="javascript:void(0);" class="change-form" data-toggle="tooltip" data-placement="left" title="账号登录"><img alt="账号登录" src="/public/images/icon_login_pc.png"></a></div>
|
|
|
+ <div id="wx-code" style="text-align: center">
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ <% } %>
|
|
|
</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="https://beian.miit.gov.cn" target="_blank">粤ICP备14032472号</a></p></div>
|
|
|
</div>
|