Commit 9dd89381 authored by zhangtao's avatar zhangtao

租房面积提示文字修改

parent 434c270a
...@@ -226,7 +226,8 @@ ...@@ -226,7 +226,8 @@
foreach ($house['renttype'] as $k => $v) { ?> foreach ($house['renttype'] as $k => $v) { ?>
<div class="fgInput"> <div class="fgInput">
<label class="textFg3"> <label class="textFg3">
<input type="radio" name="renttype" class="jsInput_rRadio input_r" value="<?=$k?>" <?php if($k ==$house_detail['renttype']) echo "checked";?>> <input type="radio" name="renttype" onchange="areaName()"
class="jsInput_rRadio input_r" value="<?=$k?>" <?php if($k ==$house_detail['renttype']) echo "checked";?>>
<?=$v?></label> <?=$v?></label>
</div> </div>
<?php <?php
...@@ -890,23 +891,6 @@ if (isset($publish_block) && !empty($publish_block)) { ...@@ -890,23 +891,6 @@ if (isset($publish_block) && !empty($publish_block)) {
} }
}); });
$(input:radio[name='renttype']).change(function(){
var renttype = $(this).val();
console.log(renttype);
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) {
var infotype = $('input[name=infotype]').val(); var infotype = $('input[name=infotype]').val();
...@@ -991,4 +975,20 @@ if (isset($publish_block) && !empty($publish_block)) { ...@@ -991,4 +975,20 @@ if (isset($publish_block) && !empty($publish_block)) {
}); });
}); });
function areaName(){
var renttype = $('input[name=renttype]').val();
console.log(renttype);
var infotype = $('input[name=infotype]').val();
if (infotype == 1){
if(renttype == '整租'){
$(".areaName").html('总面积:');
}else{
$(".areaName").html('房屋面积:');
}
}else{
$(".areaName").html('面积:');
}
}
</script> </script>
\ No newline at end of file
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