DengTao 8 سال پیش
والد
کامیت
1668c38eae

+ 2 - 0
www/protected/modules/o2o/controllers/AdvisoryController.php

@@ -76,6 +76,7 @@ class AdvisoryController extends O2oBaseController {
             $advisory->mobile = $mobile;
             $advisory->num = $num;
             $advisory->area =$area;
+            $advisory->type = '名宿保洁';
             $advisory->time = time();
             $advisory->status = 1;
             $advisory->tech_content = $tech_content;
@@ -103,6 +104,7 @@ class AdvisoryController extends O2oBaseController {
             $advisory->num = $num;
             $advisory->area = $area;
             $advisory->time = time();
+            $advisory->type = '企业服务';
             $advisory->status = 1;
             $advisory->tech_content = $tech_content;
             if ($advisory->save()) {

+ 1 - 0
www/protected/modules/o2o/models/Advisory.php

@@ -14,6 +14,7 @@ class Advisory extends MongoAr{
     public $homeType;
     public $num;
     public $sex;
+    public $type;//咨询类型
     public $tech_content;//服务内容
     public $status;//0 待处理 1 已处理
     public $time;//创建时间

+ 13 - 0
www/protected/modules/o2o/views/advisory/index.php

@@ -42,6 +42,18 @@
                                         </div>
                                     </div>
                                 </li>
+                                <li class="f_item">
+                                    <div class="box">
+                                        <div class="f_label">
+                                            <span>咨询类型: </span>
+                                        </div>
+                                        <div class="box_flex f_content">
+                                            <!--                                            <input type="text" name="mobile" id="edit_denomination" value='' />-->
+                                            <span id="type"></span>
+                                        </div>
+                                    </div>
+                                </li>
+
                                 <li class="f_item">
                                     <div class="box">
                                         <div class="f_label">
@@ -279,6 +291,7 @@
                 $('#area').html(data.area);
                 $('#homeType').html(data.homeType);
                 $('#num').html(data.num);
+                $('#type').html(data.type);
                 $('#user_name').html(data.user_name);
                 $('#tech_content').html(data.tech_content);
                 jq_content_form.form('load', data);