修复保存接口先后顺序
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user