修改共多少件展示结果小数位数过多问题
This commit is contained in:
@@ -2093,7 +2093,8 @@ export default {
|
|||||||
const cartNumber = this.order.list.reduce((a, b) => {
|
const cartNumber = this.order.list.reduce((a, b) => {
|
||||||
return a + b.number * 1;
|
return a + b.number * 1;
|
||||||
}, 0);
|
}, 0);
|
||||||
return oldNumber + cartNumber;
|
const total= oldNumber + cartNumber
|
||||||
|
return (Math.floor(total)==total?total:total.toFixed(2));
|
||||||
},
|
},
|
||||||
selGoodsHide() {
|
selGoodsHide() {
|
||||||
this.selGoods.show = false;
|
this.selGoods.show = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user