Commit d0e2bd30 authored by zhuwei's avatar zhuwei

首页客户商铺跟进加省市区搜索

parent 85fbbc6a
...@@ -79,7 +79,22 @@ class HomePageLog extends Basic ...@@ -79,7 +79,22 @@ class HomePageLog extends Basic
} }
} }
$where_["f.city"] = trim($this->city) ? trim($this->city) : '上海市';
if (!empty($params["province"]) && !empty($params["province"])) {
$where_["f.province"] = $params["province"];
}
if (!empty($params["city"]) && !empty($params["city"])) {
$where_["f.city"] = $params["city"];
}
if (!empty($params["disc"]) && !empty($params["disc"])) {
$where_["f.disc"] = $params["disc"];
}else{
$where_["f.city"] = trim($this->city) ? trim($this->city) : '上海市';
}
$order = "f.id desc"; $order = "f.id desc";
...@@ -162,6 +177,11 @@ class HomePageLog extends Basic ...@@ -162,6 +177,11 @@ class HomePageLog extends Basic
$where_["f.disc"] = $params['disc']; $where_["f.disc"] = $params['disc'];
} }
if (!empty($params["province"]) && !empty($params["province"])) {
$where_["f.province"] = $params["province"];
}
if (!empty($params["name_or_phone"])) { if (!empty($params["name_or_phone"])) {
if ((preg_match("/^1\d{10}$/", $params['name_or_phone']) != 1) or (strlen($params['name_or_phone']) < 6)) { if ((preg_match("/^1\d{10}$/", $params['name_or_phone']) != 1) or (strlen($params['name_or_phone']) < 6)) {
return $this->response("300", '手机号有误或者姓名不满两位汉字'); return $this->response("300", '手机号有误或者姓名不满两位汉字');
......
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