|
@@ -914,10 +914,26 @@ $(function () {
|
|
sessionStorage.vipSubSelectAreaAdd = JSON.stringify(areaCount);
|
|
sessionStorage.vipSubSelectAreaAdd = JSON.stringify(areaCount);
|
|
sessionStorage.vipallDisabledButHasCityCount = JSON.stringify(lastSet);
|
|
sessionStorage.vipallDisabledButHasCityCount = JSON.stringify(lastSet);
|
|
//
|
|
//
|
|
- // if()
|
|
|
|
-
|
|
|
|
|
|
+ if(areaCount.country === 0){
|
|
|
|
+ if(areaCount.province === 0 && checkObj(areaCount.city)){
|
|
|
|
+ sessionStorage.removeItem("vipSubSelectAreaUpgrade");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
history.go(-1);
|
|
history.go(-1);
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+ function checkObj(obj) {
|
|
|
|
+ //检验数组
|
|
|
|
+ if (Array.prototype.isPrototypeOf(obj) && obj.length === 0) {
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ //检验对象
|
|
|
|
+ if (Object.prototype.isPrototypeOf(obj) && Object.keys(obj).length === 0) {
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
//
|
|
//
|
|
if(sessionStorage.vipSubSelectAreaUpgrade!==undefined&&sessionStorage.vipSubSelectAreaUpgrade!==""){
|
|
if(sessionStorage.vipSubSelectAreaUpgrade!==undefined&&sessionStorage.vipSubSelectAreaUpgrade!==""){
|
|
let areaObj = JSON.parse(sessionStorage.vipSubSelectAreaUpgrade);
|
|
let areaObj = JSON.parse(sessionStorage.vipSubSelectAreaUpgrade);
|