Commit ea6f3956 authored by zw's avatar zw

商铺列表

parent 4cbe1229
...@@ -83,6 +83,7 @@ class Shop extends Basic ...@@ -83,6 +83,7 @@ class Shop extends Basic
//是否对C端显示 181009 //是否对C端显示 181009
"is_show" => 0,//0是1否显示在c端用户 "is_show" => 0,//0是1否显示在c端用户
"is_exclusive_type" => 0,//是否独家0否1是 "is_exclusive_type" => 0,//是否独家0否1是
"is_lock" => 0,//是否锁盘0否1是
"pageNo" => 1, "pageNo" => 1,
"pageSize" => 15 "pageSize" => 15
...@@ -94,11 +95,12 @@ class Shop extends Basic ...@@ -94,11 +95,12 @@ class Shop extends Basic
if ($params['site_area'] == 1 || $params['site_area'] == 2) { if ($params['site_area'] == 1 || $params['site_area'] == 2) {
$field = "id,external_title as title,external_address as address,city,disc,business_district_id,status,industry_type $field = "id,external_title as title,external_address as address,city,disc,business_district_id,status,industry_type
,shop_area_start,shop_area_end,shop_type,residue_num,shop_sign,is_carefully_chosen,rent_type,rent_price"; ,shop_area_start,shop_area_end,shop_type,residue_num,shop_sign,is_carefully_chosen,rent_type,rent_price,is_exclusive_type";
} else { } else {
$field = "id,internal_title as title,internal_address as address,city,disc,business_district_id,status,industry_type $field = "id,internal_title as title,internal_address as address,city,disc,business_district_id,status,industry_type
,shop_area_start,shop_area_end,shop_type,residue_num,shop_sign,is_carefully_chosen,rent_type,rent_price,is_lock"; ,shop_area_start,shop_area_end,shop_type,residue_num,shop_sign,is_carefully_chosen,rent_type,rent_price,is_lock
,is_exclusive_type";
$conditions["city"] = trim($this->city); $conditions["city"] = trim($this->city);
} }
...@@ -161,6 +163,9 @@ class Shop extends Basic ...@@ -161,6 +163,9 @@ class Shop extends Basic
if (isset($params['is_exclusive_type'])) { //是否独家0否1是 if (isset($params['is_exclusive_type'])) { //是否独家0否1是
$conditions['is_exclusive_type'] = array("eq", $params['is_exclusive_type']); $conditions['is_exclusive_type'] = array("eq", $params['is_exclusive_type']);
} }
if (isset($params['is_lock'])) { //是否锁盘0否1是
$conditions['is_lock'] = array("eq", $params['is_lock']);
}
//我的商铺 代表我是盘方的商铺 //我的商铺 代表我是盘方的商铺
if (isset($params['agent_id'])) { if (isset($params['agent_id'])) {
......
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