mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2025-12-19 00:45:54 +08:00
fix: 🐛 提交parseInt导致的bug
This commit is contained in:
@@ -209,7 +209,7 @@
|
||||
if (typeof val == "undefined") {
|
||||
return val;
|
||||
}
|
||||
return val.toFixed(2).split(".");
|
||||
return Number(val).toFixed(2).split(".");
|
||||
},
|
||||
|
||||
closeMask() {
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
return val;
|
||||
}
|
||||
|
||||
return parseInt(val).toFixed(2).split(".");
|
||||
return Number(val).toFixed(2).split(".");
|
||||
},
|
||||
|
||||
// 数据去重一下 只显示一次 减免 劵 什么的
|
||||
|
||||
@@ -184,7 +184,7 @@
|
||||
if (typeof val == "undefined") {
|
||||
return val;
|
||||
}
|
||||
return parseInt(val).toFixed(2).split(".");
|
||||
return Number(val).toFixed(2).split(".");
|
||||
},
|
||||
|
||||
// 数据去重一下 只显示一次 减免 劵 什么的
|
||||
|
||||
Reference in New Issue
Block a user