diff --git a/app/AdminSupplier/Controllers/ProductController.php b/app/AdminSupplier/Controllers/ProductController.php index cf9c140..1777ad5 100644 --- a/app/AdminSupplier/Controllers/ProductController.php +++ b/app/AdminSupplier/Controllers/ProductController.php @@ -120,13 +120,14 @@ class ProductController extends AdminController .has-many-spec .col-md-12{padding:0;} .has-many-spec .add.btn{display:none;} .has-many-spec .input-group-prepend{display:none;} + .has-many-spec .form-group{margin-bottom:0;} .has-many-spec .input-group>.form-control:not(:first-child){border-radius:.25rem;}'); Admin::script(file_get_contents(resource_path('js/batch-add-spec.js'))); })->useTable()->required(); if ($form->isEditing() && in_array($form->model()->status, [ProductStatus::SOLD_OUT, ProductStatus::ON_SALE])) { $form->radio('status')->options([1 => '上架', -2 => '下架'])->default(1); } - $form->multipleImage('pictures')->required(); + $form->multipleImage('pictures')->required()->removable(false)->uniqueName(); $form->editor('know'); $form->editor('content')->required(); $form->mobile('verify_mobile')->required();