DengTao 8 年之前
父节点
当前提交
52771912b9

+ 17 - 52
www/protected/modules/moonclub/controllers/AdvisoryController.php → www/protected/modules/moonclub/controllers/ReserveController.php

@@ -6,12 +6,12 @@
  * Date: 2016/11/9
  * Date: 2016/11/9
  * Time: 17:55
  * Time: 17:55
  */
  */
-class AdvisoryController extends MoonClubBaseController
+class ReserveController extends MoonClubBaseController
 {
 {
 
 
 	public function actionIndex()
 	public function actionIndex()
 	{
 	{
-		$status_option = CommonFn::getComboboxData(Advisory::$status_option, 1, true, 100);
+		$status_option = CommonFn::getComboboxData(reserve::$status_option, 1, true, 100);
 		$this->render('index', [
 		$this->render('index', [
 			'status_option' => $status_option
 			'status_option' => $status_option
 		]);
 		]);
@@ -35,9 +35,9 @@ class AdvisoryController extends MoonClubBaseController
 			$criteria->status('==', $status);
 			$criteria->status('==', $status);
 		}
 		}
 
 
-		$cursor = Advisory::model()->findAll($criteria);
+		$cursor = Reserve::model()->findAll($criteria);
 		$rows = CommonFn::getRowsFromCursor($cursor);
 		$rows = CommonFn::getRowsFromCursor($cursor);
-		$parsedRows = Advisory::model()->parse($rows);
+		$parsedRows = Reserve::model()->parse($rows);
 		$total = $cursor->count();
 		$total = $cursor->count();
 
 
 		echo CommonFn::composeDatagridData($parsedRows, $total);
 		echo CommonFn::composeDatagridData($parsedRows, $total);
@@ -54,47 +54,14 @@ class AdvisoryController extends MoonClubBaseController
 		if ($status == 100) {
 		if ($status == 100) {
 			CommonFn::requestAjax(false, '请选择状态');
 			CommonFn::requestAjax(false, '请选择状态');
 		}
 		}
-		$advisory = Advisory::model()->get(new MongoId($id));
-		$advisory->status = $status;
-		$success = $advisory->save();
+        $reserve = Reserve::model()->get(new MongoId($id));
+        $reserve->status = $status;
+		$success = $reserve->save();
 		if ($success) {
 		if ($success) {
 			CommonFn::requestAjax(true, '修改成功');
 			CommonFn::requestAjax(true, '修改成功');
 		}
 		}
 
 
 	}
 	}
