|
@@ -418,7 +418,6 @@
|
|
$('.count').html(num[1].length);
|
|
$('.count').html(num[1].length);
|
|
// 初次渲染城市选择结果
|
|
// 初次渲染城市选择结果
|
|
$('.result_name').html(num[1].join('、'));
|
|
$('.result_name').html(num[1].join('、'));
|
|
-
|
|
|
|
// 渲染城市
|
|
// 渲染城市
|
|
$(".select-area-box ul li:not('.index')").each(function () {
|
|
$(".select-area-box ul li:not('.index')").each(function () {
|
|
var text = $(this).find(".province").text().trim();
|
|
var text = $(this).find(".province").text().trim();
|
|
@@ -479,14 +478,14 @@
|
|
$(".result").css("padding-bottom","0.3rem")
|
|
$(".result").css("padding-bottom","0.3rem")
|
|
$(this).hide();
|
|
$(this).hide();
|
|
$('.packup').show()
|
|
$('.packup').show()
|
|
- $(".select-area-box .area-list").css("margin-top",$('.result_text').height()+20);
|
|
|
|
|
|
+ $('.select-area-box').css("margin-top",$(".optional_count").height()+$('.result_text').height()+25);
|
|
})
|
|
})
|
|
$('.packup').click(function () {
|
|
$('.packup').click(function () {
|
|
$(".result").css("padding-bottom","0.2rem")
|
|
$(".result").css("padding-bottom","0.2rem")
|
|
$('.result_text').addClass('line_two')
|
|
$('.result_text').addClass('line_two')
|
|
$(this).hide();
|
|
$(this).hide();
|
|
$('.detail').show()
|
|
$('.detail').show()
|
|
- $(".select-area-box .area-list").css("margin-top",$('.result_text').height()+20);
|
|
|
|
|
|
+ $('.select-area-box').css("margin-top",$(".optional_count").height()+$('.result_text').height()+25);
|
|
})
|
|
})
|
|
// 锚点跳转
|
|
// 锚点跳转
|
|
$("body").on('click', '.slide a', function () {
|
|
$("body").on('click', '.slide a', function () {
|
|
@@ -613,7 +612,7 @@
|
|
this.selectObj=selectObj;
|
|
this.selectObj=selectObj;
|
|
$('.count').text(cityCount)
|
|
$('.count').text(cityCount)
|
|
$('.result_name').append(html);
|
|
$('.result_name').append(html);
|
|
- $('.select-area-box').css("margin-top",$(".optional_count").height()+$(".result").height()+20);
|
|
|
|
|
|
+ $('.select-area-box').css("margin-top",$(".optional_count").height()+$(".result").height()+25);
|
|
this.isOpen();
|
|
this.isOpen();
|
|
if(this.noChange(this.selectObj,EditCity.reqData.area)||!this.compareArr(Object.keys(this.selectObj),Object.keys(this.reqData.buyset.citys))){
|
|
if(this.noChange(this.selectObj,EditCity.reqData.area)||!this.compareArr(Object.keys(this.selectObj),Object.keys(this.reqData.buyset.citys))){
|
|
$("#enter").attr("disabled","disabled")
|
|
$("#enter").attr("disabled","disabled")
|
|
@@ -639,8 +638,7 @@
|
|
let pHeight = $('.result_text').height()
|
|
let pHeight = $('.result_text').height()
|
|
let minHeight = $('.result_text').css('min-height')
|
|
let minHeight = $('.result_text').css('min-height')
|
|
let rows = Math.round(Math.round(pHeight)/ parseFloat(minHeight));
|
|
let rows = Math.round(Math.round(pHeight)/ parseFloat(minHeight));
|
|
- $(".select-area-box .area-list").css("margin-top",$('.result_text').height()+20);
|
|
|
|
- console.log("高度:"+ pHeight,"最小高度"+ minHeight,"行数:" + rows)
|
|
|
|
|
|
+ $('.select-area-box').css("margin-top",$(".optional_count").height()+$('.result_text').height()+25);
|
|
if(rows == 1){
|
|
if(rows == 1){
|
|
$('.packup').hide()
|
|
$('.packup').hide()
|
|
$('.detail').hide()
|
|
$('.detail').hide()
|