Browse Source

fix: 修复小数精度问题

zhangyuhan 1 year ago
parent
commit
1960e99cb9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/web/staticres/public-pc/js/check-power-and-switch.js

+ 1 - 1
src/web/staticres/public-pc/js/check-power-and-switch.js

@@ -439,7 +439,7 @@ var checkVipExpireDialog = {
                     arr.push(text)
                 } else if (lotteryType === 1 || lotteryType === 4) {
                     // 满折:续费1年(变量)立享6折(变量)优惠
-                    var zhe = discount1.discount * 10
+                    var zhe = Math.round(discount1.discount * 10 * 10) / 10
                     var text = '续费'+activityInfo.info+'立享'+zhe+'折优惠'
                     arr.push(text)
                 } else if (lotteryType === 2) {