|
@@ -45,7 +45,10 @@ class ActivityController extends O2oBaseController
|
|
|
}
|
|
|
//企业服务
|
|
|
public function actionEnterprise(){
|
|
|
- $this->render('Enterprise');
|
|
|
+ if (Yii::app()->request->getParam('success') == 1) {
|
|
|
+ CommonFn::requestAjax(true, '您的咨询已发送成功,请等待我们的企业管家与您联系,温馨提示,一般是一个工作日内,日间致电给您,请留意。');
|
|
|
+ }
|
|
|
+ $this->render('Enterprise');
|
|
|
}
|
|
|
|
|
|
public function actionSaveAdvisory(){
|
|
@@ -54,15 +57,16 @@ class ActivityController extends O2oBaseController
|
|
|
$homeType = Yii::app()->request->getParam('homeType','');
|
|
|
$num = Yii::app()->request->getParam('num','');
|
|
|
$area = intval(Yii::app()->request->getParam('mobile'));
|
|
|
-
|
|
|
+ $tech_content = Yii::app()->request->getParam('tech_content','');
|
|
|
$advisory = new Advisory();
|
|
|
$advisory->user_name = $name;
|
|
|
$advisory->area = $area;
|
|
|
$advisory->homeType = $homeType;
|
|
|
$advisory->num = $num;
|
|
|
$advisory->area =$area;
|
|
|
+ $advisory->tech_content = $tech_content;
|
|
|
if ($advisory->save()){
|
|
|
- CommonFn::requestAjax(false,'你的咨询已提交成功');
|
|
|
+ $this->redirect('http://commontest.yiguanjia.me/index.php?r=common/Activity/SinglesDay&success=1');
|
|
|
}
|
|
|
|
|
|
|