From 78661c12aff10aae986ba770f1fd7d64777b6855 Mon Sep 17 00:00:00 2001 From: xiebing Date: Fri, 28 Nov 2025 18:17:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=9C=9F=E9=80=89=E6=8B=A9=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packageA/pages/selectDate/selectDate.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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({