|
|
|
@ -170,7 +170,7 @@ class GoodsNewController extends AdminController |
|
|
|
$form->select('goods_category_id'); |
|
|
|
$form->select('store_id')->required()->options($storeList); |
|
|
|
$form->text('name')->required()->maxLength(20); |
|
|
|
$form->image('cover_img')->required(); |
|
|
|
$form->image('cover_img')->url('ops/files')->required(); |
|
|
|
$form->number('sort'); |
|
|
|
}); |
|
|
|
$form->column(6, function (Form $form) { |
|
|
|
@ -185,19 +185,19 @@ class GoodsNewController extends AdminController |
|
|
|
}); |
|
|
|
$form->column(12, function (Form $form) { |
|
|
|
$form->hasMany('image_new_banners', function (Form\NestedForm $form) { |
|
|
|
$form->image('path')->width(2); |
|
|
|
$form->image('path')->url('ops/files')->width(2); |
|
|
|
$form->number('sort')->width(2)->default(0); |
|
|
|
$form->hidden('type')->value(1)->default(1); |
|
|
|
})->required(); |
|
|
|
$form->divider(); |
|
|
|
$form->hasMany('video_new_banners', function (Form\NestedForm $form) { |
|
|
|
$form->file('path')->width(2); |
|
|
|
$form->file('path')->url('ops/files')->width(2); |
|
|
|
$form->number('sort')->width(2)->default(0); |
|
|
|
$form->hidden('type')->value(2)->default(2); |
|
|
|
}); |
|
|
|
$form->divider(); |
|
|
|
|
|
|
|
$form->multipleImage('details_imgs')->help('按图片顺序上传'); |
|
|
|
$form->multipleImage('details_imgs')->url('ops/files')->help('按图片顺序上传'); |
|
|
|
$form->text('content')->maxLength(50); |
|
|
|
$form->text('remark')->maxLength(50); |
|
|
|
|
|
|
|
|