From 03e8d52b49d3c8dbd894b38fd22292396af4bb33 Mon Sep 17 00:00:00 2001 From: dengbw Date: Wed, 16 Mar 2022 10:22:25 +0800 Subject: [PATCH] customer_tag_316 --- admin/controllers/receiver/Customer.php | 31 +++++----- admin/views/receiver/customer/get.php | 75 ++++++++----------------- 2 files changed, 36 insertions(+), 70 deletions(-) diff --git a/admin/controllers/receiver/Customer.php b/admin/controllers/receiver/Customer.php index f964fd9c..39f516b3 100644 --- a/admin/controllers/receiver/Customer.php +++ b/admin/controllers/receiver/Customer.php @@ -241,32 +241,27 @@ class Customer extends HD_Controller public function get() { $id = $this->input->get('id'); - $this->load->model('auto/auto_series_model'); $this->load->model('auto/auto_attr_model'); - $row = $this->customers_model->get(array('id' => $id)); if (!$row) { return $this->show_json(SYS_CODE_FAIL, '客户不存在!'); } - $if_driver = 1 == $row['if_driver'] ? '是' : '否'; $is_top = 1 == $row['is_top'] ? '是' : '否'; - $car_json = json_decode($row['car_json'], true); - $version = $this->auto_attr_model->get(['id' => $car_json['v_id']], 'title'); - $color = $this->auto_attr_model->get(['id' => $car_json['c_id']], 'title'); - $side = $version ? $version['title'] : ''; - $color = $color ? $color['title'] : ''; + //$car_json = json_decode($row['car_json'], true); + //$version = $this->auto_attr_model->get(['id' => $car_json['v_id']], 'title'); + //$color = $this->auto_attr_model->get(['id' => $car_json['c_id']], 'title'); + //$side = $version ? $version['title'] : ''; + //$color = $color ? $color['title'] : ''; + //$row_brand = $this->auto_brand_model->get(array('id' => $row['brand_id']), 'name'); + //$row_seriy = $this->auto_series_model->get(array('id' => $row['s_id']), 'name'); $row_biz = $this->biz_model->get(array('id' => $row['biz_id'])); - $row_brand = $this->auto_brand_model->get(array('id' => $row['brand_id']), 'name'); - $row_seriy = $this->auto_series_model->get(array('id' => $row['s_id']), 'name'); //获取销售员 $row_admin = $this->app_licheb_users_model->get(array('id' => $row['admin_id']), 'id,uname'); - //操作日志 $rows_log = $this->customer_oplogs_model->select(array('customer_id' => $id), 'c_time desc', 0, 0); - //用户信息 if (SUPER_ADMIN == $this->role || 35 == $this->role) { $mobile_sub = $row['mobile']; @@ -315,12 +310,12 @@ class Customer extends HD_Controller array('title' => '到店次数', 'value' => $row['a_num']), array('title' => '试驾次数', 'value' => $row['t_num']), ), - array( - array('title' => '品牌', 'value' => $row_brand['name']), - array('title' => '车系', 'value' => $row_seriy['name']), - array('title' => '车型', 'value' => $side), - array('title' => '颜色', 'value' => $color), - ), +// array( +// array('title' => '品牌', 'value' => $row_brand['name']), +// array('title' => '车系', 'value' => $row_seriy['name']), +// array('title' => '车型', 'value' => $side), +// array('title' => '颜色', 'value' => $color), +// ), array( array('title' => '分配时间', 'value' => $row['p_time'] != '0000-00-00 00:00:00' ? $row['p_time'] : ''), array('title' => '最后联系', 'value' => $row['cont_time'] != '0000-00-00 00:00:00' ? $row['cont_time'] : ''), diff --git a/admin/views/receiver/customer/get.php b/admin/views/receiver/customer/get.php index f65772d8..37297b65 100644 --- a/admin/views/receiver/customer/get.php +++ b/admin/views/receiver/customer/get.php @@ -39,74 +39,46 @@ 用户信息 - +
- +
- - - + + + + + - - - + -
-
-
客户姓名:
- -
-
- 客户电话:{{info.mobile}} - - 渠道来源:{{info.cf_title}} - - 加入时间:{{info.c_time}} + + + + + +
客户姓名:
客户电话:{{info.mobile}}渠道来源:{{info.cf_title}}加入时间:{{info.c_time}}
线下来源:{{info.of_title}}线上来源:{{info.cf_name}} -
-
线下来源:
- {{info.of_title}}  -
-
- 线上来源:{{info.cf_name}} - - +
-
- -
-
@@ -120,8 +92,7 @@
- +
@@ -141,14 +112,14 @@
-
{{td.title}}:{{td.value}}
+