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()); } }