IndexController.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace app\modules\admin\controllers\superSales;
  3. use app\modules\admin\controllers\BaseController;
  4. use app\modules\admin\models\superSales\IndexForm;
  5. class IndexController extends BaseController
  6. {
  7. //开团列表
  8. public function actionSuperSalesList() {
  9. $form = new IndexForm();
  10. $form->attributes = get_params();
  11. $form->store_id = get_store_id();
  12. return $this->asJson($form->superSalesList());
  13. }
  14. //参团列表
  15. public function actionSuperSalesUserList() {
  16. $form = new IndexForm();
  17. $form->attributes = get_params();
  18. $form->store_id = get_store_id();
  19. return $this->asJson($form->superSalesUserList());
  20. }
  21. //团长列表
  22. public function actionSuperSalesSubList() {
  23. $form = new IndexForm();
  24. $form->attributes = get_params();
  25. $form->store_id = get_store_id();
  26. return $this->asJson($form->superSalesSubList());
  27. }
  28. //直推奖列表
  29. public function actionDirectAwardList() {
  30. $form = new IndexForm();
  31. $form->attributes = get_params();
  32. $form->store_id = get_store_id();
  33. return $this->asJson($form->directAwardList());
  34. }
  35. //分红奖列表
  36. public function actionDividendAwardList() {
  37. $form = new IndexForm();
  38. $form->attributes = get_params();
  39. $form->store_id = get_store_id();
  40. return $this->asJson($form->dividendAwardList());
  41. }
  42. }