|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <?php
- /**
- * 门票下单流程控制器
- * ============================================================================
- * * 版权所有 蜘蛛出行 * *
- * 网站地址: http://www.zhizhuchuxing.com
- * ----------------------------------------------------------------------------
- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和
- * 使用;不允许对程序代码以任何形式任何目的的再发布。
- * ============================================================================
- * Author By: 倪宗锋
- * PhpStorm MenPController.php
- * Create By 2017/6/20 16:13 $
- */
-
- namespace zzcx\controllers\home;
-
- use common\util\Util;
- use yii\web\Controller;
- use zzcx\service\home\MenP;
-
- class MenPController extends Controller
- {
- public $service = null;
-
- public function service()
- {
- if ($this->service == null) {
- $this->service = new MenP();
- }
- return $this->service;
- }
-
-
- /**
- * Des:查询
- * Name: actionSearch
- * @return string
- * @author 倪宗锋
- */
- public function actionSearch()
- {
- $param = [
- 'prod_name' => htmlspecialchars(trim($this->_post('prod_name', ''))),//产品名称
- ];
- $getList = $this->service()->getSearch($param);
- return Util::returnJsSu('', $getList['data']);
- }
-
- /**
- * Des:门票销售页面初始化
- * Name: actionInitialize
- * @return string
- * @author 倪宗锋
- */
- public function actionInitialize()
- {
- $prod_cate_id = $this->_post('pro_cate_id', '');
- $result = $this->service()->getInitialize($prod_cate_id);
- return json_encode($result);
- }
-
- /**
- * Des:获取产品价格列表
- * Name: actionGetProdArr
- * @return string
- * @author 倪宗锋
- */
- public function actionGetProdArr()
- {
- $params = [
- 'prod_cate_id' => $this->_post('prod_cate_id', ''),
- 'date' => $this->_post('date', '')
- ];
- $result = $this->service()->getProdArrForDate($params);
- return json_encode($result);
- }
- }
|