From fde34bb405b05b0d8ef946ae5138d277b128b40c Mon Sep 17 00:00:00 2001 From: Dragon <13925835632@139.com> Date: Fri, 22 Mar 2024 10:06:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BF=9D=E5=AD=98=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=85=88=E5=90=8E=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/lucky/LuckyGiftRangeView.vue | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/lucky/LuckyGiftRangeView.vue b/src/views/lucky/LuckyGiftRangeView.vue index fbe974c..277a6bb 100644 --- a/src/views/lucky/LuckyGiftRangeView.vue +++ b/src/views/lucky/LuckyGiftRangeView.vue @@ -419,7 +419,7 @@ export default { if (this.dialogBool) { if (this.dialog.value1 == 1) { obj = { - rewardType: this.dialog.value1, + rewardType: this.dialog.value1 == "钻石" || this.dialog.value1 == 1 ? 1 : 2, rewardValue: this.dialog.diamond, rewardRate: this.dialog.gitChance, showRate: this.dialog.showChance, @@ -429,7 +429,7 @@ export default { }; } else { obj = { - rewardType: this.dialog.value1, + rewardType: this.dialog.value1 == "钻石" || this.dialog.value1 == 1 ? 1 : 2, rewardValue: this.dialog.gifts2[this.dialog.value2].giftId, rewardRate: this.dialog.gitChance, showRate: this.dialog.showChance, @@ -483,16 +483,16 @@ export default { }); } this.detailsDialog = false; + luckyGiftRewardList({ + giftId: this.inquire.value1, + rangeId: this.inquire.value2, + }).then((res) => { + this.inquire.diamond = res.data.giftPrice; + this.inquire.giftExpectation = res.data.expectValue; + this.tableData = res.data.list; + this.loading = false; + }); }); - luckyGiftRewardList({ - giftId: this.inquire.value1, - rangeId: this.inquire.value2, - }).then((res) => { - this.inquire.diamond = res.data.giftPrice; - this.inquire.giftExpectation = res.data.expectValue; - this.tableData = res.data.list; - this.loading = false; - }); }, //删除 del(val) {