|
@@ -50,7 +50,7 @@ $(function () {
|
|
|
// 数组求和
|
|
|
function arrSum(arr) {
|
|
|
var sum = 0
|
|
|
- arr.forEach(function(item, i) {
|
|
|
+ arr.forEach(function (item, i) {
|
|
|
sum += item
|
|
|
})
|
|
|
return sum
|
|
@@ -63,6 +63,7 @@ $(function () {
|
|
|
|
|
|
// 省下拉市事件
|
|
|
var isAnimating = false
|
|
|
+
|
|
|
function slideFunc() {
|
|
|
if (isAnimating) return
|
|
|
isAnimating = true
|
|
@@ -73,7 +74,7 @@ $(function () {
|
|
|
}
|
|
|
$(this).toggleClass('selected').next('.tab_content:not(:animated)').slideToggle(500)
|
|
|
$(this).parent().siblings().children('.tab').removeClass('selected');
|
|
|
- setTimeout(function() {
|
|
|
+ setTimeout(function () {
|
|
|
isAnimating = false
|
|
|
}, 500)
|
|
|
}
|
|
@@ -98,6 +99,16 @@ $(function () {
|
|
|
isLockedTipButtons(false)
|
|
|
}
|
|
|
|
|
|
+ //是否需要升级
|
|
|
+ if (needUpgrade(getBuySet(selected, areaData.data.industry), {
|
|
|
+ areacount: areaData.data.buyset.areacount,
|
|
|
+ citys: areaData.data.buyset.newcitys,
|
|
|
+ buyerclasscount: areaData.data.buyset.buyerclasscount
|
|
|
+ })[1]) {
|
|
|
+ $(".result-selected .info-tip").show();
|
|
|
+ } else {
|
|
|
+ $(".result-selected .info-tip").hide();
|
|
|
+ }
|
|
|
|
|
|
for (var p in selected) {
|
|
|
if (p === '全国') {
|
|
@@ -113,11 +124,11 @@ $(function () {
|
|
|
}
|
|
|
|
|
|
if (selected[p].length === 0) {
|
|
|
- selectedCount.province ++
|
|
|
+ selectedCount.province++
|
|
|
} else {
|
|
|
- selectedCount.city.pCount ++
|
|
|
- selected[p].forEach(function(item, index) {
|
|
|
- selectedCount.city.totalCount ++
|
|
|
+ selectedCount.city.pCount++
|
|
|
+ selected[p].forEach(function (item, index) {
|
|
|
+ selectedCount.city.totalCount++
|
|
|
})
|
|
|
}
|
|
|
}
|
|
@@ -412,7 +423,7 @@ $(function () {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- var subVipState = sessionStorage.getItem('sub_vip_state')
|
|
|
+ var subVipState = sessionStorage.getItem('sub_vip_state')
|
|
|
if (subVipState) {
|
|
|
areaData.data = JSON.parse(subVipState)
|
|
|
init()
|