Commit 6ab9919a authored by zhangkuanguang's avatar zhangkuanguang

芜湖放心看

parent fc85c82b
......@@ -737,7 +737,10 @@ class Sell extends MY_Controller {
}
$real_house_set =$this->input->post('real_house_set', true);
$infotype = $fields_values['infotype'];
if(!in_array($infotype,array(1,2))){
$real_house_set = 0;
}
if($real_house_set>0)
{
$url_manage = $this->sell_model->find_func_url('add');
......@@ -2594,6 +2597,10 @@ class Sell extends MY_Controller {
$real_house_set =$this->input->post('real_house_set', true);
$infotype = $fields_values['infotype'];
if(!in_array($infotype,array(1,2))){
$real_house_set = 0;
}
if($real_house_set>0)
{
......@@ -4033,8 +4040,8 @@ class Sell extends MY_Controller {
//经纪人额外的信息
$broker_info_1 = $this->broker_model->get_broker_info_by_uid($uid);
$broker = $this->broker_model->get_broker_info_by_uid($uid);
$real_status = empty($broker[0]['real_status'])?0:$broker[0]['real_status'];
//客户经理
if( isset($broker_info) && isset($broker_info['master']) && $broker_info['master'] != '')
{
......@@ -4200,6 +4207,12 @@ class Sell extends MY_Controller {
$data_info[$key]['vr_applay_show'] = 1;
}
$infotype = $value['infotype'];
$is_show_real = 0;
if($realHouse && in_array($infotype,array(1,2)) && $real_status){
$is_show_real = 1;
}
$data_info[$key]['is_show_real'] = $is_show_real;
}
}
......
......@@ -991,7 +991,7 @@ class Broker_model extends Broker_base_model {
if(GB_CITY=='wh')
{
$this->db->select('usetime,starlevel,freeze_num,upgrade_time,mistake_time,writes_date,package_id');
$this->db->select('usetime,starlevel,freeze_num,upgrade_time,mistake_time,writes_date,package_id,real_status');
}
else
{
......
......@@ -51,27 +51,6 @@ if (isset($infotype)) {
<div class="branchCommon radius5 " id="js_bcxx" style="margin:0;">
<div class="hd ">
<h3 class="h3">补充信息</h3>
<?php if($is_show_real){?>
<?php if(!$house_detail['id']): ?>
<div class="fgInput zsbnum4 fxk" >
<label for="jsAllcheckbox" class="textFg3 textFg5">
<input id="jsAllcheckbox" name="real_house_set" class="input_c" type="checkbox" value=0>
<span class="tex">放心看</span>
</label>
</div>
<?php else: ?>
<div class="fgInput zsbnum4 fxk" style="display: none;" >
<label for="jsAllcheckbox" class="textFg3 textFg5">
<input id="jsAllcheckbox" name="real_house_set" class="input_c" type="checkbox" value=<?php echo $house_detail['is_real_house'];?> <?php if($house_detail['is_real_house']==1){?>checked<?php }?>>
<span class="tex">放心看</span>
</label>
</div>
<?php endif;?>
<?php }?>
<div id="jsStitle" class="funSZ">
<p class="jsSQ funSZInner" title="收起" style="display: block;">收起</p>
<p class="jsZK funSZInner funSZInner2" title="展开" style="display: none;">展开</p>
......
......@@ -460,7 +460,7 @@
<?php } ?>
<?php }?>
<?php if(($realHouse==1) && ($value['infotype']==1 || $value['infotype']==2)) { ?>
<?php if(!empty($value['is_show_real'])) { ?>
<?php if($value['is_real_house']==1){?>
<div class="pic" onClick="set_real(<?php echo $value['id'];?>,0)">
......
......@@ -512,6 +512,26 @@
<div class="branchCommon radius5 " id="js_xxxx" style="margin:0;">
<div class="hd ">
<h3 class="h3">详细信息</h3>
<?php if($is_show_real){?>
<?php if(!$house_detail['id']): ?>
<div class="fgInput zsbnum4 fxk" >
<label for="jsAllcheckbox" class="textFg3 textFg5">
<input id="jsAllcheckbox" name="real_house_set" class="input_c" type="checkbox" value=0>
<span class="tex">放心看</span>
</label>
</div>
<?php else: ?>
<div class="fgInput zsbnum4 fxk" >
<label for="jsAllcheckbox" class="textFg3 textFg5">
<input id="jsAllcheckbox" name="real_house_set" class="input_c" type="checkbox" value=<?php echo $house_detail['is_real_house'];?> <?php if($house_detail['is_real_house']==1){?>checked<?php }?>>
<span class="tex">放心看</span>
</label>
</div>
<?php endif;?>
<?php }?>
</div>
<div class="mod">
<div class="modInner">
......
......@@ -503,6 +503,12 @@ $(function() {
$(".blockPBox").css('display', 'none');
$("#blockPrice").html("");
}
//隐藏放心看按钮
if(infotype == 1 || infotype==2){
$("#js_xxxx .fxk").show();
}else{
$("#js_xxxx .fxk").hide();
}
var all_rent_allow_release = $("#all_rent_allow_release").html();
$.ajax({
type: 'get',
......@@ -526,8 +532,8 @@ $(function() {
} else {
$("#roomshow").show();
}
if (infotype == 6)
if (infotype == 6)
{
$('#buildyearShow').hide();
$('#buildyearShow1').show();
......@@ -535,14 +541,15 @@ $(function() {
$("#floorshow").hide();
$("#housekindShow").css('display', 'block');
} else {
$('#buildyearShow').show();
$('#buildyearShow').show();
$('#buildyearShow1').hide();
$("#fitmentshow").show();
$("#floorshow").show();
$("#housekindShow").css('display', 'none');
$("#housekindShow").css('display', 'none');
}
$("#infotypeblock").html(msg);
if ($("input[name='renttype']:checked").val() != '') {
$("#infotypeblock").html(msg);
if ($("input[name='renttype']:checked").val() != '') {
changePriceUnit($("input[name='renttype']:checked").val(), $("input[name='infotype']").val());
}
//多图数值的控制 住宅为5 非住宅为3
......
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