소스 검색

fix: 处理订阅升级页面获取最佳优惠券金额传值转换整数

yangfeng 4 년 전
부모
커밋
c391af42ae
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/jfw/modules/app/src/web/staticres/jyapp/vipsubscribe/js/vip_upgrade.js
  2. 1 1
      src/web/staticres/vipsubscribe/js/vip_upgrade.js

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

@@ -678,7 +678,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_upgrade.js

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