diff --git a/packageA/pages/selectDate/selectDate.vue b/packageA/pages/selectDate/selectDate.vue index 03cf809..c686301 100644 --- a/packageA/pages/selectDate/selectDate.vue +++ b/packageA/pages/selectDate/selectDate.vue @@ -26,6 +26,7 @@ { + updateDateArray() if (options.date) { current.value = { date: options?.date || null, @@ -79,6 +83,20 @@ onLoad((options) => { } }); +function hasZphInData(item) { + return hasZphDateArray.value.some(date=>date == item.date) +} + +async function updateDateArray() { + if(localStorage.getItem('hasZphDateArray')) hasZphDateArray.value = localStorage.getItem('hasZphDateArray') + + let res = await $api.createRequest('/app/internal/getDateList', {}, 'get') + if(res.data){ + hasZphDateArray.value = res.data + localStorage.setItem('hasZphDateArray',res.data) + } +} + function backParams() { if (isValidDateString(current.value.date)) { navBack({