From f5d5b33954fcc0f1f1424dfd3d9ea6bfaf32c102 Mon Sep 17 00:00:00 2001 From: liaozetao <1107136310@qq.com> Date: Wed, 24 Apr 2024 17:56:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=B8=E6=84=BF=E4=B9=8B?= =?UTF-8?q?=E6=98=9F=E7=A4=BC=E7=89=A9=E8=BF=87=E6=BB=A4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wishingStar/wishingStarSet.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/wishingStar/wishingStarSet.vue b/src/views/wishingStar/wishingStarSet.vue index b335f66..130d75b 100644 --- a/src/views/wishingStar/wishingStarSet.vue +++ b/src/views/wishingStar/wishingStarSet.vue @@ -435,12 +435,13 @@ export default { // 监听新增礼物价值 // @ts-ignore giftOptionsChange(e) { + let gifts = this.giftOptions.filter(v => resource.partitionId == null || ((v.partitionFlag & resource.partitionId) != 0)); // @ts-ignore - this.resource.giftId = this.giftOptions[e].giftId; + this.resource.giftId = gifts[e].giftId; // @ts-ignore - this.resource.giftName = this.giftOptions[e].giftName; + this.resource.giftName = gifts[e].giftName; // @ts-ignore - this.resource.goldPrice = this.giftOptions[e].goldPrice; + this.resource.goldPrice = gifts[e].goldPrice; }, // 表单编辑 // @ts-ignore