Commit 7ce61a4d authored by hujun's avatar hujun

Merge remote-tracking branch 'origin/wx0604' into wx0604

parents a1bb8c85 5e5b3bfc
...@@ -212,7 +212,7 @@ class AppointmentTime extends Basic ...@@ -212,7 +212,7 @@ class AppointmentTime extends Basic
public function getYetListV2($pageNo, $pageSize, $params) public function getYetListV2($pageNo, $pageSize, $params)
{ {
$field = "a.id,a.report_agent_phone as phone,a.report_agent_id as agents_id,a.predict_see_time as expect_time,b.house_id, $field = "a.id,a.report_agent_phone as phone,a.report_agent_id as agents_id,a.predict_see_time as expect_time,b.house_id,
d.external_title as house_title,d.residue_num as room_num_left"; d.external_title as house_title,d.residue_num as room_num_left, d.is_show,d.status";
$where_["a.user_id"] = $params["user_id"]; $where_["a.user_id"] = $params["user_id"];
// $result = $this->appointmentTimeModel->getHaveToSeeList($pageNo, $pageSize, "id desc", $field, $where_); // $result = $this->appointmentTimeModel->getHaveToSeeList($pageNo, $pageSize, "id desc", $field, $where_);
$result = $this->reportModel->getHaveToSeeList($pageNo, $pageSize, "id desc", $field, $where_); $result = $this->reportModel->getHaveToSeeList($pageNo, $pageSize, "id desc", $field, $where_);
......
...@@ -539,7 +539,9 @@ class OReportModel extends Model ...@@ -539,7 +539,9 @@ class OReportModel extends Model
a.predict_see_time AS expect_time, a.predict_see_time AS expect_time,
`b`.`house_id`, `b`.`house_id`,
d.external_title AS house_title, d.external_title AS house_title,
d.residue_num AS room_num_left d.residue_num AS room_num_left,
d.is_show,
d.status
FROM FROM
`o_report` `a` `o_report` `a`
LEFT JOIN `o_order` `b` ON `b`.`f_id` = `a`.`id` LEFT JOIN `o_order` `b` ON `b`.`f_id` = `a`.`id`
...@@ -558,7 +560,9 @@ class OReportModel extends Model ...@@ -558,7 +560,9 @@ class OReportModel extends Model
a.house_id, a.house_id,
a.user_id, a.user_id,
b.external_title AS house_title, b.external_title AS house_title,
b.residue_num AS room_num_left b.residue_num AS room_num_left,
b.is_show,
b.status
FROM FROM
u_appoint_watch_shop a u_appoint_watch_shop a
LEFT JOIN g_houses b ON a.house_id = b.id LEFT JOIN g_houses b ON a.house_id = b.id
......
...@@ -71,12 +71,18 @@ function loadMain(){ ...@@ -71,12 +71,18 @@ function loadMain(){
if(typeof data === 'object') { if(typeof data === 'object') {
if (data.code == 200) { if (data.code == 200) {
$('#customer_code').html(data['data']['user_info']['user_id']); $('#customer_code').html(data['data']['user_info']['user_id']);
$('#customer_name, #name').html(data['data']['user_info']['user_name']+(data['data']['user_info']['user_nick']?('('+data['data']['user_info']['user_nick']+')'):'')); $('#customer_name, #name').html((data['data']['user_info']['user_name'] == null?'':data['data']['user_info']['user_name'])+(data['data']['user_info']['user_nick']?('('+data['data']['user_info']['user_nick']+')'):''));
if(data['data']['user_info']['sex']==2){ if(data['data']['user_info']['sex']==2){
$('.sex-icon').attr('src','/app/images/girl_ic@2x.png'); $('.sex-icon').attr('src','/app/images/girl_ic@2x.png');
}; };
$('#industry_type').html(data['data']['user_info']['industry_type']); //如果业态没有则隐藏这个span
if(data['data']['user_info']['industry_type']){
$('#industry_type').html(data['data']['user_info']['industry_type']);
}else{
$('#industry_type').hide();
}
$('#price_demand').html(data['data']['user_info']['price_demand']+'元/月'); $('#price_demand').html(data['data']['user_info']['price_demand']+'元/月');
$('#area_demand').html(data['data']['user_info']['area_demand']+'㎡'); $('#area_demand').html(data['data']['user_info']['area_demand']+'㎡');
......
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