Procházet zdrojové kódy

fix: 处理订阅续费读取最优优惠券价格传值转换问题

yangfeng před 4 roky
rodič
revize
826b6d415f

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

@@ -534,7 +534,7 @@ var coupon = new Vue({
     // 更新价格相关
     updatePrice: function (before) {
       console.log( '原价:' + before)
-      this.initPrice = before;
+      this.initPrice = parseInt(before);
       // 调用子组件查询最优卡券
       this.$refs.couponRef.getCoupon();
     },

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

@@ -534,7 +534,7 @@ var coupon = new Vue({
     // 更新价格相关
     updatePrice: function (before) {
       console.log( '原价:' + before)
-      this.initPrice = before;
+      this.initPrice = parseInt(before);
       // 调用子组件查询最优卡券
       this.$refs.couponRef.getCoupon();
     },