12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace mobile\controllers;
- use mobile\base\CommonController;
- use Yii;
- use mobile\base\Help;
- use mobile\server\TimeLimitsGroupServer;
- class TimelimitsgroupController extends CommonController{
- public function actionIndex()
- {
- $city=$this->City();
- return $this->render('index',['city'=>$city]);
- }
-
- public function actionGethouselist()
- {
- $modelServer = new TimeLimitsGroupServer();
- $rows = $modelServer->GroupHouselist(Yii::$app->request->get());
- if(!empty($rows))
- {
- return Help::JsonCode(Help::SUCCESS,'成功',$rows['data']);
- }
- return Help::JsonCode(Help::ERROR,'暂无相关楼盘数据');
- }
- private function City()
- {
- $city = new \common\models\CategoryCity();
- $city->state = 1;
- $city->pid = 0;
- $cityModel = $city->getList([]);
- return $cityModel;
- }
- public function actionIndextest()
- {
- $city=$this->City();
- return $this->render('indextest',['city'=>$city]);
- }
- }
|