截流自动化的商城平台
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.

DistributionGoods.php 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace app\admin\controller\distribution;
  3. use app\admin\logic\distribution\DistributionGoodsLogic;
  4. use app\common\basics\AdminBase;
  5. use app\admin\logic\goods\CategoryLogic as MallCategoryLogic;
  6. use app\common\server\JsonServer;
  7. use app\shop\logic\goods\CategoryLogic as ShopCategoryLogic;
  8. /**
  9. * 分销商品
  10. * Class DistributionGoodsLogic
  11. * @package app\admin\controller\distribution
  12. */
  13. class DistributionGoods extends AdminBase
  14. {
  15. /**
  16. * @notes 分销商品列表页
  17. * @return \think\response\View
  18. * @author Tab
  19. * @date 2021/9/2 17:30
  20. */
  21. public function index()
  22. {
  23. if ($this->request->isPost()) {
  24. $params = $this->request->post();
  25. $lists = DistributionGoodsLogic::lists($params);
  26. return JsonServer::success('', $lists);
  27. }
  28. // 显示分销商品列表页
  29. $cate_list = MallCategoryLogic::categoryTreeeTree();
  30. return view('', ['cate_list' => $cate_list]);
  31. }
  32. /**
  33. * @notes 查看商品佣金比例
  34. * @return \think\response\View
  35. * @author Tab
  36. * @date 2021/9/2 17:57
  37. */
  38. public function detail()
  39. {
  40. $params = $this->request->get();
  41. $detail = DistributionGoodsLogic::detail($params);
  42. return view('', ['detail' => $detail]);
  43. }
  44. }