submit
This commit is contained in:
parent
2329270e98
commit
9a41868877
@ -75,20 +75,12 @@ const afterRead = async (file) => {
|
||||
submitReturnData.value.artistPhoto=res.data.ori_url
|
||||
}
|
||||
}
|
||||
const isWithinThreeMonths=(dateStr)=> {
|
||||
const now = dayjs();
|
||||
const targetDate = dayjs(dateStr);
|
||||
const isEarlier = targetDate.isBefore(now);
|
||||
const isWithinThreeMonths = now.diff(targetDate, 'month') < 3;
|
||||
return isEarlier && isWithinThreeMonths;
|
||||
}
|
||||
const confirmAddress = (data) => {
|
||||
submitReturnData.value.address=JSON.stringify(data.selectedOptions.map((x)=>{
|
||||
return {
|
||||
text:x.text,
|
||||
value:x.value
|
||||
}
|
||||
|
||||
}))
|
||||
showBottom.value = false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user