|
@@ -817,7 +817,7 @@ export default {
|
817
|
817
|
if (this.postData.IsInternalDefault) {
|
818
|
818
|
var bool = true
|
819
|
819
|
for (var a = 0; a < this.postData.Prizes.length; a++) {
|
820
|
|
- if (this.postData.Prizes[a].Defaults.length) {
|
|
820
|
+ if (this.postData.Prizes[a].Defaults && this.postData.Prizes[a].Defaults.length) {
|
821
|
821
|
bool = false
|
822
|
822
|
}
|
823
|
823
|
}
|
|
@@ -846,10 +846,16 @@ export default {
|
846
|
846
|
}
|
847
|
847
|
}
|
848
|
848
|
for (var a = 0; a < this.postData.Prizes.length; a++) {
|
849
|
|
- if (this.postData.Prizes[a].VerificationStart === '') {
|
|
849
|
+ if (this.postData.Prizes[a].IsReality) {
|
|
850
|
+ if (this.postData.Prizes[a].VerificationStart === '') {
|
|
851
|
+ delete this.postData.Prizes[a].VerificationStart
|
|
852
|
+ delete this.postData.Prizes[a].VerificationEnd
|
|
853
|
+ } else {
|
|
854
|
+ delete this.postData.Prizes[a].ValidDays
|
|
855
|
+ }
|
|
856
|
+ } else {
|
850
|
857
|
delete this.postData.Prizes[a].VerificationStart
|
851
|
858
|
delete this.postData.Prizes[a].VerificationEnd
|
852
|
|
- } else {
|
853
|
859
|
delete this.postData.Prizes[a].ValidDays
|
854
|
860
|
}
|
855
|
861
|
}
|
|
@@ -1044,14 +1050,6 @@ export default {
|
1044
|
1050
|
} else {
|
1045
|
1051
|
this.postData.Prizes.push({ ...this.addPrizeInfo, Defaults: [] })
|
1046
|
1052
|
}
|
1047
|
|
- // for (var n = 0; n < this.postData.Prizes.length; n++) {
|
1048
|
|
- // if (this.postData.Prizes[n].VerificationStart === '') {
|
1049
|
|
- // delete this.postData.Prizes[n].VerificationStart
|
1050
|
|
- // delete this.postData.Prizes[n].VerificationEnd
|
1051
|
|
- // } else {
|
1052
|
|
- // delete this.postData.Prizes[n].ValidDays
|
1053
|
|
- // }
|
1054
|
|
- // }
|
1055
|
1053
|
this.closeAddPrize()
|
1056
|
1054
|
this.prizeTypeChange()
|
1057
|
1055
|
// console.log(JSON.stringify(this.postData.Prizes))
|