Merge branch 'ymf' of https://newgitea.sxczgkj.cn/czg_team/cashier-web into gyq
This commit is contained in:
@@ -128,7 +128,7 @@ export function returnIsSeatFee(item) {
|
||||
/**
|
||||
* 计算购物车会员优惠价格
|
||||
*/
|
||||
export function returnVipDiscountPrice() {}
|
||||
export function returnVipDiscountPrice() { }
|
||||
|
||||
//计算商品券优惠价格
|
||||
export function returnProductCouponPrice(coup, goodsArr, vipUser) {
|
||||
@@ -243,6 +243,9 @@ export function returnCartPrice(goods, vipUser) {
|
||||
|
||||
// 价格保留两位小数不四舍五入
|
||||
export function customTruncateToTwoDecimals(number) {
|
||||
if (!number) {
|
||||
return 0;
|
||||
}
|
||||
let stringNumber = number.toString();
|
||||
let dotIndex = stringNumber.indexOf(".");
|
||||
if (dotIndex === -1) {
|
||||
|
||||
Reference in New Issue
Block a user