|
@@ -78,7 +78,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
onSelectDay(value) {
|
|
|
- if(new Date(this.getFormartDate(new Date())) >= new Date(this.getFormartDate(value))) {
|
|
|
+ if(new Date(this.getFormartDateIOS(new Date())) >= new Date(this.getFormartDateIOS(value))) {
|
|
|
this.radioDisabled = true
|
|
|
} else {
|
|
|
this.radioDisabled = false
|
|
@@ -131,6 +131,11 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ getFormartDateIOS(date) {
|
|
|
+ let checkDate = new Date(date)
|
|
|
+ let checkDay = checkDate.getFullYear() + '/' + (checkDate.getMonth() + 1) + '/' + checkDate.getDate()
|
|
|
+ return checkDay
|
|
|
+ },
|
|
|
getFormartDate(date) {
|
|
|
let checkDate = new Date(date)
|
|
|
let checkDay = checkDate.getFullYear() + '-' + (checkDate.getMonth() + 1) + '-' + checkDate.getDate()
|