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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. namespace app\admin\controller\team;
  3. use app\common\basics\AdminBase;
  4. use app\common\server\JsonServer;
  5. use app\admin\logic\team\FoundLogic;
  6. use think\facade\View;
  7. /**
  8. * 拼团记录管理
  9. * Class Record
  10. * @package app\shop\controller\team
  11. */
  12. class Found extends AdminBase
  13. {
  14. /**
  15. * @Notes: 拼团记录
  16. * @Author: 张无忌
  17. */
  18. public function lists()
  19. {
  20. if ($this->request->isAjax()) {
  21. $get = $this->request->get();
  22. $lists = FoundLogic::lists($get);
  23. return JsonServer::success('获取成功', $lists);
  24. }
  25. View::assign('statistics', FoundLogic::statistics());
  26. return view();
  27. }
  28. /**
  29. * @Notes: 数据统计
  30. * @Author: 张无忌
  31. */
  32. public function statistics()
  33. {
  34. if ($this->request->isAjax()) {
  35. $detail = FoundLogic::statistics();
  36. return JsonServer::success('获取成功', $detail);
  37. }
  38. return JsonServer::error('异常');
  39. }
  40. /**
  41. * @Notes: 拼团记录详细
  42. * @Author: 张无忌
  43. */
  44. public function detail()
  45. {
  46. $id = $this->request->get('id');
  47. View::assign('detail', FoundLogic::detail($id));
  48. return view();
  49. }
  50. /**
  51. * @Notes: 参团列表
  52. * @Author: 张无忌
  53. */
  54. public function join()
  55. {
  56. if ($this->request->isAjax()) {
  57. $get = $this->request->get();
  58. $lists = FoundLogic::join($get);
  59. return JsonServer::success('获取成功', $lists);
  60. }
  61. return JsonServer::error('请求异常');
  62. }
  63. }