Commit f0053a48 authored by zhangtao's avatar zhangtao

租房面积提示文字修改

parent b1e079eb
......@@ -226,7 +226,8 @@
foreach ($house['renttype'] as $k => $v) { ?>
<div class="fgInput">
<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>
</div>
<?php
......@@ -831,7 +832,7 @@ if (isset($publish_block) && !empty($publish_block)) {
}
}
var renttype = $(this).val();
var renttype = $('input[name=renttype]:checked').val();
if (infotype == 1){
if(renttype == '整租'){
$(".areaName").html('总面积:');
......@@ -890,22 +891,6 @@ 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({
source: function(request, response) {
var infotype = $('input[name=infotype]').val();
......@@ -990,4 +975,20 @@ if (isset($publish_block) && !empty($publish_block)) {
});
});
function areaName(){
var renttype = $('input[name=renttype]:checked').val();
console.log(renttype);
var infotype = $('input[name=infotype]').val();
if (infotype == 1){
if(renttype == '整租'){
$(".areaName").html('总面积:');
}else{
$(".areaName").html('房屋面积:');
}
}else{
$(".areaName").html('面积:');
}
}
</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