Browse Source

fix: wx、app文件price.js同步

yangfeng 4 years ago
parent
commit
0683b1b28f
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/web/staticres/vipsubscribe/js/price.js

+ 5 - 5
src/web/staticres/vipsubscribe/js/price.js

@@ -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),
     [{