链街Dcat后台
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

  1. <?php
  2. namespace App\Admin\Forms\v3;
  3. use Dcat\Admin\Widgets\Form;
  4. use Symfony\Component\HttpFoundation\Response;
  5. class GoodsActivitySetting extends Form
  6. {
  7. /**
  8. * Handle the form request.
  9. *
  10. * @param array $input
  11. *
  12. * @return Response
  13. */
  14. public function handle(array $input)
  15. {
  16. // 获取外部传递参数
  17. $goodsId = $input['goods_id'];
  18. $coverImg= $input['cover_img'];
  19. $bannerImg= $input['img_banner'];
  20. return $this->error('修改成功');
  21. }
  22. /**
  23. * Build a form here.
  24. */
  25. public function form()
  26. {
  27. $id = $this->getKey();
  28. $this->display('activity_type_limit_nums','同一活动类型商品单笔订单可购买商品种数');
  29. $this->number('flash_sale','秒杀')->value()->default();
  30. $this->image('group_buy','团购')->value()->default();
  31. $this->image('new_product','新品')->value()->default();
  32. }
  33. /**
  34. * The data of the form.
  35. *
  36. * @return array
  37. */
  38. public function default()
  39. {
  40. return [];
  41. }
  42. }