yzx 7 months ago
parent
commit
eb343d6d30
2 changed files with 8 additions and 6 deletions
  1. 2 1
      app/mobile/controller/Index.php
  2. 6 5
      app/mobile/view/index/main.html

+ 2 - 1
app/mobile/controller/Index.php

@@ -418,7 +418,8 @@ class Index
             $unread_id = 1;
         }
 
-
+        $unit_type = Db::name("department")->where("id", get_login_admin("unit_name"))->value("type");
+        View::assign('unit_type', $unit_type);
         View::assign("red_kan", $red_kan);
         View::assign("sent_review_cost", $sent_review_cost_real);
         View::assign("amount", $amount_real);

+ 6 - 5
app/mobile/view/index/main.html

@@ -142,7 +142,7 @@
                 </div>
             </div>
         </a>
-        
+        {if $unit_type != 1}
         <a href="{:url('mobile/contract/contract')}">
             <div class="new-item">
                 <div class="item-top">
@@ -153,7 +153,8 @@
                 </div>
             </div>
         </a>
-        
+        {/if}
+        {if $unit_type != 1}
         <a href="{:url('mobile/index/pending_invite')}">
             <div class="new-item first-item">
                 <div class="item-top">
@@ -164,8 +165,8 @@
                 </div>
             </div>
         </a>
-        
-        
+        {/if}
+        {if $unit_type != 1}
         
             <div class="new-item" onclick="myFunction()" value=>
                 <div class="item-top">
@@ -175,7 +176,7 @@
                     数据统计
                 </div>
             </div>
-        
+        {/if}
         
         <a href="{:url('mobile/index/contacts')}">
             <div class="new-item">