Commit fb0474d2 authored by clone's avatar clone

h5详情

parent dbbe6239
......@@ -73,7 +73,8 @@ class Index
*/
public function getShopDetail()
{
$id = $_POST["id"];
$id = $_POST["id"] ? $_POST["id"] : $_GET["id"];
$field = "id,management_fee,title,address,city,room_area,room_area2,business_area,disc,disccircles,sales,slotting_fee,transfer_fee,
yetai,room_area2,shangpu_type,is_test,sellingpoint,singn_rule,business_date,start_business_date,opentime,has_gas,traffic,
room_num_left,room_num_total,shangpu_tags,carefully_chosen,price,dish,file_path";
......@@ -87,13 +88,16 @@ class Index
$conditions['show_all'] = array( 'eq', 0 ); //只显示公开楼盘
$result = $this->db->getHouseDetail($field, $conditions);
if( count($result) > 0){
$result["api_path"] = IMG_PATH;
$param["house_id"] = $id;
$result["images"] = $this->dbImg->getHouseImages($param, 15);
$param["imgtype"] = 4;//图片类型:1效果图,2实景图,3样板图,4户型图,5交通图
$result["plan_images"] = $this->dbImg->getHouseImages($param, 4);
if ($result['room_num_left'] == 0) {
return $this->response("101", '此楼盘已下架');
}
}
return $this->response("200", 'request success', $result);
}
......
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