| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?php
- namespace app\modules\client\controllers\v1\super_sales;
- use app\modules\client\controllers\BaseController;
- use app\modules\client\models\v1\super_sales\SuperSalesForm;
- class SuperSalesController extends BaseController
- {
- //超级卖货中心
- public function actionIndex() {
- $form = new SuperSalesForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- $form->user = get_user();
- $form->saas_user = get_saas_user();
- return $this->asJson($form->index());
- }
- //分红奖
- public function actionDividendAwardList() {
- $form = new SuperSalesForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- $form->user = get_user();
- return $this->asJson($form->dividendAwardList());
- }
- //直推奖
- public function actionDirectAwardList() {
- $form = new SuperSalesForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- $form->user = get_user();
- return $this->asJson($form->directAwardList());
- }
- //团列表
- public function actionSuperSalesList() {
- $form = new SuperSalesForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- $form->user = get_user();
- return $this->asJson($form->superSalesList());
- }
- //团信息
- public function actionSuperSalesInfo() {
- $form = new SuperSalesForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- $form->user = get_user();
- return $this->asJson($form->superSalesInfo());
- }
- //参团商品
- public function actionSuperSalesGoods() {
- $form = new SuperSalesForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- $form->user = get_user();
- return $this->asJson($form->superSalesGoods());
- }
- //我的推荐
- public function actionMyRecommend() {
- $form = new SuperSalesForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- $form->user = get_user();
- return $this->asJson($form->myRecommend());
- }
- //我的二维码
- public function actionMyQrcode() {
- $form = new SuperSalesForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- $form->user = get_user();
- return $this->asJson($form->myQrcode());
- }
- }
|