Commit d9947bb4 authored by hujun's avatar hujun Committed by hujun

经纪人名显示修改

parent 8cfb8dce
...@@ -43,12 +43,27 @@ class GHouses extends BaseModel ...@@ -43,12 +43,27 @@ class GHouses extends BaseModel
if ($v['type'] == 1) { if ($v['type'] == 1) {
$agents_str .= $v['id'] . ','; $agents_str .= $v['id'] . ',';
$data['agents_name'][] = $v['id'] . '-' . $v['name'] . '-' . $v['phone']; $data['agents_name'][] = $v['id'] . '-' . $v['name'] . '-' . $v['phone'];
$data['agents_name_arr'][] = [
'id' => $v['id'],
'realname' => $v['name'],
'phone' => $v['phone'],
];
} elseif ($v['type'] == 2) { } elseif ($v['type'] == 2) {
$dish_str .= $v['id'] . ','; $dish_str .= $v['id'] . ',';
$data['dish_name'][] = $v['id'] . '-' . $v['name'] . '-' . $v['phone']; $data['dish_name'][] = $v['id'] . '-' . $v['name'] . '-' . $v['phone'];
$data['dish_name_arr'][] = [
'id' => $v['id'],
'realname' => $v['name'],
'phone' => $v['phone'],
];
} elseif ($v['type'] == 3) { } elseif ($v['type'] == 3) {
$exclusive_str .= $v['id'] . ','; $exclusive_str .= $v['id'] . ',';
$data['exclusive_name'][] = $v['id'] . '-' . $v['name'] . '-' . $v['phone']; $data['exclusive_name'][] = $v['id'] . '-' . $v['name'] . '-' . $v['phone'];
$data['exclusive_name_arr'][] = [
'id' => $v['id'],
'realname' => $v['name'],
'phone' => $v['phone'],
];
} }
} }
$data['agent_data'] = rtrim($agents_str, ','); $data['agent_data'] = rtrim($agents_str, ',');
...@@ -75,7 +90,7 @@ class GHouses extends BaseModel ...@@ -75,7 +90,7 @@ class GHouses extends BaseModel
$data['plan'] = []; $data['plan'] = [];
$data['exclusive_img'] = []; $data['exclusive_img'] = [];
foreach ($img_data as $k => $v) { foreach ($img_data as $k => $v) {
$v->img_name = CK_IMG_URL.'images'.$v->img_name; $v->img_name = CK_IMG_URL.'images/'.$v->img_name;
switch ($v->img_type) { switch ($v->img_type) {
case 1 : case 1 :
$data['cover'] = $v->img_name; $data['cover'] = $v->img_name;
......
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