Commit dec47f10 authored by clone's avatar clone

返回客户搜索条件

parent 333e99ac
<?php
namespace app\api_broker\controller;
use app\api_broker\extend\Basic;
use think\Request;
/**
* Created by PhpStorm.
* User : zw
* Date : 2018/5/30
* Time : 16:49
* Intro:
*/
class User extends Basic
{
public function __construct($request = null)
{
parent::__construct($request);
}
/**
* 客户搜索条件
* @return \think\Response
*/
public function returnSearchCondition()
{
$result['industry_type'] = array( '全部', '轻餐饮', '重餐饮', '百货零售', '服装', '亲子教育', '休闲娱乐' );
//价格需求
$result['price'] = array(
array( 'id' => '-1', 'value' => '全部' ),
array( 'id' => '0', 'value' => '3万以上' ),
array( 'id' => '1', 'value' => '1万-3万' ),
array( 'id' => '2', 'value' => '1万以下' )
);
//面积
$result['area'] = array(
array( 'id' => '-1', 'value' => '全部' ),
array( 'id' => '0', 'value' => '30m²以内' ),
array( 'id' => '1', 'value' => '30-60m²' ),
array( 'id' => '2', 'value' => '60-100m²' ),
array( 'id' => '3', 'value' => '100m²以上' )
);
return $this->response("200", "request success", $result);
}
}
\ No newline at end of file
...@@ -450,6 +450,10 @@ Route::group('broker', [ ...@@ -450,6 +450,10 @@ Route::group('broker', [
'houseFollowUpList' => [ 'api_broker/HomePageLog/houseFollowUpList', [ 'method' => 'post' ] ], 'houseFollowUpList' => [ 'api_broker/HomePageLog/houseFollowUpList', [ 'method' => 'post' ] ],
//user
'returnSearchCondition' => [ 'api_broker/User/returnSearchCondition', [ 'method' => 'get' ] ], //客户搜索条件
]); ]);
//Route::miss('api/index/miss');//处理错误的url //Route::miss('api/index/miss');//处理错误的url
\ No newline at end of file
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