You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
52 lines
1.1 KiB
<?php
|
|
|
|
namespace App\Admin\Forms\v3;
|
|
|
|
use Dcat\Admin\Widgets\Form;
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
|
|
class GoodsActivitySetting extends Form
|
|
{
|
|
|
|
/**
|
|
* Handle the form request.
|
|
*
|
|
* @param array $input
|
|
*
|
|
* @return Response
|
|
*/
|
|
public function handle(array $input)
|
|
{
|
|
// 获取外部传递参数
|
|
$goodsId = $input['goods_id'];
|
|
$coverImg= $input['cover_img'];
|
|
$bannerImg= $input['img_banner'];
|
|
|
|
|
|
return $this->error('修改成功');
|
|
}
|
|
|
|
/**
|
|
* Build a form here.
|
|
*/
|
|
public function form()
|
|
{
|
|
$id = $this->getKey();
|
|
|
|
$this->display('activity_type_limit_nums','同一活动类型商品单笔订单可购买商品种数');
|
|
$this->number('flash_sale','秒杀')->value()->default();
|
|
$this->image('group_buy','团购')->value()->default();
|
|
$this->image('new_product','新品')->value()->default();
|
|
}
|
|
|
|
/**
|
|
* The data of the form.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function default()
|
|
{
|
|
return [];
|
|
}
|
|
|
|
}
|