Commit ecccf574 authored by liuqiao's avatar liuqiao

出售房源列表封面图

parent f1ec094c
...@@ -4128,7 +4128,7 @@ class Sell extends MY_Controller { ...@@ -4128,7 +4128,7 @@ class Sell extends MY_Controller {
'streetid', 'blockid', 'isreal', 'blockshowname', 'buildyear', 'buildarea', 'streetid', 'blockid', 'isreal', 'blockshowname', 'buildyear', 'buildarea',
'subfloor', 'floor', 'totalfloor', 'room', 'hall', 'toilet', 'kitchen', 'balcony', 'subfloor', 'floor', 'totalfloor', 'room', 'hall', 'toilet', 'kitchen', 'balcony',
'forward', 'price', 'averprice', 'priceterm', 'pricetype', 'fitment', 'contactor', 'forward', 'price', 'averprice', 'priceterm', 'pricetype', 'fitment', 'contactor',
'telno', 'creattime', 'updatetime', 'expiretime', 'isstar', 'istag', 'nofee', 'is360', 'is_real_house','vr_model_id'); 'telno', 'creattime', 'updatetime', 'expiretime', 'isstar', 'istag', 'nofee', 'is360', 'is_real_house','vr_model_id','pic1');
$this->sell_model->set_select_fields($select_fields); $this->sell_model->set_select_fields($select_fields);
$data_info = $this->sell_model->find_all_by( $cond_where , $this->_offset , $data_info = $this->sell_model->find_all_by( $cond_where , $this->_offset ,
...@@ -4256,6 +4256,8 @@ class Sell extends MY_Controller { ...@@ -4256,6 +4256,8 @@ class Sell extends MY_Controller {
} }
else else
{ {
$this->load->model('pic_model');
for( $i = 0 ; $i < $row_num ; $i ++ ) for( $i = 0 ; $i < $row_num ; $i ++ )
{ {
//房源地址 //房源地址
...@@ -4432,6 +4434,13 @@ class Sell extends MY_Controller { ...@@ -4432,6 +4434,13 @@ class Sell extends MY_Controller {
} }
} }
// 封面图
$pic1 = $data_info[$i]['pic1'] ? $data_info[$i]['pic1'] : '';
if (!$pic1) {
$housePics = $this->pic_model->find_house_pic_by('sell', $data_info[$i]['id']);
$data_info[$i]['pic1'] = $housePics ? $housePics[0]['filename'] : STATIC_SOURCE_URL.'/zsb/images/v1.0/default.jpg';
}
$arr_rowid[] = $data_info[$i]['id']; $arr_rowid[] = $data_info[$i]['id'];
} }
......
...@@ -268,6 +268,11 @@ ...@@ -268,6 +268,11 @@
<tr> <tr>
<td class="td first"><input class="jsSelectItem" type="checkbox" name="rows_id" value="<?php echo $value['id'];?>"/></td> <td class="td first"><input class="jsSelectItem" type="checkbox" name="rows_id" value="<?php echo $value['id'];?>"/></td>
<td class="td second" style="width:380px;"> <td class="td second" style="width:380px;">
<div style="float: left;margin-top: 20px">
<img src="<?= $value['pic1'] ?>"
style="width: 80px; height: 65px;">
</div>
<div style="float: left;width: 260px;margin-left: 10px">
<div class="itemTex"> <div class="itemTex">
<a class="name" title = "<?php echo $value['address'];?>" href="<?php echo $value['info_url'];?>" target="_blank"><?php echo $value['address_str'];?></a> <a class="name" title = "<?php echo $value['address'];?>" href="<?php echo $value['info_url'];?>" target="_blank"><?php echo $value['address_str'];?></a>
</div> </div>
...@@ -356,9 +361,9 @@ ...@@ -356,9 +361,9 @@
<a class="bds_sqq"></a> <a class="bds_sqq"></a>
<a class="bds_qzone"></a> <a class="bds_qzone"></a>
<a class="bds_tsina"></a> <a class="bds_tsina"></a>
<!-- <a class="bds_tqq"></a>--> <!-- <a class="bds_tqq"></a>-->
<!-- <a class="bds_renren"></a>--> <!-- <a class="bds_renren"></a>-->
<!-- <span class="bds_more"></span>--> <!-- <span class="bds_more"></span>-->
...@@ -370,7 +375,7 @@ ...@@ -370,7 +375,7 @@
</script> </script>
<?php if(GB_CITY=='nj'){?> <?php if(GB_CITY=='nj'){?>
<!-- <a style="margin-left:2px;" value="--><?php //echo $value['id'];?><!--" id="wx_share" class="wx_share_c" href="javascript:void(0)"><img src="<?=STATIC_SOURCE_URL?>/zsb/images/v1.0/weixin_tu.jpg"></a>--> <!-- <a style="margin-left:2px;" value="--><?php //echo $value['id'];?><!--" id="wx_share" class="wx_share_c" href="javascript:void(0)"><img src="<?=STATIC_SOURCE_URL?>/zsb/images/v1.0/weixin_tu.jpg"></a>-->
<?php }?> <?php }?>
...@@ -378,6 +383,7 @@ ...@@ -378,6 +383,7 @@
<!-- Baidu Button END --> <!-- Baidu Button END -->
</div> </div>
</div>
</td> </td>
<td class="td w90"> <td class="td w90">
<p><?php echo date( 'm-d H:i' , $value['creattime']); ?></p> <p><?php echo date( 'm-d H:i' , $value['creattime']); ?></p>
......
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