hurugang преди 2 години
родител
ревизия
07e6bf2f36
променени са 2 файла, в които са добавени 47 реда и са изтрити 0 реда
  1. 28 0
      src/main/resources/static/js/sfy_config.js
  2. 19 0
      src/main/resources/templates/sfy_config.html

+ 28 - 0
src/main/resources/static/js/sfy_config.js

@@ -76,6 +76,34 @@ $(function () {
         });
     });
 
+
+
+    /**
+     * 智能POS终端管理按钮点击事件
+     */
+    $("#posClientManager").on("click", function (t) {
+        window.open("http://172.16.32.201:8080/ccbmis/#");
+
+        // const iframeEle = document.getElementById("posClientManagerDiv");
+        // const loadingEle = document.getElementById("posClientManagerLoading");
+        // //设置ififrame透明
+        // iframeEle.style.opacity = 0;
+        // loadingEle.style.display = 'block';
+        // $("#posClientManagerDiv").attr("src", "http://172.16.32.201:8080/ccbmis/#");
+        // iframeEle.addEventListener('load', function () {
+        //     // Hide the loading indicator
+        //     loadingEle.style.display = 'none';
+        //     // Bring the iframe back
+        //     iframeEle.style.opacity = 1;
+        // });
+        // setTimeout(function () {
+        //     // iframe 重复加载不会触发上述事件
+        //     loadingEle.style.display = 'none';
+        //     iframeEle.style.opacity = 1;
+        // }, 1000);
+        // $("#posClientManagerModal").modal();
+    });
+
 });
 
 

+ 19 - 0
src/main/resources/templates/sfy_config.html

@@ -79,6 +79,7 @@
                     <div class="ln_solid"></div>
                     <div class="form-group">
                         <div class="col-md-6 col-md-offset-3">
+                            <button id="posClientManager" type="button" class="btn btn-primary">智能POS终端管理</button>
                             <button id="send" type="button" class="btn btn-success">提交</button>
                         </div>
                     </div>
@@ -88,6 +89,24 @@
     </div>
 </div>
 
+<!--&lt;!&ndash;智能POS终端管理弹窗开始&ndash;&gt;-->
+<!--<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="posClientManagerModal">-->
+    <!--<div class="modal-dialog modal-lg" style="width: calc(100% - 230px);height: 576px;">-->
+        <!--<div class="modal-content container">-->
+            <!--<div class="modal-header">-->
+                <!--<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>-->
+                <!--</button>-->
+                <!--<h4 class="modal-title modal-title-thmz" id="posClientManagerTitle">智能POS终端管理</h4>-->
+            <!--</div>-->
+            <!--<div class="loading" id="posClientManagerLoading" align="center" width="100%" height="320px" style="line-height: 450px;font-size: 50px;">正在加载,请稍等...</div>-->
+            <!--<iframe id="posClientManagerDiv" align="center" width="100%" height="600px"  frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="yes" ></iframe>-->
+        <!--</div>-->
+    <!--</div>-->
+<!--</div>-->
+<!--&lt;!&ndash;智能POS终端管理弹窗结尾&ndash;&gt;-->
+
+
+
 <object  id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
     <embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
 </object>