部分显示问题调整,问题修复,增加购物车初始化和商品更新未找到对应商品发送删除消息

This commit is contained in:
2025-12-24 09:21:14 +08:00
parent 9a09ac901f
commit addb9f0e75
12 changed files with 319 additions and 237 deletions

View File

@@ -977,9 +977,6 @@ function calcVipDiscountAmount(
shopUserInfo : ShopUserInfo
) : number {
if (!shopUserInfo.isVip || shopUserInfo.discount === 0) return 0;
if (shopUserInfo.isVip == 1 && shopUserInfo.isMemberPrice != 1) {
return 0;
}
return truncateToTwoDecimals(
new BigNumber(goodsRealAmount)
.times((100 - (shopUserInfo.discount || 100)) / 100)