-
-
-	//名宿保洁
-	public function actionSinglesDay()
-	{
-
-		$name = Yii::app()->request->getParam('user_name', '');
-		$area = str_replace('string:', "", Yii::app()->request->getParam('area', ''));
-		$homeType = str_replace('string:', "", Yii::app()->request->getParam('homeType', ''));
-		$num = str_replace('string:', "", Yii::app()->request->getParam('num', ''));
-		$mobile = Yii::app()->request->getParam('mobile');
-		$tech_content = Yii::app()->request->getParam('tech_content', '');
-		if ($name) {
-			$advisory = new Advisory();
-			$advisory->user_name = $name;
-			$advisory->area = $area;
-			$advisory->homeType = $homeType;
-			$advisory->mobile = $mobile;
-			$advisory->num = $num;
-			$advisory->area = $area;
-			$advisory->type = '名宿保洁';
-			$advisory->time = time();
-			$advisory->status = 1;
-			$advisory->tech_content = $tech_content;
-			if ($advisory->save()) {
-				echo '您的咨询已发送成功,请等待我们的管家与您联系,温馨提示,一般是一个工作日内,日间致电给您,请留意。';
-				exit;
-			}
-		}
-
-		$this->render('SinglesDay');
-	}
-
 	//企业服务
 	//企业服务
 	public function actionEnterprise()
 	public function actionEnterprise()
 	{
 	{
@@ -105,18 +72,16 @@ class AdvisoryController extends MoonClubBaseController
 		$mobile = Yii::app()->request->getParam('mobile');
 		$mobile = Yii::app()->request->getParam('mobile');
 		$tech_content = str_replace('string:', "", Yii::app()->request->getParam('tech_content', ''));
 		$tech_content = str_replace('string:', "", Yii::app()->request->getParam('tech_content', ''));
 		if ($name) {
 		if ($name) {
-			$advisory = new Advisory();
-			$advisory->user_name = $name;
-			$advisory->area = $area;
-			$advisory->homeType = $homeType;
-			$advisory->mobile = $mobile;
-			$advisory->num = $num;
-			$advisory->area = $area;
-			$advisory->time = time();
-			$advisory->type = '企业服务';
-			$advisory->status = 1;
-			$advisory->tech_content = $tech_content;
-			if ($advisory->save()) {
+			$reserve = new Reserve();
+			$reserve->user_name = $name;//名字
+			$reserve->homeType = $homeType;//套餐类型
+			$reserve->mobile = $mobile;//手机号
+			$reserve->num = $num;//预产期
+			$reserve->time = time();//预约时间
+			$reserve->type = '月子会所';
+			$reserve->status = 1;
+			$reserve->tech_content = $tech_content;
+			if ($reserve->save()) {
 				echo '您的咨询已发送成功,请等待我们的管家与您联系,温馨提示,一般是一个工作日内,日间致电给您,请留意。';
 				echo '您的咨询已发送成功,请等待我们的管家与您联系,温馨提示,一般是一个工作日内,日间致电给您,请留意。';
 				exit;
 				exit;
 			}
 			}

+ 1 - 1
www/protected/modules/moonclub/models/Advisory.php → www/protected/modules/moonclub/models/Reserve.php

@@ -6,7 +6,7 @@
  * Time: 17:05
  * Time: 17:05
  * 咨询模型
  * 咨询模型
  */
  */
-class Advisory extends MongoAr{
+class Reserve extends MongoAr{
     public $_id;
     public $_id;
     public $user_name;
     public $user_name;
     public $mobile;
     public $mobile;

+ 0 - 229
www/protected/modules/moonclub/views/advisory/SinglesDay.php

@@ -1,229 +0,0 @@
-<!DOCTYPE html>
-<!--HTML5 doctype-->
-<html ng-app="myapp">
-<head>
-  <title>壹管家</title>
-  <meta http-equiv="Content-type" content="text/html; charset=utf-8">
-  <meta name="viewport"
-        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
-  <meta name="apple-mobile-web-app-capable" content="yes">
-  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
-  <meta http-equiv="Pragma" content="no-cache">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge">
-  <!--引入css文件-->
-  <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/webapp/common/css/common.css">
-  <link rel="stylesheet" href=" <?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap-3.3.7.min.css">
-  <!--引入js文件-->
-  <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-3.1.1.min.js"></script>
-  <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/AngularJS v1.4.3.min.js"></script>
-  <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/bootstrap-3.3.7.min.js"></script>
-  <!--修改title-->
-  <script>
-    $(function () {
-      document.title = "壹管家";
-    })
-  </script>
-</head>
-<body ng-controller="myctrl">
-<div class="">
-  <form action="" method='post'
-        class="container  form-horizontal  ng-valid ng-dirty ng-valid-parse" id='singlesDay'
-        style="margin-bottom: 15%; ">
-    <div class="container">
-      <!--姓名-->
-      <div class="form-group">
-        <label>姓名:</label>
-        <input type="text" name='user_name' class="form-control username" placeholder="请输入您的姓名" ng-model="username">
-      </div>
-      <!--选择区域-->
-      <div class="form-group">
-        <label>选择区域:</label>
-        <select name="area" onchange="theforever(this.value)" class="form-control" ng-model="Area"
-                ng-init="Area=AreaList[0].id"
-                ng-options="info.name as info.name for info in AreaList" id="">
-          <option value="">--请选择--</option>
-        </select>
-      </div>
-      <!--房型-->
-      <div class="form-group">
-        <label>选择房型:</label>
-        <select name="homeType" onchange="theforever(this.value)" class="form-control" ng-model="Type"
-                ng-init="Type=TypeList[0].id"
-                ng-options="type.name as type.name for type in TypeList" id="">
-          <option value="">--请选择--</option>
-        </select>
-      </div>
-      <!--房源套数-->
-      <div class="form-group">
-        <label>选择房源套数:</label>
-        <select name="num" onchange="theforever(this.value)" class="form-control" ng-model="Num"
-                ng-init="Num=NumList[0].id"
-                ng-options="num.name as num.name for num in NumList" id="">
-          <option value="">--请选择--</option>
-        </select>
-      </div>
-      <!--手机号码-->
-      <div class="form-group">
-        <label>手机号码:</label>
-        <input type="text" name="mobile" class="form-control"
-               placeholder="请输入您的手机号码" ng-model="phone"/>
-      </div>
-      <!--性别-->
-      <div class="form-group">
-        <div style="display: inline-block;max-width: 100%;margin-bottom: 5px;font-weight: 700;">性别:</div>
-        <div>
-          <label class="radio-inline">
-            <input type="radio" name="sex" value="先生" ng-model="sex">先生
-          </label>
-          <label class="radio-inline">
-            <input type="radio" name="sex" value="女士" ng-model="sex">女士
-          </label>
-        </div>
-      </div>
-      <!--按钮-->
-      <div class="form-group">
-        <a id="SinglesDayBtn"
-          style="background: rgb(42,36,0);color:rgb(178,143,0);border: 0"
-          class="btn btn-success col-xs-12"
-          data-container="body"
-          data-toggle="popover"
-          data-placement="top"
-          data-content="{{btnContent}}">
-          提交
-        </a>
-      </div>
-    </div>
-  </form>
-</div>
-<div class="prevent-scroll">
-  <div class="box my-action">
-    <!--首页-->
-    <div class="width-percent-33">
-      <div class="title-container-square">
-        <a class="btn-home-action btn-action-my-order" href="/index.php?r=o2o/web/index#">
-          <div class="logo logo-my-order" style="margin-bottom: 5px;"></div>
-          <div class="name">首页</div>
-        </a>
-      </div>
-    </div>
-    <!--LOGO-->
-    <div class="width-percent-33">
-      <div class="title-container-square">
-        <a class="btn-home-action btn-action-logo" href="/index.php?r=o2o/advisory/im">
-          <div class="logo logo-my-logo"></div>
-        </a>
-      </div>
-    </div>
-    <!--我的-->
-    <div class="width-percent-33">
-      <div class="title-container-square">
-        <a class="btn-home-action btn-action-coupon">
-          <div class="logo logo-coupon" style="margin-bottom: 5px;"></div>
-          <div class="name">我的</div>
-        </a>
-      </div>
-    </div>
-  </div>
-</div>
-<!--模态框-->
-<div class="model" style="width: 100%;position: fixed;top: 0;background: rgba(0,0,0,0.4)">
-  <!--错误提示容器-->
-  <div class="model-box"
-       style="border-radius: 10px;height:130px;display:none;width: 70%;background: #fff;margin: 0 auto;top:25%;left:15%;position: fixed;">
-    <div class="model-title"
-         style="font-family: '微软雅黑', 'Microsoft YaHei', 'STHeiti Light';width: 100%;text-align: center;font-size: 1.1rem;margin-top: 5%;"></div>
-    <div class="model-content"
-         style="font-family: '微软雅黑', 'Microsoft YaHei', 'STHeiti Light';margin: 0 auto;width: 80%;background: rgb(42,36,0);color:rgb(178,143,0);font-size: 1.3rem;margin-top: 30px;text-align: center;padding: 5px 0 5px 0"></div>
-  </div>
-</div>
-</body>
-</html>
-<script>
-  var myapp = angular.module('myapp', []);
-  myapp.controller('myctrl', ['$scope', function ($scope) {
-    $('.model-content').on('click', function () {
-      if ($('.model-content').html() == '返回首页') {
-        window.location.href = '/index.php?r=o2o/web/index';
-      } else {
-        $('.model').css('height', '0');
-        $('.model-box').css('display', 'none');
-      }
-    });
-    /*表单提交进行判断*/
-    $('#SinglesDayBtn').on('click', function () {
-        /*姓名是否为空*/
-        if ($scope.username == undefined) {
-          model('请重填', '确认您的姓名');
-          return false;
-        }
-
-
-
-        /*验证手机号码*/
-        if (!(/^1[34578]\d{9}$/.test($scope.phone)) || $scope.phone == 0) {
-          model('请重填', '手机号码有误');
-          return false;
-        }
-        /*性别*/
-        if ($scope.sex == undefined) {
-          model('请重新选择', '确认');
-          return false;
-        }
-        /*model*/
-        $.ajax({
-          url: 'index.php?r=o2o/Advisory/SinglesDay',
-          type: 'POST',
-          dataType: 'html',
-          data: $('#singlesDay').serialize(),
-          success: function (message) {
-            model(message,'返回首页');
-
-          },
-          error: function (message) {
-            model('标题', '咨询失败');
-          }
-
-
-        });
-
-        function model(title, content) {
-          $('.model-box').css('display', 'inline');
-          $('.model').height(window.screen.height);
-          $('.model-title').html(title);
-          $('.model-content').html(content);
-        }
-      }
-    );
-
-    $scope.AreaList = [
-      {'id': 1, 'name': '跨多个区', 'parent': 1, type: '2'},
-      {'id': 2, 'name': '黄浦区', 'parent': 1, type: '2'},
-      {'id': 3, 'name': '徐汇区', 'parent': 1, type: '2'},
-      {'id': 4, 'name': '长宁区', 'parent': 1, type: '2'},
-      {'id': 5, 'name': '静安区', 'parent': 1, type: '2'},
-      {'id': 6, 'name': '普陀区', 'parent': 1, type: '2'},
-      {'id': 7, 'name': '虹口区', 'parent': 1, type: '2'},
-      {'id': 8, 'name': '杨浦区', 'parent': 1, type: '2'},
-      {'id': 9, 'name': '闵行区', 'parent': 1, type: '2'},
-      {'id': 10, 'name': '宝山区', 'parent': 1, type: '2'},
-      {'id': 11, 'name': '嘉定区', 'parent': 1, type: '2'},
-      {'id': 12, 'name': '浦东新区', 'parent': 1, type: '2'},
-      {'id': 13, 'name': '金山区', 'parent': 1, type: '2'},
-      {'id': 14, 'name': '松江区', 'parent': 1, type: '2'},
-      {'id': 15, 'name': '青浦区', 'parent': 1, type: '2'},
-      {'id': 16, 'name': '奉贤区', 'parent': 1, type: '2'}
-    ];
-    $scope.TypeList = [
-      {'id': 1, 'name': '一户室', 'parent': 1, type: '3'},
-      {'id': 2, 'name': '两户室', 'parent': 1, type: '3'},
-      {'id': 3, 'name': '三户及以上', 'parent': 1, type: '3'},
-      {'id': 4, 'name': '单间', 'parent': 1, type: '3'},
-      {'id': 5, 'name': '多套多房型', 'parent': 1, type: '3'},
-    ];
-    $scope.NumList = [
-      {'id': 1, 'name': '整房三套以下', 'parent': 1, type: '4'},
-      {'id': 2, 'name': '整房三套以上', 'parent': 1, type: '4'},
-      {'id': 3, 'name': '多套单间', 'parent': 1, type: '4'}
-    ]
-  }])
-</script>

+ 0 - 219
www/protected/modules/moonclub/views/advisory/enterprise.php

@@ -1,219 +0,0 @@
-<!DOCTYPE html>
-<!--HTML5 doctype-->
-<html ng-app="myapp">
-<head>
-  <title>壹管家</title>
-  <meta http-equiv="Content-type" content="text/html; charset=utf-8">
-  <meta name="viewport"
-        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
-  <meta name="apple-mobile-web-app-capable" content="yes">
-  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
-  <meta http-equiv="Pragma" content="no-cache">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge">
-  <!--引入css文件-->
-  <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/webapp/common/css/common.css">
-  <link rel="stylesheet" href=" <?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap-3.3.7.min.css">
-  <!--引入js文件-->
-  <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-3.1.1.min.js"></script>
-  <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/bootstrap-3.3.7.min.js"></script>
-  <!--修改title-->
-  <script>
-    $(function () {
-      document.title = "壹管家";
-    })
-  </script>
-</head>
-<body ng-controller="myctrl">
-<div class="container" style="margin-top: 2rem">
-  <form action="" method='post'
-        class="container  form-horizontal  ng-valid ng-dirty ng-valid-parse" id='enterprise'
-        style="margin-bottom: 15%; ">
-      <!--姓名-->
-      <div class="form-group">
-        <label>姓名:</label>
-        <input type="text" name='user_name' class="form-control username" placeholder="请输入您的姓名" ng-model="username">
-      </div>
-      <!--选择区域-->
-      <div class="form-group">
-        <label>选择区域:</label>
-        <select name="area" class="form-control" ng-model="Area" ng-init="Area=AreaList[0].id"
-                ng-options="info.name as info.name for info in AreaList" id="">
-          <option value="">--请选择--</option>
-        </select>
-      </div>
-      <!--房型-->
-      <div class="form-group">
-        <label>选择服务:</label>
-        <select name="tech_content" class="form-control" ng-model="AechContent" ng-init="AechContent=AechContentList[0].id"
-                ng-options="type.name as type.name for type in AechContentList" id="">
-          <option value="">--请选择--</option>
-        </select>
-      </div>
-
-      <!--手机号码-->
-      <div class="form-group">
-        <label>手机号码:</label>
-        <input type="text" name="mobile" class="form-control"
-               placeholder="请输入您的手机号码" ng-model="phone"/>
-      </div>
-      <!--性别-->
-      <div class="form-group">
-        <div style="display: inline-block;max-width: 100%;margin-bottom: 5px;font-weight: 700;">性别:</div>
-        <div>
-          <label class="radio-inline">
-            <input type="radio" name="sex" value="先生" ng-model="sex">先生
-          </label>
-          <label class="radio-inline">
-            <input type="radio" name="sex" value="女士" ng-model="sex">女士
-          </label>
-        </div>
-      </div>
-      <!--按钮-->
-      <div class="form-group">
-        <a id="enterpriseBtn"
-            style="background: rgb(42,36,0);color:rgb(178,143,0);border: 0"
-            class="btn btn-success col-xs-12"
-            data-container="body"
-            data-toggle="popover"
-            data-placement="top"
-            data-content="{{btnContent}}">
-          提交
-        </a>
-      </div>
-    </div>
-  </form>
-</div>
-<div class="prevent-scroll">
-  <div class="box my-action">
-    <!--首页-->
-    <div class="width-percent-33">
-      <div class="title-container-square">
-        <a class="btn-home-action btn-action-my-order" href="/index.php?r=o2o/web/index">
-          <div class="logo logo-my-order" style="margin-bottom: 0.5rem;"></div>
-          <div class="name">首页</div>
-        </a>
-      </div>
-    </div>
-    <!--LOGO-->
-    <div class="width-percent-33">
-      <div class="title-container-square">
-        <a class="btn-home-action btn-action-logo" href="/index.php?r=o2o/advisory/im">
-          <div class="logo logo-my-logo"></div>
-        </a>
-      </div>
-    </div>
-    <!--我的-->
-    <div class="width-percent-33">
-      <div class="title-container-square">
-        <a class="btn-home-action btn-action-coupon">
-          <div class="logo logo-coupon"style="margin-bottom: 0.5rem;"></div>
-          <div class="name">我的</div>
-        </a>
-      </div>
-    </div>
-  </div>
-</div>
-<!--模态框-->
-<div class="model" style="width: 100%;position: fixed;top: 0;background: rgba(0,0,0,0.4)">
-  <!--错误提示容器-->
-  <div class="model-box"
-       style="border-radius: 10px;height:130px;display:none;width: 70%;background: #fff;margin: 0 auto;top:25%;left:15%;position: fixed;">
-    <div class="model-title"
-         style="font-family: '微软雅黑', 'Microsoft YaHei', 'STHeiti Light';width: 100%;text-align: center;font-size: 1.1rem;margin-top: 5%;"></div>
-    <div class="model-content"
-         style="font-family: '微软雅黑', 'Microsoft YaHei', 'STHeiti Light';margin: 0 auto;width: 80%;background: rgb(42,36,0);color:rgb(178,143,0);font-size: 1.3rem;margin-top: 30px;text-align: center;padding: 5px 0 5px 0"></div>
-  </div>
-</div>
-</body>
-</html>
-<script src="//cdn.bootcss.com/angular.js/1.4.3/angular.min.js"></script>
-<script>
-  var myapp = angular.module('myapp', []);
-  myapp.controller('myctrl', ['$scope', function ($scope) {
-    $('.model-content').on('click', function () {
-      if ($('.model-content').html() == '返回首页') {
-        window.location.href = '/index.php?r=o2o/web/index';
-      } else {
-        $('.model').css('height', '0');
-        $('.model-box').css('display', 'none');
-      }
-    });
-    /*表单提交进行判断*/
-    $('#enterpriseBtn').on('click', function () {
-
-          /*姓名是否为空*/
-          if ($scope.username == undefined) {
-            model('请重填', '确认您的姓名');
-            return false;
-          }
-          /*验证手机号码*/
-          if (!(/^1[34578]\d{9}$/.test($scope.phone)) || $scope.phone == 0) {
-            model('请重填', '手机号码有误');
-            return false;
-          }
-          /*性别*/
-          if ($scope.sex == undefined) {
-            model('请重新选择', '确认');
-            return false;
-          }
-          /*model*/
-
-          $.ajax({
-            url: 'index.php?r=o2o/Advisory/enterprise',
-            type: 'POST',
-            dataType: 'html',
-            data: $('#enterprise').serialize(),
-            success: function (message) {
-              model(message,'返回首页');
-
-            },
-            error: function (message) {
-              model('标题', '咨询失败');
-            }
-          });
-
-          function model(title, content) {
-            $('.model-box').css('display', 'inline');
-            $('.model').height(window.screen.height);
-            $('.model-title').html(title);
-            $('.model-content').html(content);
-          }
-        }
-    );
-
-    $scope.AreaList = [
-      {'id': 1, 'name': '跨多个区', 'parent': 1, type: '2'},
-      {'id': 2, 'name': '黄浦区', 'parent': 1, type: '2'},
-      {'id': 3, 'name': '徐汇区', 'parent': 1, type: '2'},
-      {'id': 4, 'name': '长宁区', 'parent': 1, type: '2'},
-      {'id': 5, 'name': '静安区', 'parent': 1, type: '2'},
-      {'id': 6, 'name': '普陀区', 'parent': 1, type: '2'},
-      {'id': 7, 'name': '虹口区', 'parent': 1, type: '2'},
-      {'id': 8, 'name': '杨浦区', 'parent': 1, type: '2'},
-      {'id': 9, 'name': '闵行区', 'parent': 1, type: '2'},
-      {'id': 10, 'name': '宝山区', 'parent': 1, type: '2'},
-      {'id': 11, 'name': '嘉定区', 'parent': 1, type: '2'},
-      {'id': 12, 'name': '浦东新区', 'parent': 1, type: '2'},
-      {'id': 13, 'name': '金山区', 'parent': 1, type: '2'},
-      {'id': 14, 'name': '松江区', 'parent': 1, type: '2'},
-      {'id': 15, 'name': '青浦区', 'parent': 1, type: '2'},
-      {'id': 16, 'name': '奉贤区', 'parent': 1, type: '2'}
-    ];
-    $scope.AechContentList=[
-      {'id': 1, 'name': '写字楼日常保洁', 'parent': 1, type: '3'},
-      {'id': 2, 'name': '展会日常保洁', 'parent': 1, type: '3'},
-      {'id': 3, 'name': '开荒保洁', 'parent': 1, type: '3'},
-      {'id': 4, 'name': '地毯清洁', 'parent': 1, type: '3'},
-      {'id': 5, 'name': '地板打蜡', 'parent': 1, type: '3'},
-      {'id': 6, 'name': '沙发清洗', 'parent': 1, type: '3'},
-      {'id': 7, 'name': '电器清洗', 'parent': 1, type: '3'},
-      {'id': 8, 'name': '玻璃清洗', 'parent': 1, type: '3'},
-      {'id': 9, 'name': '整体消毒', 'parent': 1, type: '3'},
-      {'id': 10, 'name': '电器消毒', 'parent': 1, type: '3'},
-      {'id': 11, 'name': '除尘除螨', 'parent': 1, type: '3'}
-    ];
-
-  }])
-
-
-</script>

+ 0 - 67
www/protected/modules/moonclub/views/advisory/im.php

@@ -1,67 +0,0 @@
-<!--/**
- * Created by PhpStorm.
- * User: Jinguo
- * Date: 2016/11/11
- * Time: 13:14
- */-->
-<!DOCTYPE html>
-<!--HTML5 doctype-->
-<html ng-app="myapp">
-<head>
-  <title>壹管家</title>
-  <meta http-equiv="Content-type" content="text/html; charset=utf-8">
-  <meta name="viewport"
-        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
-  <meta name="apple-mobile-web-app-capable" content="yes">
-  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
-  <meta http-equiv="Pragma" content="no-cache">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge">
-  <!--引入css文件-->
-  <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/webapp/common/css/common.css">
-  <link rel="stylesheet" href=" <?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap-3.3.7.min.css">
-  <!--引入js文件-->
-  <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-3.1.1.min.js"></script>
-  <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/bootstrap-3.3.7.min.js"></script>
-  <!--修改title-->
-  <script>
-    $(function () {
-      document.title = "壹管家";
-	    $('img').height($(window).height());
-	    $('img').width($(window).width());
-    })
-  </script>
-</head>
-<body>
-  <img src="http://odulvej8l.bkt.clouddn.com/1110%E4%BA%8C%E7%BB%B4%E7%A0%81.jpg" alt="联系我们" style="width: 100%;margin-top: -0.2rem">
-<div class="prevent-scroll">
-  <div class="box my-action">
-    <!--首页-->
-    <div class="width-percent-33">
-      <div class="title-container-square">
-        <a class="btn-home-action btn-action-my-order" href="/index.php?r=o2o/web/index">
-          <div class="logo logo-my-order" style="margin-bottom: 0.5rem;"></div>
-          <div class="name">首页</div>
-        </a>
-      </div>
-    </div>
-    <!--LOGO-->
-    <div class="width-percent-33">
-      <div class="title-container-square">
-        <a class="btn-home-action btn-action-logo" href="/index.php?r=o2o/advisory/im">
-          <div class="logo logo-my-logo"></div>
-        </a>
-      </div>
-    </div>
-    <!--我的-->
-    <div class="width-percent-33">
-      <div class="title-container-square">
-        <a class="btn-home-action btn-action-coupon">
-          <div class="logo logo-coupon"style="margin-bottom: 0.5rem;"></div>
-          <div class="name">我的</div>
-        </a>
-      </div>
-    </div>
-  </div>
-</div>
-</body>
-</html>

+ 4 - 4
www/protected/modules/moonclub/views/advisory/month.php

@@ -68,7 +68,7 @@
 				</select>
 				</select>
 			</div>
 			</div>
 			<!--数据-->
 			<!--数据-->
-			<input type="text" name="area" value="享月会" style="position: absolute;top:-1000px;">
+
 			<!--预产期-->
 			<!--预产期-->
 			<div class="form-group">
 			<div class="form-group">
 				<input name="num" class="form-control" style="background-color: #fff;" id="demo1" type="text" readonly=""
 				<input name="num" class="form-control" style="background-color: #fff;" id="demo1" type="text" readonly=""
@@ -108,14 +108,14 @@
 	myapp.controller('myctrl', ['$scope', function ($scope) {
 	myapp.controller('myctrl', ['$scope', function ($scope) {
 		$('.model-content').on('click', function () {
 		$('.model-content').on('click', function () {
 			if ($('.model-content').html() == '返回首页') {
 			if ($('.model-content').html() == '返回首页') {
-				window.location.href = '/index.php?r=o2o/web/index';
+				window.location.href = '/index.php?r=moonclub/web/index';
 			} else {
 			} else {
 				$('.model').css('height', '0');
 				$('.model').css('height', '0');
 				$('.model-box').css('display', 'none');
 				$('.model-box').css('display', 'none');
 			}
 			}
 		});
 		});
 		$('.gradient').on('click',function () {
 		$('.gradient').on('click',function () {
-			window.location.href = '/index.php?r=o2o/web/index';
+			window.location.href = '/index.php?r=moonclub/web/index';
 		})
 		})
 		/*表单提交进行判断*/
 		/*表单提交进行判断*/
 		$('#SinglesDayBtn').on('click', function () {
 		$('#SinglesDayBtn').on('click', function () {
@@ -131,7 +131,7 @@
 				}
 				}
 				/*model*/
 				/*model*/
 				$.ajax({
 				$.ajax({
-					url: 'index.php?r=o2o/Advisory/SinglesDay',
+					url: 'index.php?r=moonclub/Reserve/SinglesDay',
 					type: 'POST',
 					type: 'POST',
 					dataType: 'html',
 					dataType: 'html',
 					data: $('#singlesDay').serialize(),
 					data: $('#singlesDay').serialize(),