|
@@ -653,16 +653,17 @@
|
|
|
// $("#area").attr("placeholder", areaHtml);
|
|
|
// }
|
|
|
// }
|
|
|
- if(sessionStorage.vipAddCount!==""&&sessionStorage.vipAddCount!==undefined&&sessionStorage.vipSubSelectCity!==undefined&&sessionStorage.vipSubSelectCity!==""){
|
|
|
+ if(sessionStorage.vipAddCount!==""&&sessionStorage.vipAddCount!==undefined&&sessionStorage.vipSubSelectCity!==undefined&&sessionStorage.vipSubSelectCity!==""&&sessionStorage.vipSubSelectAreaAdd!==undefined){
|
|
|
var vipSubSelectArea = JSON.parse(sessionStorage.vipAddCount);
|
|
|
+ var vipadd = JSON.parse(sessionStorage.vipSubSelectAreaAdd);
|
|
|
let cityLen = sessionStorage.vipSubSelectCity;
|
|
|
- if(vipSubSelectArea.province === 0&&vipSubSelectArea.city === 0){
|
|
|
+ if(vipadd.country === -1){
|
|
|
areaHtml = "已新增全国";
|
|
|
$("#area").attr("placeholder", areaHtml);
|
|
|
}else{
|
|
|
areaHtml = "已新增 "+ vipSubSelectArea.province +" 个省级区域、"+ cityLen +" 个地市";
|
|
|
if(Number(vipSubSelectArea.province) === 0 && Number(cityLen) === 0){
|
|
|
- areaHtml = "请选择升级区域";
|
|
|
+ areaHtml = "选择升级区域";
|
|
|
}
|
|
|
$("#area").attr("placeholder", areaHtml);
|
|
|
}
|
|
@@ -1206,6 +1207,16 @@
|
|
|
|
|
|
//
|
|
|
$(".save_upgrade").on("click", function(){
|
|
|
+ if(nowRenew>=36){
|
|
|
+ var overtimeWarning = `最长订阅周期不可超过3年<br />当前订阅周期:${nowRenew}个月`
|
|
|
+ weui.toast(overtimeWarning, {
|
|
|
+ duration: 3000,
|
|
|
+ className: 'custom-toast',
|
|
|
+ callback: function() {
|
|
|
+ }
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
$(".save_upgrade").attr("disabled","disabled");
|
|
|
//
|
|
|
// let areas = areasArr;
|
|
@@ -1427,7 +1438,14 @@
|
|
|
newbuyset.buyerclasscount = newbuyset.buyerclasscount + addindustrys.length;
|
|
|
}
|
|
|
}
|
|
|
- console.log("233333",newbuyset)
|
|
|
+ for(let n in newbuyset.citys){
|
|
|
+ if(newbuyset.citys[n] > 2){
|
|
|
+ let cityarr = newbuyset.citys
|
|
|
+ delete cityarr[n]
|
|
|
+ newbuyset.areacount += 1
|
|
|
+ }
|
|
|
+ }
|
|
|
+ console.log(JSON.stringify(newbuyset))
|
|
|
return newbuyset
|
|
|
}
|
|
|
|