define({
name:"buyLimit",
template:`
`,
style:``,
props: {
form: {
default() {
return {}
}
}
},
data() {
return {
timeLimit:''
}
},
mounted() {
if(this.form.data.end_time || this.form.data.start_time){
this.timeLimit = [this.form.data.start_time * 1000,this.form.data.end_time * 1000]
}
},
methods:{
extraDate(){
},
validate(){
return {
status:this.form.data.status,
display_name:this.form.data.display_name ? this.form.data.display_name : "限时购",
start_time:this.timeLimit ? this.timeLimit[0] / 1000: "",
end_time:this.timeLimit ? this.timeLimit[1] / 1000: ""
}
}
}
})