Переглянути джерело

修改订单列表,添加photo

chenxiqiang 6 роки тому
джерело
коміт
d140221d62

+ 2
- 0
manage-server/app/Http/Controllers/CommonController.php Переглянути файл

174
                     $data["status"] = $order->status;
174
                     $data["status"] = $order->status;
175
                     $data["price"] = $order->price;
175
                     $data["price"] = $order->price;
176
                     $data["order_type"] = $order->order_type;
176
                     $data["order_type"] = $order->order_type;
177
+                    $data["photo"] = $order->photo;
177
                     $data["created_at"] = $order->created_at->toDateTimeString();
178
                     $data["created_at"] = $order->created_at->toDateTimeString();
178
                     array_push($orders, $data);
179
                     array_push($orders, $data);
179
                 }
180
                 }
186
                 $data["status"] = $order->status;
187
                 $data["status"] = $order->status;
187
                 $data["price"] = $order->price;
188
                 $data["price"] = $order->price;
188
                 $data["order_type"] = $order->order_type;
189
                 $data["order_type"] = $order->order_type;
190
+                $data["photo"] = $order->photo;
189
                 $data["created_at"] = $order->created_at->toDateTimeString();
191
                 $data["created_at"] = $order->created_at->toDateTimeString();
190
                 array_push($orders, $data);
192
                 array_push($orders, $data);
191
             }
193
             }

+ 2
- 1
manage-server/app/Models/HouseApplianceCleanOrder.php Переглянути файл

23
     	'phone',	//联系电话
23
     	'phone',	//联系电话
24
     	'status', // 订单状态
24
     	'status', // 订单状态
25
         'price', // 订单价格
25
         'price', // 订单价格
26
-        'type' // 订单分类
26
+        'type', // 订单分类
27
+        'photo' // 显示的图片
27
     ];
28
     ];
28
 }
29
 }

+ 2
- 1
manage-server/app/Models/HouseCleanOrder.php Переглянути файл

28
 		'picture4', // 图片4, 保持的是服务器上的图片地址
28
 		'picture4', // 图片4, 保持的是服务器上的图片地址
29
 		'picture5', // 图片5, 保持的是服务器上的图片地址
29
 		'picture5', // 图片5, 保持的是服务器上的图片地址
30
     	'status', // 订单状态
30
     	'status', // 订单状态
31
-        'price' // 订单价格
31
+        'price', // 订单价格
32
+        'photo' // 显示的图片
32
     ];
33
     ];
33
 }
34
 }

+ 2
- 1
manage-server/app/Models/HousekeeperOrder.php Переглянути файл

27
     	'contact', // 联系人
27
     	'contact', // 联系人
28
     	'phone',	//联系电话
28
     	'phone',	//联系电话
29
         'status', // 订单状态
29
         'status', // 订单状态
30
-        'price' // 订单价格
30
+        'price', // 订单价格
31
+        'photo' // 显示的图片
31
     ];
32
     ];
32
 }
33
 }

+ 2
- 1
manage-server/app/Models/MaternityMatronOrder.php Переглянути файл

26
         'contact', // 联系人
26
         'contact', // 联系人
27
         'phone',	//联系电话
27
         'phone',	//联系电话
28
         'status', // 订单状态
28
         'status', // 订单状态
29
-        'price' // 订单价格
29
+        'price', // 订单价格
30
+        'photo' // 显示的图片
30
     ];
31
     ];
31
 }
32
 }

+ 2
- 1
manage-server/app/Models/ProductOrder.php Переглянути файл

29
 		'info', // 卖家信息
29
 		'info', // 卖家信息
30
 		'contact', // 买家联系人
30
 		'contact', // 买家联系人
31
 		'address', // 买家地址
31
 		'address', // 买家地址
32
-		'phone' // 买家手机号码
32
+		'phone', // 买家手机号码,
33
+        'photo' // 显示的图片
33
 	];
34
 	];
34
 }
35
 }

+ 1
- 0
manage-server/database/migrations/2018_08_10_074321_create_product_orders_table.php Переглянути файл

45
             $table->string('contact');
45
             $table->string('contact');
46
             $table->string('address');
46
             $table->string('address');
47
             $table->string('phone');
47
             $table->string('phone');
48
+            $table->string('photo');
48
         });
49
         });
49
     }
50
     }
50
 
51
 

+ 1
- 0
manage-server/database/migrations/2018_08_10_075128_create_maternity_matron_orders_table.php Переглянути файл

38
             $table->string('phone');
38
             $table->string('phone');
39
             $table->integer('status');
39
             $table->integer('status');
40
             $table->double('price');
40
             $table->double('price');
41
+            $table->string('photo');
41
         });
42
         });
42
     }
43
     }
43
 
44
 

+ 1
- 0
manage-server/database/migrations/2018_08_10_075742_create_housekeeper_orders_table.php Переглянути файл

41
             $table->string('phone');
41
             $table->string('phone');
42
             $table->integer('status');
42
             $table->integer('status');
43
             $table->double('price');
43
             $table->double('price');
44
+            $table->string('photo');
44
         });
45
         });
45
     }
46
     }
46
 
47
 

+ 1
- 0
manage-server/database/migrations/2018_08_10_080158_create_house_clean_orders_table.php Переглянути файл

45
             $table->string('phone');
45
             $table->string('phone');
46
             $table->integer('status');
46
             $table->integer('status');
47
             $table->double('price');
47
             $table->double('price');
48
+            $table->string('photo');
48
         });
49
         });
49
     }
50
     }
50
 
51
 

+ 1
- 0
manage-server/database/migrations/2018_08_10_080546_create_house_applicance_clean_orders_table.php Переглянути файл

33
             $table->string('phone');
33
             $table->string('phone');
34
             $table->integer('status');
34
             $table->integer('status');
35
             $table->double('price');
35
             $table->double('price');
36
+            $table->string('photo');
36
         });
37
         });
37
     }
38
     }
38
 
39
 

Loading…
Відмінити
Зберегти