You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.7 KiB

3 days ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
  6. <link rel="stylesheet" href="/css/reset.css"/>
  7. <link rel="stylesheet" href="/mint-ui/mint-ui.min.css"/>
  8. <link rel="stylesheet" href="/css/mobile.css"/>
  9. <link href="/css/layui/layui.css" rel="stylesheet">
  10. </head>
  11. <body>
  12. <div id="app">
  13. <#if currentUser??>
  14. <div class="main-container" id="mainContainer">
  15. <div class="mint-header" style="position: fixed; top: 0; left: 0; right: 0; height: 40px; background: #26a2ff; z-index: 1000;">
  16. <div style="display: flex; align-items: center; justify-content: space-between; padding: 0 15px; height: 40px;">
  17. <div class="header-title">
  18. <img class="logo" height="30" src="/img/ccl-logo.png"/>
  19. </div>
  20. <img src="/img/logout2.svg" height="22" onclick="logout()" style="cursor: pointer; position: absolute; right: 15px;"/>
  21. </div>
  22. </div>
  23. <div style="padding: 60px 10px 10px 10px;">
  24. <div onclick="goToDispatch()" style="padding:12px; cursor: pointer;">
  25. <div style="width: 80px;height: 80px; border-radius:12px;background:#fff;border:1px solid #e6e6e6;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(0,0,0,.08);margin:0 auto;">
  26. <img src="/img/pick.svg" style="width: 45px;height: 45px;margin-bottom: 2px;"/>
  27. <div style="font-size:14px;color:#333;">生产领料</div>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. </#if>
  33. </div>
  34. <form id="frmLogout" action="/logout" method="post"></form>
  35. </body>
  36. <script type="text/javascript" src="/js/jquery/jquery-2.1.4.js"></script>
  37. <script src="/js/layui/layui.js"></script>
  38. <script>
  39. // 使用原生JavaScript替代Vue
  40. function logout() {
  41. document.getElementById('frmLogout').submit();
  42. }
  43. function goToDispatch() {
  44. window.location.href = '/mobile/shopOrder/shop_order';
  45. }
  46. // layui弹框测试方法
  47. function showTestDialog() {
  48. layui.use(['layer'], function(){
  49. var layer = layui.layer;
  50. if(true){
  51. layer.alert('请输入工单号');
  52. return;
  53. }
  54. // 也可以使用alert弹框
  55. // layer.alert('测试信息:系统运行正常!', {
  56. // icon: 1,
  57. // title: '测试结果'
  58. // });
  59. });
  60. }
  61. // 页面加载完成后显示内容
  62. document.addEventListener('DOMContentLoaded', function() {
  63. var mainContainer = document.getElementById('mainContainer');
  64. if (mainContainer) {
  65. mainContainer.style.display = 'block';
  66. }
  67. });
  68. </script>
  69. </html>