Commit 27e5605c authored by 罗超's avatar 罗超

1

parent dfadb7dc
......@@ -396,20 +396,36 @@
this.addMsg.EndAge = val.max
},
//限制活动开始时间小于结束时间
StartTimeOptions(date){
return Date.parse(date) <= Date.parse(this.addMsg.EndTime)
StartTimeOptions(date){
let endTime="2050/1/1"
if(this.addMsg.EndTime){
endTime=this.addMsg.EndTime
}
return Date.parse(date) <= Date.parse(endTime)
},
//限制活动结束时间大于开始时间
EndTimeOptions(date){
return Date.parse(date) >= Date.parse(this.addMsg.StartTime)
let startTime="2000/1/1"
if(this.addMsg.StartTime){
startTime=this.addMsg.StartTime
}
return Date.parse(date) >= Date.parse(startTime)
},
//限制活动报名开始时间小于报名结束时间
SignStartTimeOptions(date){
return Date.parse(date) <= Date.parse(this.addMsg.SignEndTime)
let endTime="2050/1/1"
if(this.addMsg.SignEndTime){
endTime=this.addMsg.SignEndTime
}
return Date.parse(date) <= Date.parse(endTime)
},
//限制活动报名结束时间大于报名开始时间
SignEndTimeOptions(date){
return Date.parse(date) >= Date.parse(this.addMsg.SignStartTime)
let startTime="2000/1/1"
if(this.addMsg.SignStartTime){
startTime=this.addMsg.SignStartTime
}
return Date.parse(date) >= Date.parse(startTime)
},
uploadFile(files) {
UploadSelfFile("course", files[0], res => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment