mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 19:03:27 +08:00
Merge branch 'dev' into 'master'
uniapp【优化】:接龙详情价格计算,保留两位小数点 See merge request jianweie/coreshoppro!112
This commit is contained in:
@@ -205,7 +205,7 @@
|
|||||||
state.goodsData.forEach((item : any) => {
|
state.goodsData.forEach((item : any) => {
|
||||||
totalprice += (item.price * item.num)
|
totalprice += (item.price * item.num)
|
||||||
});
|
});
|
||||||
state.totalprice = totalprice;
|
state.totalprice = Number(totalprice.toFixed(2));;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 组合商品数据传入组件
|
// 组合商品数据传入组件
|
||||||
|
|||||||
Reference in New Issue
Block a user