From 0c32955adf977842d273724b279d583e164c1b37 Mon Sep 17 00:00:00 2001 From: liapples Date: Mon, 27 Sep 2021 15:10:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0removable=E5=92=8Cmargin-bott?= =?UTF-8?q?om:0;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/AdminSupplier/Controllers/ProductController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();