|
@@ -164,8 +164,12 @@ function getsubVipOrderPriceBybuyset(buyset, t, price) {
|
|
thisPrice = getSetMealPrice(2, buyset.buyerclasscount, t[1], price) * t[0];
|
|
thisPrice = getSetMealPrice(2, buyset.buyerclasscount, t[1], price) * t[0];
|
|
} else {//多城市
|
|
} else {//多城市
|
|
if (buyset.buyerclasscount === 0 || buyset.buyerclasscount === 1) {//多城市 单行业
|
|
if (buyset.buyerclasscount === 0 || buyset.buyerclasscount === 1) {//多城市 单行业
|
|
- thisPrice = buyset.citys[i] * getSetMealPrice(2, buyset.buyerclasscount, t[1], price) * t[0];
|
|
|
|
- } else {//多城市 多行业
|
|
|
|
|
|
+ if (buyset.citys[i] > price.cityMaxCount) {
|
|
|
|
+ buyset.areacount++;
|
|
|
|
+ } else {
|
|
|
|
+ thisPrice = buyset.citys[i] * getSetMealPrice(2, buyset.buyerclasscount, t[1], price) * t[0];
|
|
|
|
+ }
|
|
|
|
+ } else {//多城市 多行业
|
|
//var industry_Price = price.buyerClassPrice * buyset.buyerclasscount;
|
|
//var industry_Price = price.buyerClassPrice * buyset.buyerclasscount;
|
|
//var city_Price = price.cityPrice * buyset.citys[i];
|
|
//var city_Price = price.cityPrice * buyset.citys[i];
|
|
//thisPrice = (industry_Price + city_Price) * t[0];
|
|
//thisPrice = (industry_Price + city_Price) * t[0];
|
|
@@ -181,7 +185,7 @@ function getsubVipOrderPriceBybuyset(buyset, t, price) {
|
|
final_price += thisPrice;
|
|
final_price += thisPrice;
|
|
}
|
|
}
|
|
final_price += buyset.areacount * getSetMealPrice(1, buyset.buyerclasscount, t[1], price) * t[0]
|
|
final_price += buyset.areacount * getSetMealPrice(1, buyset.buyerclasscount, t[1], price) * t[0]
|
|
- return final_price / 100
|
|
|
|
|
|
+ return final_price / 100
|
|
}
|
|
}
|
|
|
|
|
|
//获取套餐价格
|
|
//获取套餐价格
|