Commit 06daf716 authored by hujun's avatar hujun

精选商铺

parent 9cc8ecc1
......@@ -209,4 +209,26 @@ class Houses extends Basic
return $this->response($data['status'], $data['msg'], $data['data']);
}
/**
* 是否精选商铺
*
* @return \think\Response
*/
public function carefullyChosen() {
$data['status'] = 200;
$data['msg'] = '';
$data['data'] = '';
$params = $this->request->param();
if ($params['houses_id'] != NULL && $params['is_carefully_chosen'] != NULL) {
$data['is_carefully_chosen'] = $params['is_carefully_chosen'];
$data['data'] = $this->house->editData($data,$params['houses_id'],'id');
} else {
$data['status'] = 101;
$data['msg'] = 'houses_id or is_carefully_chosen is null';
}
return $this->response($data['status'], $data['msg'], $data['data']);
}
}
\ No newline at end of file
......@@ -93,18 +93,19 @@ Route::group('index', [
'authClass'=>['index/auth/authClass', ['method' => 'get']], //--规则分类列表
'accessUser' => ['index/auth/accessUser', ['method' => 'get']], //成员授权
//商圈
'BusinessDistrict' => ['index/BusinessDistrict/index', ['method' => 'get']], //商圈列表
'editBusinessDistrict' => ['index/BusinessDistrict/edit', ['method' => 'get | post']], //编辑商圈
'delBusinessDistrict' => ['index/BusinessDistrict/del', ['method' => 'post']], //删除商圈列表
//商铺
'BusinessList' => ['index/BusinessDistrict/getBusiness', ['method' => 'get']], //获取商铺列表数据
'houseList' => ['index/Houses/index', ['method' => 'get']], //商铺列表
'houseEdit' => ['index/Houses/edit', ['method' => 'get|post']], //编辑商铺
'houseDel' => ['index/Houses/del', ['method' => 'post']], //删除商铺
'regions' => ['index/BusinessDistrict/regions', ['method' => 'get']], //获取省市区数据
'getHouseList' => ['index/houses/getHouseList', ['method' => 'get']], //楼盘列表
'carefullyChosen' => ['index/houses/carefullyChosen', ['method' => 'post']], //设置精选楼盘
]);
......
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