|
@@ -855,6 +855,7 @@
|
|
|
sessionStorage.removeItem("vipAddCount");
|
|
|
sessionStorage.removeItem("vipSubSelectAreaAdd");
|
|
|
sessionStorage.removeItem("vipSubSelectCity");
|
|
|
+ sessionStorage.removeItem("vipallDisabledButHasCityCount");
|
|
|
}
|
|
|
//
|
|
|
|
|
@@ -968,10 +969,10 @@
|
|
|
|
|
|
//
|
|
|
if(nowUpgradeYear >= 1){
|
|
|
- let newPriceY = getsubVipOrderPriceBybuyset(newBuysetObj(buySetObj(areaObj())),[nowUpgradeYear,1]);
|
|
|
- let newPriceM = getsubVipOrderPriceBybuyset(newBuysetObj(buySetObj(areaObj())),[nowUpgrade,2]);
|
|
|
- let yearprice = getsubVipOrderPriceBybuyset(newBuysetObj(buySetObj(areaObj())),[nowUpgradeYear,1]);
|
|
|
- let monthprice = getsubVipOrderPriceBybuyset(newBuysetObj(buySetObj(areaObj())),[nowUpgrade,2]);
|
|
|
+ let newPriceY = getsubVipOrderPriceBybuyset(lastSet(newBuysetObj(buySetObj(areaObj()))),[nowUpgradeYear,1]);
|
|
|
+ let newPriceM = getsubVipOrderPriceBybuyset(lastSet(newBuysetObj(buySetObj(areaObj()))),[nowUpgrade,2]);
|
|
|
+ let yearprice = getsubVipOrderPriceBybuyset(lastSet(newBuysetObj(buySetObj(areaObj()))),[nowUpgradeYear,1]);
|
|
|
+ let monthprice = getsubVipOrderPriceBybuyset(lastSet(newBuysetObj(buySetObj(areaObj()))),[nowUpgrade,2]);
|
|
|
price = newPriceY + newPriceM - oldPrice;
|
|
|
// ------- 升级延长周期价格计算 ---------
|
|
|
if(monthprice === 0){
|
|
@@ -986,12 +987,12 @@
|
|
|
console.log("monthprice",monthprice);
|
|
|
console.log(">=1",price);
|
|
|
}else{
|
|
|
- let monthprice = getsubVipOrderPriceBybuyset(newBuysetObj(buySetObj(areaObj())),[nowUpgrade,2]);
|
|
|
+ let monthprice = getsubVipOrderPriceBybuyset(lastSet(newBuysetObj(buySetObj(areaObj()))),[nowUpgrade,2]);
|
|
|
|
|
|
// ------- 升级价格差价计算 ---------
|
|
|
|
|
|
// let newPrice = getsubVipOrderPrice(allBuyArea,allIndustry,[nowUpgrade,2]);
|
|
|
- let newPrice = getsubVipOrderPriceBybuyset(newBuysetObj(buySetObj(areaObj())),[nowUpgrade,2]);
|
|
|
+ let newPrice = getsubVipOrderPriceBybuyset(lastSet(newBuysetObj(buySetObj(areaObj()))),[nowUpgrade,2]);
|
|
|
price = newPrice - oldPrice;
|
|
|
// ------- 升级价格差价计算 ---------
|
|
|
// ------- 升级延长周期价格计算 ---------
|
|
@@ -1103,7 +1104,7 @@
|
|
|
"time": times,
|
|
|
"addCount":vipCount,
|
|
|
"addIndustryCount": vipIndustry,
|
|
|
- "buyset":JSON.stringify(buySetObj(areaObj())),
|
|
|
+ "buyset":JSON.stringify(lastSet(buySetObj(areaObj()))),
|
|
|
}
|
|
|
console.log(param)
|
|
|
$DoPost("/subscribepay/renewUpgrade/renewUpgradeCreateOrder",param,function(r){
|
|
@@ -1237,6 +1238,17 @@
|
|
|
}
|
|
|
return nowset
|
|
|
}
|
|
|
+
|
|
|
+ function lastSet(buyset){
|
|
|
+ let lastset = JSON.parse(JSON.stringify(buyset));
|
|
|
+ if(sessionStorage.vipallDisabledButHasCityCount!==undefined&&sessionStorage.vipallDisabledButHasCityCount!==""){
|
|
|
+ let hasCount = JSON.parse(sessionStorage.vipallDisabledButHasCityCount);
|
|
|
+ for(let province in hasCount){
|
|
|
+ lastset.citys[province] = hasCount[province];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return lastset
|
|
|
+ }
|
|
|
|
|
|
</script>
|
|
|
</body>
|