public function actionYybm() { $model = new \common\models\Feedback(); if ($model->load(Yii::$app->request->post()) && $model->save()) { echo "<script>alert('预约信息提交成功!');</script>"; } return $this->render('yybm', ['model' => $model]); }
public function actionYuyue() { $model = new \common\models\Feedback(); if ($model->load(Yii::$app->request->post()) && $model->save()) { echo "<script>alert('您的信息已提交,请耐心等待查询结果。');window.history.go(-1);</script>"; } else { echo "<script>alert('请准确填写您的信息');window.history.go(-1);</script>"; } //return $this->render('feedback',['model'=>$model]); //return $this->render('feedback'); }
public function actionFeed() { $model = new \common\models\Feedback(); if ($model->load(Yii::$app->request->post()) && $model->save()) { echo "<script>alert('留言信息提交成功!');window.history.go(-1);</script>"; } else { echo "<script>alert('提交失败,请确认是否登录并完善信息!');window.history.go(-1);</script>"; } //return $this->render('feedback',['model'=>$model]); //return $this->render('feedback'); }