This commit is contained in:
Phoenix 2024-02-21 12:14:04 +08:00
parent 2329270e98
commit 9a41868877

View File

@ -75,20 +75,12 @@ const afterRead = async (file) => {
submitReturnData.value.artistPhoto=res.data.ori_url 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) => { const confirmAddress = (data) => {
submitReturnData.value.address=JSON.stringify(data.selectedOptions.map((x)=>{ submitReturnData.value.address=JSON.stringify(data.selectedOptions.map((x)=>{
return { return {
text:x.text, text:x.text,
value:x.value value:x.value
} }
})) }))
showBottom.value = false showBottom.value = false
} }