瀏覽代碼

fix: 修改超级订阅优惠券组件金额传值、升级续费金额传值

yangfeng 4 年之前
父節點
當前提交
fd97212de4

+ 2 - 2
src/jfw/modules/app/src/web/staticres/jyapp/vipsubscribe/js/vip_renew.js

@@ -113,7 +113,7 @@ var renew = {
     // 设置价格
     setPrice: function (price) {
         this.price = parseInt(price)
-        coupon.updatePrice(parseInt(this.price / 100))
+        coupon.updatePrice(this.price / 100)
     },
     // 根据选中结果得到续费了多长时间的字符串
     getDuration: function (timeSelect) {
@@ -534,7 +534,7 @@ var coupon = new Vue({
     // 更新价格相关
     updatePrice: function (before) {
       console.log( '原价:' + before)
-      this.initPrice = parseInt(before);
+      this.initPrice = before;
       // 调用子组件查询最优卡券
       this.$refs.couponRef.getCoupon();
     },

+ 2 - 2
src/jfw/modules/app/src/web/staticres/jyapp/vipsubscribe/js/vip_upgrade.js

@@ -571,7 +571,7 @@ $(function () {
       "area": flag ? JSON.stringify(area) : '',
       'area_count': flag ? 0 : areaCount,
       // "industry": industry.join(","),
-      'price': Number((coupon.initPrice*100).toFixed(2)),
+      'price': parseInt(coupon.initPrice*100),
       "time": purchase.timeValue.trim(),
       // "orderType": 5,
       "disWord": GetQueryString("disWord"),
@@ -678,7 +678,7 @@ var coupon = new Vue({
     // 更新价格相关
     updatePrice: function (before) {
       console.log('原价:' + before)
-      this.initPrice = parseInt(before);
+      this.initPrice = before;
       // 调用子组件查询最优卡券
       this.$refs.couponRef.getCoupon();
     },

+ 1 - 1
src/web/staticres/common-module/coupon/js/pay-order-template.js

@@ -251,7 +251,7 @@ var couponTem = {
           data:{
             pId: _this.getProductId(),
             // 单位:分  数据导出有折扣价  应传折扣后价格 其他产品为现价
-            price: _this.config.type == 'dataExport' ? _this.config.disPrice*100 : _this.config.initPrice*100 
+            price: _this.config.type == 'dataExport' ? parseInt(_this.config.disPrice*100) : parseInt(_this.config.initPrice*100 )
           },
           success:function(res) {
             if (res.data) {

+ 2 - 2
src/web/staticres/vipsubscribe/js/vip_renew.js

@@ -113,7 +113,7 @@ var renew = {
     // 设置价格
     setPrice: function (price) {
         this.price = parseInt(price)
-        coupon.updatePrice(parseInt(this.price / 100))
+        coupon.updatePrice(this.price / 100)
     },
     // 根据选中结果得到续费了多长时间的字符串
     getDuration: function (timeSelect) {
@@ -534,7 +534,7 @@ var coupon = new Vue({
     // 更新价格相关
     updatePrice: function (before) {
       console.log( '原价:' + before)
-      this.initPrice = parseInt(before);
+      this.initPrice = before;
       // 调用子组件查询最优卡券
       this.$refs.couponRef.getCoupon();
     },

+ 2 - 2
src/web/staticres/vipsubscribe/js/vip_upgrade.js

@@ -578,7 +578,7 @@ $(function () {
       "area": flag ? JSON.stringify(area) : '',
       'area_count': flag ? 0 : areaCount,
       // "industry": industry.join(","),
-      'price': Number((coupon.initPrice*100).toFixed(2)),
+      'price': parseInt(coupon.initPrice*100),
       "time": purchase.timeValue.trim(),
       // "orderType": 5,
       "activeCode": activeCodes,
@@ -725,7 +725,7 @@ var coupon = new Vue({
     // 更新价格相关
     updatePrice: function (before) {
       console.log( '原价:' + before)
-      this.initPrice = parseInt(before);
+      this.initPrice = before;
       // 调用子组件查询最优卡券
       this.$refs.couponRef.getCoupon();
     },