gang.huang 1 年之前
父節點
當前提交
34fcba0335
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. 8 2
      admin/templates/default/provider.amount.control.php

+ 8 - 2
admin/templates/default/provider.amount.control.php

@@ -92,7 +92,7 @@
         height: calc(100vh - 220px);
         overflow: auto;
         display: block;
-        margin-top: 80px;
+        margin-top: 30px;
     }
 
     #price_table tr th:first-child {
@@ -171,7 +171,7 @@
     <div class="fixed-empty"></div>
     <form id="price_form" enctype="multipart/form-data" method="post">
         <input type="hidden" name="form_submit" value="ok" />
-        <table class="table tb-type2 tableFixed" style="top: 60px;">
+        <table class="table tb-type2 tableFixed" style="top: 10px;">
             <tbody class="tbody">
                 <tr>
                     <td colspan="2" class="required"><label></label></td>
@@ -303,6 +303,12 @@
 <script type="text/javascript">
     $(function() {
 
+       const navRealHeight = $('.fixed-bar').height();
+       if(navRealHeight > 50) {
+        $('.tb-type2.tableFixed').css('top','60px')
+        $('#price_table').css('margin-top','80px');
+       }
+
         // console.log("$output['datas']", <?php echo json_encode($output['datas']) ?>, <?php echo json_encode($output['providers']) ?>);
 
         // $(window).scroll(function() {