Browse Source

Merge branch 'master' of http://git.liuniu946.com/Kirin/mccs

zxhxx 2 years ago
parent
commit
7a59de6eca
2 changed files with 6 additions and 5 deletions
  1. 5 5
      app/admin/controller/company/Order.php
  2. 1 0
      app/admin/view/company/order/index.php

+ 5 - 5
app/admin/controller/company/Order.php

@@ -50,14 +50,14 @@ class Order extends AuthController
             'orderCount' => StoreOrderModel::orderCount($this->adminInfo['store_id']),
             'payTypeCount' => StoreOrderModel::payTypeCount($this->adminInfo['store_id']),
         ]);
-        $this->assign('type',$this->adminInfo['type']);
-        if($this->adminInfo['type']==0)
-        {
-            $this->assign('store',SystemStore::where('is_show',1)->where('is_del',0)->field('id,name')->select());
+        $this->assign('type', $this->adminInfo['type']);
+        if ($this->adminInfo['type'] == 0) {
+            $this->assign('store', SystemStore::where('is_show', 1)->where('is_del', 0)->field('id,name')->select());
         }
-        $this->assign('store_id',$this->adminInfo['store_id']);
+        $this->assign('store_id', $this->adminInfo['store_id']);
         return $this->fetch();
     }
+
     /**
      * 获取头部订单金额等信息
      * return json

+ 1 - 0
app/admin/view/company/order/index.php

@@ -99,6 +99,7 @@
                                     </div>
                                 </div>
                                 {eq name="type" value="0"}
+                                {:print_r($store)}
                                 <div class="layui-col-lg12">
                                     <label class="layui-form-label">商户:</label>
                                     <div class="layui-input-block">