修改万单位判断条件

This commit is contained in:
Dragon
2023-08-18 18:22:04 +08:00
parent a27aa111c6
commit 22d1e98eca

View File

@@ -584,7 +584,7 @@ function bodyScroolFun (bool) {
}
// 封装数值超过最大数位处理单位
function unitProcessing (val, num, toFixeds, text) { //值 以什么为单位 保留几位小数 单位后最w
return val > num ? (Math.floor(val / 1000) / 10).toFixed(toFixeds) + text : val;
return val >= num ? (Math.floor(val / 1000) / 10).toFixed(toFixeds) + text : val;
}
// 封装 在ios环境中 配置公共参数的回调函数
// 配合 methodsFromClient[infoName].ios 方法