Commit 66a631c2 authored by hujun's avatar hujun

经纪人详情头像

parent 9e93716f
...@@ -849,7 +849,6 @@ class AAgents extends BaseModel ...@@ -849,7 +849,6 @@ class AAgents extends BaseModel
if ($id) { if ($id) {
$result = $this->field('id,name as realname,create_time,img,store_id')->find($id); $result = $this->field('id,name as realname,create_time,img,store_id')->find($id);
$result['head_portrait'] = 'user_header/' . $result['img']; //头像
$evaluate_grade = Db::table('u_evaluate') $evaluate_grade = Db::table('u_evaluate')
->field('sum(evaluate_grade) as evaluate_grade, count(*) as evaluate_num') ->field('sum(evaluate_grade) as evaluate_grade, count(*) as evaluate_num')
->where('agents_id', $id)->where('is_show', 0)->find(); ->where('agents_id', $id)->where('is_show', 0)->find();
...@@ -867,7 +866,7 @@ class AAgents extends BaseModel ...@@ -867,7 +866,7 @@ class AAgents extends BaseModel
$result['watch_shop'] = Db::table('u_appoint_watch_shop') $result['watch_shop'] = Db::table('u_appoint_watch_shop')
->where('agents_id', $id)->count(); //看铺 ->where('agents_id', $id)->count(); //看铺
$result['head_portrait'] = AGENTHEADERIMGURL.$result['head_portrait']; $result['head_portrait'] = AGENTHEADERIMGURL.$result['img'];
$bargain = new OBargainModel(); $bargain = new OBargainModel();
$result['JournalAccounts'] = $bargain->ifBargainNumByOrderId([ 'agent_id' => $id ]); //成交记录 $result['JournalAccounts'] = $bargain->ifBargainNumByOrderId([ 'agent_id' => $id ]); //成交记录
......
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