SuperSalesController.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. namespace app\modules\client\controllers\v1\super_sales;
  3. use app\modules\client\controllers\BaseController;
  4. use app\modules\client\models\v1\super_sales\SuperSalesForm;
  5. class SuperSalesController extends BaseController
  6. {
  7. //超级卖货中心
  8. public function actionIndex() {
  9. $form = new SuperSalesForm();
  10. $form->attributes = get_params();
  11. $form->store_id = get_store_id();
  12. $form->user = get_user();
  13. $form->saas_user = get_saas_user();
  14. return $this->asJson($form->index());
  15. }
  16. //分红奖
  17. public function actionDividendAwardList() {
  18. $form = new SuperSalesForm();
  19. $form->attributes = get_params();
  20. $form->store_id = get_store_id();
  21. $form->user = get_user();
  22. return $this->asJson($form->dividendAwardList());
  23. }
  24. //直推奖
  25. public function actionDirectAwardList() {
  26. $form = new SuperSalesForm();
  27. $form->attributes = get_params();
  28. $form->store_id = get_store_id();
  29. $form->user = get_user();
  30. return $this->asJson($form->directAwardList());
  31. }
  32. //团列表
  33. public function actionSuperSalesList() {
  34. $form = new SuperSalesForm();
  35. $form->attributes = get_params();
  36. $form->store_id = get_store_id();
  37. $form->user = get_user();
  38. return $this->asJson($form->superSalesList());
  39. }
  40. //团信息
  41. public function actionSuperSalesInfo() {
  42. $form = new SuperSalesForm();
  43. $form->attributes = get_params();
  44. $form->store_id = get_store_id();
  45. $form->user = get_user();
  46. return $this->asJson($form->superSalesInfo());
  47. }
  48. //参团商品
  49. public function actionSuperSalesGoods() {
  50. $form = new SuperSalesForm();
  51. $form->attributes = get_params();
  52. $form->store_id = get_store_id();
  53. $form->user = get_user();
  54. return $this->asJson($form->superSalesGoods());
  55. }
  56. //我的推荐
  57. public function actionMyRecommend() {
  58. $form = new SuperSalesForm();
  59. $form->attributes = get_params();
  60. $form->store_id = get_store_id();
  61. $form->user = get_user();
  62. return $this->asJson($form->myRecommend());
  63. }
  64. //我的二维码
  65. public function actionMyQrcode() {
  66. $form = new SuperSalesForm();
  67. $form->attributes = get_params();
  68. $form->store_id = get_store_id();
  69. $form->user = get_user();
  70. return $this->asJson($form->myQrcode());
  71. }
  72. }