Commit 87304e6d authored by hujun's avatar hujun

商铺列表城市和区搜索

parent 173a8b51
...@@ -242,6 +242,14 @@ class Houses extends Basic ...@@ -242,6 +242,14 @@ class Houses extends Basic
$where['d.landlord_phone'] = [ 'LIKE', '%' . $this->params['landlord_phone'] . '%' ]; $where['d.landlord_phone'] = [ 'LIKE', '%' . $this->params['landlord_phone'] . '%' ];
} }
if ($this->params['city'] != NULL) {
$where['a.city'] = $this->params['city'];
}
if ($this->params['disc'] != NULL) {
$where['a.disc'] = $this->params['disc'];
}
if (!empty($this->params['area'])) { if (!empty($this->params['area'])) {
switch ($this->params['area']) { switch ($this->params['area']) {
case 1: case 1:
......
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