浏览代码

修改订单列表

chenxiqiang 6 年前
父节点
当前提交
09f2a0efcf

+ 1
- 0
manage-server/app/Http/Controllers/CommonController.php 查看文件

165
                     $data["classify2"] = $order->classify2;
165
                     $data["classify2"] = $order->classify2;
166
                     $data["status"] = $order->status;
166
                     $data["status"] = $order->status;
167
                     $data["price"] = $order->price;
167
                     $data["price"] = $order->price;
168
+                    $data["api"] = $order->api;
168
                     //$data["created_at"] = $order->created_at->date;
169
                     //$data["created_at"] = $order->created_at->date;
169
                     array_push($orders, $data);
170
                     array_push($orders, $data);
170
                 }
171
                 }

+ 1
- 8
manage-server/app/Models/HouseApplianceCleanOrder.php 查看文件

13
 {
13
 {
14
     public $classify1 = "家政";
14
     public $classify1 = "家政";
15
     public $classify2 = "家电清洁";
15
     public $classify2 = "家电清洁";
16
+    public $order_type = "house_appliance_clean_order";
16
 
17
 
17
     protected $fillable = [
18
     protected $fillable = [
18
         'wechat_id', // 微信号id(open_id)
19
         'wechat_id', // 微信号id(open_id)
24
         'price', // 订单价格
25
         'price', // 订单价格
25
         'type' // 订单分类
26
         'type' // 订单分类
26
     ];
27
     ];
27
-
28
-    public function getClassify1() {
29
-        return $this->classify1;
30
-    }
31
-
32
-    public function getClassify2() {
33
-        return $this->classify2;
34
-    }
35
 }
28
 }

+ 1
- 0
manage-server/app/Models/HouseCleanOrder.php 查看文件

13
 {
13
 {
14
     public $classify1 = "家政";
14
     public $classify1 = "家政";
15
     public $classify2 = "家居清洁";
15
     public $classify2 = "家居清洁";
16
+    public $order_type = "house_clean_order";
16
 
17
 
17
     protected $fillable = [
18
     protected $fillable = [
18
         'wechat_id', // 微信号id(open_id)
19
         'wechat_id', // 微信号id(open_id)

+ 1
- 0
manage-server/app/Models/HousekeeperOrder.php 查看文件

14
 
14
 
15
     public $classify1 = "家政";
15
     public $classify1 = "家政";
16
     public $classify2 = "保姆";
16
     public $classify2 = "保姆";
17
+    public $order_type = "housekeeper_order";
17
 
18
 
18
     protected $fillable = [
19
     protected $fillable = [
19
         'wechat_id', // 微信号id(open_id)
20
         'wechat_id', // 微信号id(open_id)

+ 1
- 0
manage-server/app/Models/MaternityMatronOrder.php 查看文件

14
 
14
 
15
     public $classify1 = "家政";
15
     public $classify1 = "家政";
16
     public $classify2 = "月嫂";
16
     public $classify2 = "月嫂";
17
+    public $order_type = "maternity_matron_order";
17
 
18
 
18
     protected $fillable = [
19
     protected $fillable = [
19
         'wechat_id', // 微信号id(open_id)
20
         'wechat_id', // 微信号id(open_id)

+ 1
- 0
manage-server/app/Models/ProductOrder.php 查看文件

14
 
14
 
15
     public $classify1 = "产品";
15
     public $classify1 = "产品";
16
     public $classify2 = "产品";
16
     public $classify2 = "产品";
17
+    public $order_type = "product_order";
17
 
18
 
18
     protected $fillable = [
19
     protected $fillable = [
19
         'wechat_id', // 微信号id(open_id)
20
         'wechat_id', // 微信号id(open_id)

Loading…
取消
保存