|
@@ -177,9 +177,9 @@ var Calculation = {
|
|
|
if (vipbuyset.upgrade === 0) { //旧版大会员价格计算
|
|
|
if (t[0] > this.PriceRule.old.monthMaxCount && t[1] === 2) t[0] = 10;//月份十个月以上价格一样
|
|
|
if (vipbuyset.areacount === -1) {//计算全国套餐价格
|
|
|
- if (vipbuyset.buyerclasscount === 1) return this.getSetMealPrice_old(0, 1, t[1]) * t[0] / 100; //全国1行业套餐
|
|
|
- if (vipbuyset.buyerclasscount === 0) return this.getSetMealPrice_old(0, 0, t[1]) * t[0] / 100; //全国全行业套餐
|
|
|
- return this.getSetMealPrice_old(0, vipbuyset.buyerclasscount, t[1]) * t[0] / 100 //全国多行业套餐
|
|
|
+ if (vipbuyset.buyerclasscount === 1) return this.getSetMealPrice_old(0, 1, t[1]) * t[0]; //全国1行业套餐
|
|
|
+ if (vipbuyset.buyerclasscount === 0) return this.getSetMealPrice_old(0, 0, t[1]) * t[0]; //全国全行业套餐
|
|
|
+ return this.getSetMealPrice_old(0, vipbuyset.buyerclasscount, t[1]) * t[0] //全国多行业套餐
|
|
|
}
|
|
|
let final_price = 0;//计算省份价格
|
|
|
for (var i in vipbuyset.citys) {
|
|
@@ -204,7 +204,7 @@ var Calculation = {
|
|
|
final_price += thisPrice;
|
|
|
}
|
|
|
final_price += vipbuyset.areacount * this.getSetMealPrice_old(1, vipbuyset.buyerclasscount, t[1]) * t[0];
|
|
|
- return final_price / 100
|
|
|
+ return final_price
|
|
|
} else {//新版大会员价格计算
|
|
|
let pCount = vipbuyset.areacount
|
|
|
let count = t[0]
|
|
@@ -355,7 +355,7 @@ Calculation.GetTotal(new Buyset(15, [], -1, 1), [1, 2]) //首次购买
|
|
|
Calculation.Init(false, new Buyset(1, [1, 2], 3, 0))
|
|
|
Calculation.GetTotal(undefined, [1, 2])
|
|
|
|
|
|
-//续费
|
|
|
+//升级
|
|
|
//初始化 非试用用户 已经购买了 1个省份 两个省份【1个城市、两个城市】 3个行业 非升级版超级订阅
|
|
|
Calculation.Init(false, new Buyset(1, [1, 2], 3, 0),
|
|
|
[{
|