Commit 2310d009 authored by hujun's avatar hujun

修改时间

parent df0b1f6e
...@@ -70,7 +70,7 @@ class AppointmentTime extends Basic ...@@ -70,7 +70,7 @@ class AppointmentTime extends Basic
return $this->response("101", "预约时间为空,或者小于当前时间"); return $this->response("101", "预约时间为空,或者小于当前时间");
} }
$addPrams = array( $addPrams = array(
'expect_time' => date("Y-m-d H:i:s", strtotime($params["expect_time"] / 1000)), 'expect_time' => date("Y-m-d H:i:s", $params["expect_time"] / 1000),
'phone' => $params["phone"], 'phone' => $params["phone"],
'house_title' => $params["house_title"], 'house_title' => $params["house_title"],
'house_id' => $params["house_id"], 'house_id' => $params["house_id"],
......
...@@ -56,7 +56,7 @@ class WatchShop extends Basic ...@@ -56,7 +56,7 @@ class WatchShop extends Basic
$applies = new AppointWatchShop(); $applies = new AppointWatchShop();
$data['list'] = $applies->getAppointWatchShopList($pageNo, $pageSize, '', '*', $where); $data['list'] = $applies->getAppointWatchShopList($pageNo, $pageSize, 'id DESC', '*', $where);
$data['total'] = $applies->getAppointWatchShopListTotal($where); $data['total'] = $applies->getAppointWatchShopListTotal($where);
return $this->response($data['status'], $data['msg'], $data); return $this->response($data['status'], $data['msg'], $data);
} }
...@@ -80,11 +80,12 @@ class WatchShop extends Basic ...@@ -80,11 +80,12 @@ class WatchShop extends Basic
'house_id' => $apponit_data['house_id'], 'house_id' => $apponit_data['house_id'],
'customer' => $apponit_data['appellation'], 'customer' => $apponit_data['appellation'],
'phpone' => $apponit_data['phone'], 'phpone' => $apponit_data['phone'],
'go_off' => $apponit_data['expect_time'], 'go_off' => date('Y-m-d H:i:s', strtotime($apponit_data['expect_time'])),
'agent_shop_id' => $params['shop_id'], 'agent_shop_id' => $params['shop_id'],
'transaction_status' => 0, 'transaction_status' => 0,
'invite_id' => 0, 'invite_id' => 0,
'marketgroup_id' => 0 'marketgroup_id' => 0,
'created' => date("Y-m-d H:i:s")
])->save(); ])->save();
$remark = new Remarks(); $remark = new Remarks();
......
...@@ -84,7 +84,7 @@ define (['doT', 'text!temp/watch_template_tpl.html', 'css!style/home.css',"datet ...@@ -84,7 +84,7 @@ define (['doT', 'text!temp/watch_template_tpl.html', 'css!style/home.css',"datet
_html += '<li class="addphone"><span class="id">'+data['id'] _html += '<li class="addphone"><span class="id">'+data['id']
+'-</span><span class="phone_name">'+data['realname'] +'-</span><span class="phone_name">'+data['realname']
+'</span><span class="phone_span">-</span><span class="phone-phone">' +'</span><span class="phone_span">-</span><span class="phone-phone">'
+data['phone']+'</span><span class="father_id">' +data['phone']+'</span><span class="hidden father_id">'
+data['father_id']+'</span></li>'; +data['father_id']+'</span></li>';
}); });
$("#agents_list").html(_html); $("#agents_list").html(_html);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment