Selaa lähdekoodia

修改订单列表

chenxiqiang 6 vuotta sitten
vanhempi
commit
54f7ddb33c

+ 2
- 1
manage-server/app/Http/Controllers/ProductController.php Näytä tiedosto

63
                 "id" => $product["id"],
63
                 "id" => $product["id"],
64
                 "classify" => $product["classify"],
64
                 "classify" => $product["classify"],
65
                 "name" => $product["name"],
65
                 "name" => $product["name"],
66
-                "price" => $product["price"]
66
+                "price" => $product["price"],
67
+                "photo" => $product["photo"]
67
             ];
68
             ];
68
         }, $products);
69
         }, $products);
69
 
70
 

+ 1
- 0
manage-server/app/Models/Product.php Näytä tiedosto

20
         'collect_num', // 收藏数
20
         'collect_num', // 收藏数
21
         'sell_num', // 销量
21
         'sell_num', // 销量
22
 		'status', // 产品状态, 上架/下架
22
 		'status', // 产品状态, 上架/下架
23
+        'photo', // 产品图片
23
 	];
24
 	];
24
 }
25
 }

+ 1
- 0
manage-server/database/migrations/2018_08_10_073946_create_products_table.php Näytä tiedosto

35
             $table->integer('status');
35
             $table->integer('status');
36
             $table->integer('collect_num');
36
             $table->integer('collect_num');
37
             $table->integer('sell_num');
37
             $table->integer('sell_num');
38
+            $table->string('photo');
38
         });
39
         });
39
     }
40
     }
40
 
41
 

Loading…
Peruuta
Tallenna