|
@@ -51,14 +51,56 @@
|
|
<input type="hidden" name="_csrf" value="<%= ctx.csrf %>" />
|
|
<input type="hidden" name="_csrf" value="<%= ctx.csrf %>" />
|
|
<input type="hidden" name="type" value="2" />
|
|
<input type="hidden" name="type" value="2" />
|
|
</div>
|
|
</div>
|
|
- <!--<div class="pt-1 d-flex justify-content-center">-->
|
|
|
|
- <!--<a href="http://sso.smartcost.com.cn/getpasswd" target="_blank" class="mr-3">忘记密码</a>-->
|
|
|
|
- <!--<a href="http://sso.smartcost.com.cn/reg" target="_blank">免费注册</a>-->
|
|
|
|
- <!--</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>
|
|
</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 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>
|
|
|
|
+<!--忘记项目版密码-->
|
|
|
|
+<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">
|
|
<div class="toast" style="text-align: center">
|
|
<i class="icon fa"></i>
|
|
<i class="icon fa"></i>
|
|
<span class="message"></span>
|
|
<span class="message"></span>
|
|
@@ -68,63 +110,10 @@
|
|
<script src="/public/js/popper/popper.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/bootstrap/bootstrap.min.js"></script>
|
|
<script src="/public/js/global.js"></script>
|
|
<script src="/public/js/global.js"></script>
|
|
-<script type="text/javascript">
|
|
|
|
-$(document).ready(function() {
|
|
|
|
- const lSPName = getLocalCache('project_name');
|
|
|
|
- const lSPCode = getLocalCache('project_code');
|
|
|
|
- if (lSPName !== null) {
|
|
|
|
- $('#project_name').text(lSPName);
|
|
|
|
- $('#project').val(lSPCode);
|
|
|
|
- $('#account').focus();
|
|
|
|
- }
|
|
|
|
- $("#login-tab a[data-toggle='tab']").on('shown.bs.tab', function () {
|
|
|
|
- let type = $(this).data('type');
|
|
|
|
- type = parseInt(type);
|
|
|
|
- type = isNaN(type) || type <= 0 ? 1 : type;
|
|
|
|
- $("input[name='type']:hidden").val(type);
|
|
|
|
- });
|
|
|
|
- // $('#username').blur(function () {
|
|
|
|
- // let account = $(this).val();
|
|
|
|
- // // 判断输入的邮箱/手机是否格式正确
|
|
|
|
- // if(/^1[3456789]\d{9}$/.test(account) || /^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/.test(account)) {
|
|
|
|
- // $('#error-msg').hide();
|
|
|
|
- // } else {
|
|
|
|
- // $('#error-msg').show();
|
|
|
|
- // $('#error-msg').text('账号格式有误');
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
- $('#project').blur(function () {
|
|
|
|
- if ($(this).val() == '') {
|
|
|
|
- $('#project_name').text('');
|
|
|
|
- removeLocalCache('project_code');
|
|
|
|
- removeLocalCache('project_name');
|
|
|
|
- } else {
|
|
|
|
- const pcode = getLocalCache('project_code');
|
|
|
|
- if ($(this).val() !== pcode) {
|
|
|
|
- const pc = $(this).val();
|
|
|
|
- $.ajax({
|
|
|
|
- type: 'get',
|
|
|
|
- url: '/project/name',
|
|
|
|
- data: { code: pc },
|
|
|
|
- dataType: 'json',
|
|
|
|
- success: function (result) {
|
|
|
|
- setLocalCache('project_code', pc);
|
|
|
|
- if (result.err === 1) {
|
|
|
|
- $('#project_name').text('');
|
|
|
|
- console.log(result.msg);
|
|
|
|
- toast(result.msg, 'error', 'exclamation-circle');
|
|
|
|
- removeLocalCache('project_name');
|
|
|
|
- } else {
|
|
|
|
- setLocalCache('project_name', result.data);
|
|
|
|
- $('#project_name').text(result.data);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
-});
|
|
|
|
|
|
+<script>
|
|
|
|
+ const csrf = '<%= ctx.csrf %>'
|
|
</script>
|
|
</script>
|
|
|
|
+<script src="/public/js/login.js"></script>
|
|
</body>
|
|
</body>
|
|
|
|
|
|
</html>
|
|
</html>
|