Commit 2db73d47 authored by clone's avatar clone

商铺类型

parent f7d10912
......@@ -38,6 +38,7 @@ class Shop extends Basic
"site_area" => 2, //来源 1首页 2搜索
"title" => "尚美",
"carefully_chosen" => 0, //精选商铺--0是1否
"shangpu_type"=> 0, //商铺类型(0商场,1街铺)
"disc" => "黄浦区",
"yetai" => "休闲娱乐",
"area_start" => 45,//面积起始范围 room_area2
......@@ -79,6 +80,9 @@ class Shop extends Basic
if (isset($params['yetai'])) { //业态
$conditions['yetai'] = array( 'like', "%" . trim($params['yetai']) . "%" );
}
if (isset($params['shangpu_type'])) { //商铺类型
$conditions['shangpu_type'] = array( "eq", $params['disc'] );
}
//面积 room_area最小面积 room_area2最大面积 参考老版本
if (isset($params['area_start']) && isset($params['area_end'])) {
......
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