|
@@ -472,7 +472,6 @@
|
|
|
if (province == $.trim($(dom).text())) {
|
|
|
$(".checkbox.other").attr("checked", false); //取消全国选中
|
|
|
$(dom).children('.checkbox').attr({"checked": true,"disabled":!canClick});//选中此省份
|
|
|
- $(this).parent(".tab:not(.municipality)").next().slideDown(500);
|
|
|
if(canClick){
|
|
|
$(dom).parents().siblings('.tab_content').find(".city").addClass("active").attr({"disabled":!canClick});
|
|
|
}else{
|
|
@@ -487,7 +486,6 @@
|
|
|
$('.tab_content .city').each(function(){
|
|
|
$(this).attr("disabled",!canClick);
|
|
|
});
|
|
|
- $(".tips_d_money").hide();
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -508,6 +506,7 @@
|
|
|
"checked": true,
|
|
|
"disabled": "disabled"
|
|
|
})
|
|
|
+ $(dom).parents().slideDown(500);
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -632,8 +631,6 @@
|
|
|
// console.log("this.selectObj:",this.selectObj)
|
|
|
$('.result_name').append(html)
|
|
|
AreaChoose.isOpen()
|
|
|
- //刷新价格
|
|
|
- AreaChoose.flushPrice();
|
|
|
},
|
|
|
submitArea:function(){
|
|
|
let addCity = $('.result_name').text(); //新增的城市
|
|
@@ -655,14 +652,6 @@
|
|
|
$(".tips_btn .btns .save-btn").attr("disabled","disabled");
|
|
|
}
|
|
|
},
|
|
|
- getNationwide:function(){/*默认选中全国 */
|
|
|
-// $('.other').prop('checked', true);
|
|
|
-// $('.tab_content').slideUp(500)
|
|
|
-// $('.tab span i').css({
|
|
|
-// "display":"inline-block",
|
|
|
-// "transform":"rotate(0)"
|
|
|
-// });
|
|
|
- },
|
|
|
isOpen:function(){
|
|
|
let pHeight = $('.result_text').height()
|
|
|
let minHeight = $('.result_text').css('min-height')
|
|
@@ -694,9 +683,9 @@
|
|
|
}
|
|
|
},
|
|
|
inintClick:function(){
|
|
|
- $('.tab_content').each(function(){
|
|
|
- AreaChoose.showSelected(false);
|
|
|
- })
|
|
|
+// $('.tab_content').each(function(){
|
|
|
+// AreaChoose.showSelected(false);
|
|
|
+// })
|
|
|
$('.detail').click(function () {
|
|
|
$('.result_text').removeClass('line_two')
|
|
|
$(".result").css("padding-bottom","0.3rem")
|
|
@@ -835,14 +824,6 @@
|
|
|
$(".tips_btn .btns .reset-btn").attr("disabled","disabled");
|
|
|
$(".tips_btn .btns .save-btn").attr("disabled","disabled");
|
|
|
}
|
|
|
- },
|
|
|
- flushPrice:function(){
|
|
|
- if(this.vipSubisTrial){
|
|
|
- $('.tips_d_money').css("display","none");
|
|
|
- }else{
|
|
|
- var price=getsubVipOrderPrice(this.selectObj,this.selectedIndustryArr,this.timeSelect);
|
|
|
- $('.tips_d_money').text('¥'+price);
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -850,8 +831,7 @@
|
|
|
AreaChoose.isOpen()
|
|
|
AreaChoose.inintData(); //初始化 已选择和已购买数据
|
|
|
AreaChoose.inintPage(); //初始化城市数据
|
|
|
-
|
|
|
- AreaChoose.getNationwide();//默认选中全国
|
|
|
+ AreaChoose.showSelected(false);
|
|
|
AreaChoose.showSelected(true);//回显已选择
|
|
|
/* 判断已购买的城市 在不在 全部城市里面,在,将按钮置灰,不可点击 */
|
|
|
|