浏览代码

fix: 修复小数精度问题

zhangyuhan 1 年之前
父节点
当前提交
1960e99cb9
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) {