Commit e778ef57 authored by zw's avatar zw

详情页显示对内地址控制

parent c97dd8b9
...@@ -39,6 +39,9 @@ class Report extends Basic ...@@ -39,6 +39,9 @@ class Report extends Basic
/** /**
* 报备 * 报备
* @return \think\Response * @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/ */
public function report() public function report()
{ {
...@@ -58,8 +61,6 @@ class Report extends Basic ...@@ -58,8 +61,6 @@ class Report extends Basic
"intro" => "123123123",//备注 "intro" => "123123123",//备注
"predict_see_time" => time(),//预计到看时间 "predict_see_time" => time(),//预计到看时间
);*/ );*/
//todo 检查经纪人状态 basic类做
$agent_id = $params["report_agent_id"]; $agent_id = $params["report_agent_id"];
$agent_phone = $params["report_agent_phone"]; $agent_phone = $params["report_agent_phone"];
......
...@@ -300,6 +300,49 @@ class Shop extends Basic ...@@ -300,6 +300,49 @@ class Shop extends Basic
return $this->response("200", 'request success', $result); return $this->response("200", 'request success', $result);
} }
/**
* 报备搜索商铺
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getShopListByReport()
{
header('Access-Control-Allow-Origin:*');
$params = $this->params;
/* $params = array(
"keyword" => "vv", //1,2 external_title ,3,4internal_title
"pageNo" => 1,
"pageSize" => 15
);*/
$conditions = [];
$field = "id,internal_title as title,internal_address as address";
if(empty($params["city"])){
$conditions["city"] = trim($this->city);
}
$pageNo = empty($params['pageNo']) ? 1 : $params['pageNo'];
$pageSize = empty($params['pageSize']) ? 15 : $params['pageSize'];
if (isset($params['keyword']) && !empty($params['keyword']) ) {
$conditions['id|internal_title'] = array("like","%" . trim($params['keyword']) . "%");
}
$order_ = "status asc,id desc";
$conditions['status'] = array('eq', 1); //只显示上架
$result = $this->gHousesModel->getHousesList($pageNo, $pageSize, $order_, $field, $conditions, []);
if (empty($result)) {
return $this->response("200", "此条件没有找到数据");
}
return $this->response("200", 'request success', $result);
}
/** /**
* 返回楼盘id * 返回楼盘id
* @param $landlord_phone * @param $landlord_phone
......
...@@ -571,11 +571,12 @@ Route::group('broker', [ ...@@ -571,11 +571,12 @@ Route::group('broker', [
'all_user' => ['api_broker/Client/all_user', ['method' => 'post|get']],//全部客户 朱伟 'all_user' => ['api_broker/Client/all_user', ['method' => 'post|get']],//全部客户 朱伟
'inviteList' => ['api_broker/Client/inviteList', ['method' => 'get']], //邀请记录 'inviteList' => ['api_broker/Client/inviteList', ['method' => 'get']], //邀请记录
//商铺 //商铺
'getShopList' => ['api_broker/Shop/getShopList', ['method' => 'get|post']], 'getShopList' => ['api_broker/Shop/getShopList', ['method' => 'get|post']],
'getShopListByMap' => ['api_broker/MapFindHouse/getShopListByMap', ['method' => 'get|post']], 'getShopListByReport' => ['api_broker/Shop/getShopListByReport', ['method' => 'get|post']],
'getCityInfoByMap' => ['api_broker/MapFindHouse/getCityInfoByMap', ['method' => 'get|post']], 'getShopListByMap' => ['api_broker/MapFindHouse/getShopListByMap', ['method' => 'get|post']],
'getShopDetail' => ['api_broker/Shop/getShopDetail', ['method' => 'get']], 'getCityInfoByMap' => ['api_broker/MapFindHouse/getCityInfoByMap', ['method' => 'get|post']],
'addShopFollowUp' => ['api_broker/Shop/addShopFollowUp', ['method' => 'post']], //新增商铺跟进记录 'getShopDetail' => ['api_broker/Shop/getShopDetail', ['method' => 'get']],
'addShopFollowUp' => ['api_broker/Shop/addShopFollowUp', ['method' => 'post']], //新增商铺跟进记录
'reportList' => ['api_broker/Report/reportList', ['method' => 'get']], 'reportList' => ['api_broker/Report/reportList', ['method' => 'get']],
......
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