| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <?php
- namespace app\modules\client\controllers\v1\shareGroup;
- use app\modules\client\controllers\BaseController;
- use app\modules\client\models\v1\shareGroup\GroupPurchaseForm;
- class GroupPurchaseController extends BaseController
- {
- //拼购区中心
- public function actionIndex() {
- $form = new GroupPurchaseForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- $form->user_id = get_user_id();
- $form->saas_id = get_saas_user_id();
- return $this->asJson($form->groupPurchaseCenter());
- }
- //拼购区商品
- public function actionGoodsList() {
- $form = new GroupPurchaseForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->goodsList());
- }
- //我的拼购订单
- public function actionGroupPurchaseOrder() {
- $form = new GroupPurchaseForm();
- $form->attributes = get_params();
- $form->user_id = get_user_id();
- $form->store_id = get_store_id();
- return $this->asJson($form->groupPurchaseOrder());
- }
- //拼购参团订单
- public function actionGroupPurchaseDetail() {
- $form = new GroupPurchaseForm();
- $form->attributes = get_params();
- $form->user_id = get_user_id();
- $form->store_id = get_store_id();
- return $this->asJson($form->groupPurchaseDetail());
- }
- //冻结佣金
- public function actionFreezeMoney() {
- $form = new GroupPurchaseForm();
- $form->attributes = get_params();
- $form->user_id = get_user_id();
- $form->store_id = get_store_id();
- return $this->asJson($form->freezeMoney());
- }
- //冻结佣金明细
- public function actionFreezeMoneyList() {
- $form = new GroupPurchaseForm();
- $form->attributes = get_params();
- $form->user_id = get_user_id();
- $form->store_id = get_store_id();
- return $this->asJson($form->freezeMoneyList());
- }
- //佣金明细(包含冻结)
- public function actionMoneyList() {
- $form = new GroupPurchaseForm();
- $form->attributes = get_params();
- $form->user_id = get_user_id();
- $form->store_id = get_store_id();
- return $this->asJson($form->moneyList());
- }
- //帮扶区
- public function actionSupportList() {
- $form = new GroupPurchaseForm();
- $form->attributes = get_params();
- $form->user_id = get_user_id();
- $form->store_id = get_store_id();
- return $this->asJson($form->supportList());
- }
- }
|