mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2025-12-17 07:55:53 +08:00
fix: 🐛 修改格式化金额可能会出现的问题
This commit is contained in:
@@ -43,7 +43,8 @@
|
|||||||
if (typeof val == "undefined") {
|
if (typeof val == "undefined") {
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
return val.toFixed(2).split(".");
|
|
||||||
|
return parseInt(val).toFixed(2).split(".");
|
||||||
},
|
},
|
||||||
|
|
||||||
// 数据去重一下 只显示一次 减免 劵 什么的
|
// 数据去重一下 只显示一次 减免 劵 什么的
|
||||||
|
|||||||
@@ -184,7 +184,7 @@
|
|||||||
if (typeof val == "undefined") {
|
if (typeof val == "undefined") {
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
return val.toFixed(2).split(".");
|
return parseInt(val).toFixed(2).split(".");
|
||||||
},
|
},
|
||||||
|
|
||||||
// 数据去重一下 只显示一次 减免 劵 什么的
|
// 数据去重一下 只显示一次 减免 劵 什么的
|
||||||
|
|||||||
@@ -376,7 +376,7 @@ export default {
|
|||||||
if (typeof val == "undefined") {
|
if (typeof val == "undefined") {
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
return val.toFixed(2).split(".");
|
return parseInt(val).toFixed(2).split(".");
|
||||||
},
|
},
|
||||||
|
|
||||||
// 展示更多数据
|
// 展示更多数据
|
||||||
|
|||||||
@@ -460,7 +460,7 @@ export default {
|
|||||||
if (typeof val == "undefined") {
|
if (typeof val == "undefined") {
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
return val.toFixed(2).split(".");
|
return parseInt(val).toFixed(2).split(".");
|
||||||
},
|
},
|
||||||
//发票回调 选择发票之后刷新购物车
|
//发票回调 选择发票之后刷新购物车
|
||||||
async callbackInvoice(val) {
|
async callbackInvoice(val) {
|
||||||
|
|||||||
@@ -757,7 +757,7 @@ export default {
|
|||||||
if (typeof val == "undefined") {
|
if (typeof val == "undefined") {
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
return val.toFixed(2).split(".");
|
return parseInt(val).toFixed(2).split(".");
|
||||||
},
|
},
|
||||||
|
|
||||||
/**选择商品 */
|
/**选择商品 */
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ export default {
|
|||||||
if (typeof val == "undefined") {
|
if (typeof val == "undefined") {
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
return val.toFixed(2).split(".");
|
return parseInt(val).toFixed(2).split(".");
|
||||||
},
|
},
|
||||||
getCountDownTime(val) {
|
getCountDownTime(val) {
|
||||||
let date = new Date(val);
|
let date = new Date(val);
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ export default {
|
|||||||
if (typeof val == "undefined") {
|
if (typeof val == "undefined") {
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
return val.toFixed(2).split(".");
|
return parseInt(val).toFixed(2).split(".");
|
||||||
},
|
},
|
||||||
// 点击商品
|
// 点击商品
|
||||||
clickGoods(val) {
|
clickGoods(val) {
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ export default {
|
|||||||
if (typeof val == "undefined") {
|
if (typeof val == "undefined") {
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
return val.toFixed(2).split(".");
|
return parseInt(val).toFixed(2).split(".");
|
||||||
},
|
},
|
||||||
async init() {
|
async init() {
|
||||||
let res = await getStoreList(this.params);
|
let res = await getStoreList(this.params);
|
||||||
|
|||||||
@@ -264,7 +264,7 @@ export default {
|
|||||||
if (typeof val == "undefined") {
|
if (typeof val == "undefined") {
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
return val.toFixed(2).split(".");
|
return parseInt(val).toFixed(2).split(".");
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ export default {
|
|||||||
if (typeof val == "undefined") {
|
if (typeof val == "undefined") {
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
return val.toFixed(2).split(".");
|
return parseInt(val).toFixed(2).split(".");
|
||||||
},
|
},
|
||||||
handleClick(item) {
|
handleClick(item) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
Reference in New Issue
Block a user