|
@@ -0,0 +1,92 @@
|
|
|
+<!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-new-body img-<%- Math.floor(Math.random()*9 + 1); %>">
|
|
|
+<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="d-flex justify-content-center align-items-center content-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"><%- projectData ? projectData.name : '纵横捭阖 数“智”管家' %></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/port" class="right-login position-relative" style="min-width: 360px;">
|
|
|
+ <h3 class="mt-5 mb-4 text-center">欢迎登录</h3>
|
|
|
+ <div class="mx-4">
|
|
|
+ <% if (!accountData) { %>
|
|
|
+ <h5>您好,<%- accountData.mobile %></h5>
|
|
|
+ <% if (accountData.bind === 0) { %>
|
|
|
+ <!--查询账号存在,进行绑定-->
|
|
|
+ <h5 class="mb-3">系统查询到以下账号,请确认无误后进行绑定。</h5>
|
|
|
+ <h5>姓名:<span class="text-danger"><%- accountData.name %></span></h5>
|
|
|
+ <h5>账号:<span class="text-danger"><%- accountData.account %></span></h5>
|
|
|
+ <h5>手机:<span class="text-danger"><%- accountData.mobile %></span></h5>
|
|
|
+ <h5>单位:<span class="text-danger"><%- accountData.company %></span></h5>
|
|
|
+ <h5>职称:<span class="text-danger"><%- accountData.role %></span></h5>
|
|
|
+ <div class="form-group mt-4">
|
|
|
+ <input type="hidden" value="<%= ctx.csrf %>" name="_csrf_j" >
|
|
|
+ <input type="hidden" value="3" name="type" >
|
|
|
+ <input type="hidden" value="<%= projectData.code %>" name="code" >
|
|
|
+ <input type="hidden" value="<%= accountData.id %>" name="accountId" >
|
|
|
+ <button type="submit" class="btn btn-primary btn-block">绑定并登录系统</button>
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
+ <% } %>
|
|
|
+ <h5 class="text-danger text-center"><%- errorMessage %></h5>
|
|
|
+ </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>
|
|
|
+<!-- 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>
|
|
|
+<% if (projectData) { %>
|
|
|
+<script>
|
|
|
+ $(document).ready(function() {
|
|
|
+ setLocalCache('project_name', '<%- projectData.name %>');
|
|
|
+ setLocalCache('project_code', '<%- projectData.code %>');
|
|
|
+ });
|
|
|
+</script>
|
|
|
+<% } %>
|
|
|
+</body>
|
|
|
+</html>
|