第二步
选择房屋面积区间和户型结构
80-100㎡
101-140㎡
141-200㎡
201-300㎡
300㎡以上
您的户型
var times = 0;
var percent = null;
var priceSwiper = null; $(function(){
//$(".bottom-dou .item-1").click(function(){
function showPrice(){
$(".pop-price-mask").fadeIn();
priceSwiper = new Swiper(".price-swiper",{
noSwiping: true,
// effect: 'fade',
on:{
transitionEnd:function(swiper){
if(swiper.activeIndex == 2){
percent = setInterval(() => {
if(times >= 98){
clearInterval(percent);
setTimeout(function(){
priceSwiper.slideNext();
}, 500)
var selected = $(".price-swiper .selected .txt");
var value = "PC-报价弹窗-已发验证码-";
for(let i = 0; i < selected.length; i++){
value += $(selected[i]).html() + " ";
}
$(".price-swiper input[name='item7']").val( value );
}
times = times + 3;
times = times > 100 ? 100 :times;
$(".progress .in").css({"width": (times) + "%"});
$(".progress .percent").html(times + "%");
}, 50);
}
}
}
})
}
$(".pop-price .item li").click(function(){
if($(this).hasClass("selected")) return;
$(this).addClass("selected").siblings().removeClass("selected");
if($(this).parents(".item").index() == 0){
priceSwiper.slideNext();
}else if($(this).parents(".item").index() == 1 && $(this).parents(".item").find(".selected").length ==2){
priceSwiper.slideNext(); }
});
$(".pop-price .go-back").click(function(){
priceSwiper.slidePrev();
});
$(".pop-price .close").click(function(){
$(".pop-price-mask").fadeOut();
});
$(".show-price").click(function(){
showPrice();
});
});