Commit b1e079eb authored by zhangtao's avatar zhangtao

租房面积提示文字修改

parent de5602b9
...@@ -385,7 +385,18 @@ ...@@ -385,7 +385,18 @@
} }
?> ?>
<dd class="list_item clearfix"> <dd class="list_item clearfix">
<label class="label">面积:</label> <?php
if ($infotype == 1) {
if ($house_detail['renttype'] == '整租') {
$areaName = '总面积';
} else {
$areaName = '房屋面积';
}
} else {
$areaName = '面积';
}
?>
<label class="label areaName"><?= $areaName?></label>
<div class="fields"> <div class="fields">
<div class="fgInput jsFgInput"> <div class="fgInput jsFgInput">
<input type="text" class=" input_text w90" name="buildarea" id="buildarea" value="<?=$house_detail['buildarea']?>"> <input type="text" class=" input_text w90" name="buildarea" id="buildarea" value="<?=$house_detail['buildarea']?>">
...@@ -820,6 +831,17 @@ if (isset($publish_block) && !empty($publish_block)) { ...@@ -820,6 +831,17 @@ if (isset($publish_block) && !empty($publish_block)) {
} }
} }
var renttype = $(this).val();
if (infotype == 1){
if(renttype == '整租'){
$(".areaName").html('总面积:');
}else{
$(".areaName").html('房屋面积:');
}
}else{
$(".areaName").html('面积:');
}
}) })
...@@ -868,6 +890,21 @@ if (isset($publish_block) && !empty($publish_block)) { ...@@ -868,6 +890,21 @@ if (isset($publish_block) && !empty($publish_block)) {
} }
}); });
$(input:radio[name='renttype']).change(function(){
var renttype = $(this).val();
var infotype = $('input[name=infotype]').val();
if (infotype == 1){
if(renttype == '整租'){
$(".areaName").html('总面积:');
}else{
$(".areaName").html('房屋面积:');
}
}else{
$(".areaName").html('面积:');
}
})
$("#blockshowname").autocomplete({ $("#blockshowname").autocomplete({
source: function(request, response) { source: function(request, response) {
......
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