layout.ejs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <title><%= pageTitle || (ctx.menu.name === undefined ? (ctx.controllerName === 'setting' ? (ctx.isProjectController ? '平台' : '项目') + '设置' : '主页') : ctx.menu.name) %>-计量支付</title>
  7. <link rel="stylesheet" href="/public/css/bootstrap/bootstrap.min.css">
  8. <link rel="stylesheet" href="/public/css/main.css?<%- ctx.app.config.version %>">
  9. <% if (ctx.request.host.indexOf('jlqa') !== -1 || ctx.request.host.indexOf('jluat') !== -1 || ctx.request.host === '127.0.0.1:7002') { %>
  10. <link rel="stylesheet" href="/public/css/qa_side.css">
  11. <% } %>
  12. <link rel="stylesheet" href="/public/css/toast.css">
  13. <link rel="stylesheet" href="/public/css/font-awesome/font-awesome.min.css">
  14. <link rel="stylesheet" type="text/css" href="/public/css/jquery-ui/jquery-ui.min.css">
  15. <link rel="stylesheet" href="/public/css/spreadjs/sheets/gc.spread.sheets.excelsmartcost.css">
  16. <link rel="stylesheet" href="/public/css/jquery-contextmenu/jquery.contextMenu.min.css">
  17. <link rel="stylesheet" href="/public/css/ztree/zTreeStyle.css" type="text/css">
  18. <link rel="stylesheet" href="/public/css/datepicker/datepicker.min.css" type="text/css">
  19. <link rel="stylesheet" href="/public/css/toastr.css">
  20. <link rel="shortcut icon" href="/public/images/favicon.ico">
  21. <link rel="stylesheet" href="/public/css/radar-animation.css">
  22. <!-- JS. -->
  23. <% for (const file of jsFiles) { %>
  24. <script type="text/javascript" src="<%- file %>"></script>
  25. <% } %>
  26. </head>
  27. <body oncontextmenu="return false;"> <!--屏蔽input鼠标右键-->
  28. <div>
  29. </div>
  30. <div class="main">
  31. <% include ./menu.ejs %>
  32. <div class="main-panel">
  33. <%- content %>
  34. </div>
  35. </div>
  36. <div class="toast" style="text-align: center">
  37. <i class="icon fa"></i>
  38. <span class="message"></span>
  39. </div>
  40. <!-- 遮罩层 -->
  41. <div id="hide-all" style="display:none;position: absolute;width: 100%;height: 100%;top:0;left: 0;z-index:10000000">
  42. </div>
  43. <!-- 对接项目管理弹窗 -->
  44. <% include ./modal.ejs %>
  45. <%- modal %>
  46. <% if (ctx.session.sessionProject.page_show.openAssistant !== 0) { %>
  47. <% include ./assistant.ejs %>
  48. <% } %>
  49. <script type="text/javascript">
  50. toastr.options = {
  51. "closeButton": false,
  52. "debug": false,
  53. "newestOnTop": false,
  54. "progressBar": false,
  55. "positionClass": "toast-top-center",
  56. "preventDuplicates": false,
  57. "onclick": null,
  58. "showDuration": "300",
  59. "hideDuration": "1000",
  60. "timeOut": "5000",
  61. "extendedTimeOut": "1000",
  62. "showEasing": "swing",
  63. "hideEasing": "linear",
  64. "showMethod": "fadeIn",
  65. "hideMethod": "fadeOut"
  66. };
  67. const toastInfo = JSON.parse(unescape('<%- escape(JSON.stringify(message)) %>'));
  68. // try {
  69. // toastInfo = toastInfo !== '' && toastInfo !== 'null' ? JSON.parse(toastInfo) : '';
  70. // } catch (error) {
  71. // toastInfo = '';
  72. // }
  73. if (toastInfo !== '') {
  74. toastr[toastInfo.type](toastInfo.message);
  75. }
  76. const userID = <%- ctx.session.sessionUser.accountId %>;
  77. let user = '<%= ctx.session.sessionUser.name %>';
  78. const is_debug = <%- ctx.session.sessionUser.loginStatus ? true : false %>;
  79. const spid = '<%- (ctx.subProject ? ctx.subProject.id : '') %>';
  80. </script>
  81. <style type="text/css">
  82. .process-box{
  83. width: 100%;
  84. height: 12px;
  85. border-radius: 10px;
  86. background: #999;
  87. margin-top: 10px;
  88. /* border: 1px solid #ff6780; */
  89. }
  90. .process-child{
  91. position: relative;
  92. height:100%;
  93. border-radius:inherit;
  94. }
  95. .process-animate{
  96. background: #007BFF !important;
  97. color: white;
  98. text-align: center;
  99. position: absolute;
  100. left: 0;
  101. top: 0;
  102. bottom: 0;
  103. border-radius:inherit;
  104. animation: process 1s linear forwards ;
  105. }
  106. @keyframes process
  107. {
  108. 0%{
  109. left:0;right:100%;
  110. }
  111. 20%{
  112. right:80%
  113. }
  114. 40%{
  115. right:60%;
  116. }
  117. 60%{right:40%;}
  118. 80%{right:20%;}
  119. 100%{right:0;}
  120. }
  121. </style>
  122. </body>
  123. </html>