From 764333e1c45f640bcb0fad1c9a3b6c4ac5c6447b Mon Sep 17 00:00:00 2001 From: luying Date: Tue, 11 Oct 2022 17:33:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=A2=E8=B4=AD=EF=BC=9A=E9=BB=98=E8=AE=A4cu?= =?UTF-8?q?rDiscount=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/domain/activityField/groupShopField.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/shared/domain/activityField/groupShopField.ts b/shared/domain/activityField/groupShopField.ts index cabfdfd46..269493a6c 100644 --- a/shared/domain/activityField/groupShopField.ts +++ b/shared/domain/activityField/groupShopField.ts @@ -81,6 +81,7 @@ class GroupShopItem { if(item.discount && item.discount.length > 0) { for(let discount of item.discount) { this.discount.push(new GroupShopDiscount(item.price, discount)); + if(!this.curDiscount) this.curDiscount = new GroupShopDiscount(item.price, discount); } } }