attributes = get_params(); $res = $form->search(); return $this->asJson($res); } public function actionListSelect() { $form = new ActivityCutPriceForm(); $form->attributes = get_params(); $res = $form->listSelect(); return $this->asJson($res); } /** * @return \yii\web\Response * 保存信息 */ public function actionSave() { $form = new ActivityCutPriceForm(); $form->attributes = post_params(); $res = $form->save(); return $this->asJson($res); } /** * @return \yii\web\Response * 获取信息 */ public function actionGetInfo() { $form = new ActivityCutPriceForm(); $form->attributes = get_params(); $res = $form->getInfo(); return $this->asJson($res); } /** * @return \yii\web\Response * 修改状态 */ public function actionDel() { $form = new ActivityCutPriceForm(); $form->attributes = post_params(); $form->store_id = get_store_id(); $res = $form->del(); return $this->asJson($res); } public function actionCatList() { $form = new ActivityCutPriceForm(); $form->name = get_params('name'); $form->status = get_params('status', -1); $form->store_id = get_store_id(); $res = $form->catList(); return $this->asJson($res); } public function actionCatInfo() { $form = new ActivityCutPriceForm(); $id = get_params('id', 0); $res = $form->catInfo($id); return $this->asJson($res); } public function actionCatSave() { $form = new ActivityCutPriceForm(); $id = post_params('id', 0); $name = post_params('name', ''); $pic_url = post_params('pic_url', ''); $sort = post_params('sort', 1000); $is_show = post_params('is_show', 1); $form->store_id = get_store_id(); $res = $form->catSave($id, $name, $pic_url, $sort, $is_show); return $this->asJson($res); } public function actionCatStatus() { $form = new ActivityCutPriceForm(); $form->ids = post_params('ids', 0); $form->status = post_params('status', 1); $form->store_id = get_store_id(); $res = $form->catStatus(); return $this->asJson($res); } public function actionBannerList() { $form = new ActivityCutPriceForm(); $form->name = get_params('name'); $form->activity_id = get_params('activity_id'); $form->store_id = get_store_id(); $res = $form->bannerList(); return $this->asJson($res); } public function actionBannerSave() { $form = new ActivityCutPriceForm(); $id = post_params('id', 0); $activity_id = post_params('activity_id', 0); $name = post_params('name', ''); $pic_url = post_params('pic_url', ''); $url = post_params('url', ''); $sort = post_params('sort', 1000); $form->store_id = get_store_id(); $res = $form->bannerSave($id, $activity_id, $name, $pic_url, $url, $sort); return $this->asJson($res); } public function actionBannerDel() { $form = new ActivityCutPriceForm(); $form->ids = post_params('ids', 0); $form->store_id = get_store_id(); $res = $form->bannerDel(); return $this->asJson($res); } public function actionConf(){ $form = new ActivityCutPriceForm(); $form->store_id = get_store_id(); $res = $form->conf(); return $this->asJson($res); } public function actionConfSave(){ $conf = input_params('conf'); $form = new ActivityCutPriceForm(); $form->store_id = get_store_id(); $res = $form->confSave($conf); return $this->asJson($res); } public function actionOrderList() { $form = new ActivityCutPriceForm(); $form->attributes = get_params(); $form->status = get_params('status', -1); $form->goods_name = get_params('goods_name'); $form->activity_id = get_params('activity_id'); $form->store_id = get_store_id(); $res = $form->orderList(); return $this->asJson($res); } public function actionOrderDel() { $form = new ActivityCutPriceForm(); $form->ids = post_params('ids', 0); $form->store_id = get_store_id(); $res = $form->orderDel(); return $this->asJson($res); } /** * 联盟审核列表 */ public function actionGetAuditList() { $form = new ActivityCutPriceForm(); $form->attributes = get_params(); $res = $form->auditList(); return $this->asJson($res); } /** * 活动审核状态修改 */ public function actionAuditHandle() { $form = new ActivityCutPriceForm(); $form->attributes = post_params(); $res = $form->auditHandle(); return $this->asJson($res); } }