| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\modules\admin\controllers;
- use app\models\Goods;
- use app\models\Option;
- use app\constants\OptionSetting;
- use app\modules\admin\models\ActivityCutPriceForm;
- class ActivityCutPriceController extends BaseController
- {
- /**
- * @return \yii\web\Response
- * 获取列表
- */
- public function actionList()
- {
- $form = new ActivityCutPriceForm();
- $form->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);
- }
- }
|