| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace app\modules\admin\controllers;
- use app\modules\admin\models\AreaDividendForm;
- class AreaDividendController extends BaseController
- {
- //获取配置信息
- public function actionGetAreaAgentConfig() {
- $form = new AreaDividendForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->getAreaAgentConfig());
- }
- //保存配置信息
- public function actionSetAreaAgentConfig() {
- $form = new AreaDividendForm();
- $form->attributes = post_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->setAreaAgentConfig(post_params()));
- }
- //处理区域代理申请
- public function actionHandleAreaAgentApply() {
- $form = new AreaDividendForm();
- $form->attributes = post_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->handleAreaAgentApply());
- }
- // 获取申请列表
- public function actionGetAreaAgentApplyList() {
- $form = new AreaDividendForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->getAreaAgentApplyList());
- }
- //获取区域代理列表
- public function actionGetAreaAgentList() {
- $form = new AreaDividendForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->getAreaAgentList(all_params()));
- }
- //编辑代理员佣金状态
- public function actionSetAgentRate()
- {
- $form = new AreaDividendForm();
- $form->attributes = post_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->setAgentRate());
- }
- }
|