deploy.html 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. {block name="resources"}
  2. <style type="text/css">
  3. .refresh-time {color: #B2B2B2;margin-top: 10px;}
  4. .form-row p {margin:8px 0 0 100px;font-size: 12px;color: #979897;}
  5. .all-box-item{width:100%;background: #FFFFFF;height: 160px;}
  6. .all-shop-information{width: 100%;background: white;padding: 15px;box-sizing: border-box;margin-top: 15px;margin-bottom: 30px;}
  7. .all-shop-information .all-top{display: flex;align-items: center;justify-content: space-between;}
  8. .all-shop-information .all-top a{font-size: 14px;margin-left: 10px;}
  9. .all-shop-information .all-top .edit{cursor: pointer;}
  10. .all-shop-information .all-item{display: flex;align-items: center;}
  11. .all-shop-information .all-item{margin-bottom: 18px;}
  12. .all-shop-information .all-item p{width: 140px;text-align: right;font-size: 14px;margin-right: 10px;color: #333;}
  13. .all-box-item .reason-growth{margin-left: 10px;color: #999;cursor: pointer;}
  14. .tips-wrap .layui-colla-content li{line-height: 20px;font-size: 13px;}
  15. .tips-wrap .layui-colla-title{line-height: 24px;height: 28px;font-size: 15px;}
  16. </style>
  17. {/block}
  18. {block name="main"}
  19. <div class="layui-form all-box-item all-shop-information">
  20. <div class="all-top">
  21. <div class="title">收银端设置</div>
  22. <span class="edit text-color" onclick="editOpenCashier()">编辑</span>
  23. </div>
  24. <div class="all-content">
  25. <div class="all-item">
  26. <p>部署方式:</p>
  27. <a>默认部署</a>
  28. </div>
  29. <div class="all-item">
  30. <p>收银端域名:</p>
  31. <a class="text-color" href="{$root_url}/cashregister" target="_blank">{$root_url}/cashregister</a>
  32. </div>
  33. </div>
  34. </div>
  35. {/block}
  36. {block name="script"}
  37. <script type="text/html" id="contentCashier">
  38. <div class="layui-form form-wrap">
  39. <div class="deploy-way default">
  40. <div class="layui-form-item web-url">
  41. <label class="layui-form-label">域名地址:</label>
  42. <div class="layui-input-block">
  43. <a href="{$root_url}/cashregister" target="_blank" class="text-color">{$root_url}/cashregister</a>
  44. </div>
  45. </div>
  46. <div class="form-row" style="margin: 0;">
  47. <label class="layui-form-label">部署操作:</label>
  48. <button class="layui-btn js-save" onclick="refreshCashier()">重新编译</button>
  49. <button class="layui-btn" onclick="window.open(ns.url('cashier://shop/index/downloadcashier'));">源码包下载</button>
  50. <p>以下几种情况,需重新编译</p>
  51. <p>在线升级后,需点击重新编译</p>
  52. <p>SSL证书变更后,由于http协议变更,则需点击重新编译</p>
  53. </div>
  54. </div>
  55. </div>
  56. </script>
  57. <script type="text/javascript">
  58. function refreshCashier(){
  59. if (repeat_flag) return false;
  60. repeat_flag = true;
  61. $.ajax({
  62. url: ns.url("cashier://shop/index/refreshcashier"),
  63. dataType: 'JSON',
  64. type: 'POST',
  65. success: function(res){
  66. repeat_flag = false;
  67. layer.msg(res.message);
  68. }
  69. });
  70. }
  71. //打开手机端编辑弹窗
  72. function editOpenCashier(){
  73. CashierPopup = layer.open({
  74. title:'收银端设置',
  75. type:1,
  76. area: 'auto',
  77. maxWidth:700,
  78. maxHeight:540,
  79. content:$('#contentCashier').html(),
  80. success:function(res){
  81. form.render();
  82. }
  83. })
  84. }
  85. </script>
  86. {/block}